Modeling of conditional constraints
AnsweredHi,
Is there any way to modeling a conditional constraint like follows:
if x > X0, then y = 1
if x = X0, then y = 0
where x and y are decision variables, and X0 is a predefined constant number.
Thanks.
0
-
Hi,
This stackexchange post should answer your question How to write if else statement in linear programming?
Note that strict inequalities are not allowed in (mixed-integer) linear programming due to compactness assumptions.
Best regards,
Jaromił0 -
Hi Jaromił,
Many thanks for your answer.
Kind regards,
Yongning
0
Please sign in to leave a comment.
Comments
2 comments