Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conjure outputting solutions to previous problems #652

Open
ChrisJefferson opened this issue Mar 14, 2024 · 0 comments
Open

Conjure outputting solutions to previous problems #652

ChrisJefferson opened this issue Mar 14, 2024 · 0 comments

Comments

@ChrisJefferson
Copy link
Collaborator

Put the following in test.essence

language Essence 1.0
find x : int(1..10)
find y : int(1..10)
such that
x + y = 8

run: conjure solve --number-of-solutions=all test.essence

See you get 7 solutions.

run rm *.solution, to clear out the solutions, and edit the constraint to x+y=3.

Now again run conjure solve --number-of-solutions=all test.essence

We get again 7 solutions. The first 2 are the "true" solutions, the next 5 are solutions 3 to 7 from when x+y=8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant