Conditional constraint if else in JuMP



How I can model the conditional constraint if else with JuMP in Julia ?

Thank you


You might be able to do that using Integer Programming techniques. Can you give an example of what you want to do?


You might be interested in


@tkoolen great work!. I was implementing indicator constraints myself which use native CPLEX and Gurobi functions. I just need to finish the @indicatorconstraint macro but everything else is done. Also check the Pyomo.gdp plugin which also implements some cool stuff like nested disjunctions and convex hull reformulations.


Woah, that’s not my package; it’s all @rdeits’ work. But yeah, he’s doing great work!