• Gurobi Staff

Hi Tobi,

Could you please elaborate more on what exactly the feature should be? A pseudo-code example or similar would be helpful.

If you think about replacing the rhs argument to be, e.g., a TempConstr, then you might want to use the alternative or overloaded form

# alternative formmodel.addGenConstrIndicator(x7, True, x1 + 2*x2 + x4 == 1.0 + x5)
# overloaded formmodel.addConstr((x7 == 1) >> (x1 + 2*x2 + x4 == 1.0 + x5))

Best regards,
Jaromił

The alternative form is what I was looking for, thanks :)