How do I model if else conditional statements in Gurobi?
AnsweredHi Gurobi Team,
I want to linearize the following if-else statement:
If , then b=1; else b=0, where is a binary variable and a is an integer variable. I would like to write this directly into the LP document using Python statements. I want to use the Big M method for solving this, but I tried and it didn't work. I would like to ask how to solve this issue.
0
-
Hi,
Does this article help?
https://support.gurobi.com/hc/en-us/articles/4414392016529-How-do-I-model-conditional-statements-in-Gurobi- Riley
0
Please sign in to leave a comment.
Comments
1 comment