Originally posted by: rakesh85
I am trying to use the 'member' function in Python inside if_then. However, I am getting the error in the solution stage (and not in the model building stage). Please look at the formulated constraint:
mdl.add( if_then ( mdl.member ( 1, [1,2,3] ), x==2).
The error I am getting is the following:
"Solver error: Error reading model from <stream> (<ipython-input-154-c271cd74d003>:39(stream:19:1): Error: 'member' is not a function.)"
Appreciate your help.
Thanks.
#ConstraintProgramming-General#DecisionOptimization