how to Counter intval according to condition #4037
-
Hi, I try to counter Intval according to some condition, as below
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Or how to count the numbers less than 1 in array X? this code can't get valid result. cp_model.AddEquality(C[i], X[i] == cp_model.NewConstant(0)); |
Beta Was this translation helpful? Give feedback.
-
The problem is: |
Beta Was this translation helpful? Give feedback.
-
https://github.com/google/or-tools/blob/stable/ortools/sat/docs/channeling.md |
Beta Was this translation helpful? Give feedback.
https://github.com/google/or-tools/blob/stable/ortools/sat/docs/channeling.md