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

Implies constraint #14

Open
Dimosts opened this issue Sep 18, 2023 · 1 comment
Open

Implies constraint #14

Dimosts opened this issue Sep 18, 2023 · 1 comment

Comments

@Dimosts
Copy link

Dimosts commented Sep 18, 2023

Currently in the Python API there is no constraint for implying. We have reification, but the ifThen etc constraints described in https://choco-solver.org/docs/modeling/constraints/ are not included.

Currently, to implement it in, I reify the lhs and rhs expressions and create an arithm constraint .arithm(lhs, "<=", rhs). However, this is not efficient, as it already has 2 reifications.

I think this and the time limit would be the 2 things that we would like more to be included, followed by the solution hinting maybe later.

We already have a working version, and we can update it when they are added.

Thank you a lot.

@Dimosts
Copy link
Author

Dimosts commented Sep 18, 2023

Also, the reifyWith() would be helpful, as with the reify, I don't think we can cast the reification to an existing variable given by the user.

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