-
Notifications
You must be signed in to change notification settings - Fork 138
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
[BUG] Incomplete bounding of expressions with products or powers #980
Comments
I can sharp the bounds computed in BUT, the following example (from cryptator) will be problematic: Model model = new Model("copper*neon=iron*silver");
IntVar copper = model.intVar("copper", 100000, 999999);
IntVar neon = model.intVar("neon", 1000, 9999);
IntVar iron = model.intVar("iron", 1000, 9999);
IntVar silver = model.intVar("silver", 100000, 999999);
copper.mul(neon).eq(iron.mul(silver)).post(); Indeed, the bounds of the intermediate variable for |
- enabled choco-solver 4.10.10 for integer constraints - update to v4.10.11 didn't worked, because Maven couldn't resolve slf4j dependencies - see https://github.com/chocoteam/choco-solver/releases/tag/v4.10.10 - see chocoteam/choco-solver#980
Describe the bug
The computation of bounds of the auxiliary variable is not accurate for
mul
orpow
expressions.It raises an exception because it does not take into account the right member of the relation.
However, the constraint
times
does not meet the same issue.To Reproduce
Define the model below.
The issue is also encountered with
pow
expression.Expected behavior
No exception.
The text was updated successfully, but these errors were encountered: