Constraints violation #4140
-
Hello! Here's a complete example (C# Google.OrTools 9.9.3963 .NET wrapper):
And result is
In the first row, we have an incorrect last sequence with 1 at the end. This value of 1 must be in the last row to avoid violating constraints. Any advice, suggestions, or examples would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
are you including all variables ? Note that we check all solutions against the model. |
Beta Was this translation helpful? Give feedback.
are you including all variables ?
Note that we check all solutions against the model.
So the model is wrong. Either your code, of the LinearExpr.Sum().