Array should be contains defined values Constraints. #1431
Unanswered
qaasadi
asked this question in
Optimization modelling
Replies: 1 comment
-
ismember(variable,possiblevalues) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, as a constraint i want my array be contains all number of 1-3. so i code this:
x=intvar(1,6,'full');
Constraints=[Constraints, ismember([1:3],x)];
but after running i faced with this error:
One of the constraints evaluates to a FALSE LOGICAL variable
please help me if you can.
Beta Was this translation helpful? Give feedback.
All reactions