|
|
@ -79,9 +79,11 @@ def _can_change(constraints, variable): |
|
|
|
model = solver.get_model(_constraints) |
|
|
|
model = solver.get_model(_constraints) |
|
|
|
except UnsatError: |
|
|
|
except UnsatError: |
|
|
|
return False |
|
|
|
return False |
|
|
|
initial_value = int(str(model.eval(variable, model_completion=True))) |
|
|
|
try: |
|
|
|
return _try_constraints(constraints, [variable != initial_value]) is not None |
|
|
|
initial_value = int(str(model.eval(variable, model_completion=True))) |
|
|
|
|
|
|
|
return _try_constraints(constraints, [variable != initial_value]) is not None |
|
|
|
|
|
|
|
except AttributeError: |
|
|
|
|
|
|
|
return False |
|
|
|
|
|
|
|
|
|
|
|
def _get_influencing_storages(call): |
|
|
|
def _get_influencing_storages(call): |
|
|
|
""" Examines a Call object and returns an iterator of all storages that influence the call value or direction""" |
|
|
|
""" Examines a Call object and returns an iterator of all storages that influence the call value or direction""" |
|
|
|