Constraint has no bool value
AnsweredHi,
when I add a lazy constraint which is a variable less than a float number, I meet the error as follows:
print(ro[0])
print(model._eta[0])
model.cbLazy(ro[0] >= model._eta[0])
Please suggest.
0
-
Please take a look at the article How do I resolve the error 'Constraint has no bool value (are you trying "lb <= expr <= ub"?)'?.
0
Please sign in to leave a comment.
Comments
1 comment