Skip to content

Commit

Permalink
[pyschlandals] example with copy
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreDubray committed Jun 24, 2024
1 parent 1d41465 commit 84ae108
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pyschlandals/example/simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
problem.add_clause([15, -14, -9])
problem.add_clause([16, -13, -8])
problem.add_clause([16, -14, -10])
problem.add_clause([-15])

p2 = problem.copy()

problem.add_clause([-15])
p2.add_clause([-16])
print(problem.solve())
print(p2.solve())

0 comments on commit 84ae108

Please sign in to comment.