Duration of task should be 0 for Cumulative constraint when capacity is insufficient #3970
Labels
Help Needed
Modeling/Usage problem
Lang: Python
Python wrapper issue
Solver: CP-SAT Solver
Relates to the CP-SAT solver
Milestone
Hi,
I am trying to use the CP-SAT solver to find a solution for a Cumulative constraint where the durations are integer variables.
When the required resource of a task exceeds the total capacity I would assume the duration of the task is put to 0.
However, in the following example this is not the case and the solver does not find a solution:
By uncommenting the line forcing the durations to [1,0,1] the model becomes SAT.
Also by disabling presolve the solver finds a solution.
I am using OR-tools version 9.7.2996 on Ubuntu 22.04.
Kind regards,
Ignace
The text was updated successfully, but these errors were encountered: