|
|
@ -167,8 +167,12 @@ class Constraints(list): |
|
|
|
new_solver.add(constraint) |
|
|
|
new_solver.add(constraint) |
|
|
|
return Constraints(constraint_list=constraints_list, solver=new_solver) |
|
|
|
return Constraints(constraint_list=constraints_list, solver=new_solver) |
|
|
|
|
|
|
|
|
|
|
|
def __iadd__(self, other): |
|
|
|
def __iadd__(self, constraints): |
|
|
|
return self.__add__(other) |
|
|
|
super(Constraints, self).__iadd__(constraints) |
|
|
|
|
|
|
|
self.solver = copy(self.solver) |
|
|
|
|
|
|
|
for constraint in constraints: |
|
|
|
|
|
|
|
self.solver.add(constraint) |
|
|
|
|
|
|
|
return self |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class MachineStack(list): |
|
|
|
class MachineStack(list): |
|
|
|