Skip to content

Infeasibility regression for cumulative constraint between 9.1 and 9.2 #3109

Closed Answered by lperron
lalithsuresh asked this question in CP-SAT questions
Discussion options

You must be logged in to vote

So I pushed the fix on master. It was indeed an overflow during presolve.

A quick note on the 9.3 release. I have completely rewritten the java API:

  • I introduced a BoolVar class. You need it for OnlyEnforceIf()
  • AddCumulative now takes one argument (the capacity) and returns a Cumulative constraint which contains APIs to add (interval, demand) incrementally. In your case, just model.addCumulative(capacity).addDemands(intervalsArray, demandsArray);

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@lalithsuresh
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by lperron
Comment options

You must be logged in to vote
1 reply
@lalithsuresh
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Lang: Java Java wrapper issue Solver: CP-SAT Solver Relates to the CP-SAT solver
2 participants
Converted from issue

This discussion was converted from issue #3108 on February 02, 2022 09:32.