Conditional constraint if else in JuMP

question

#1

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

Thank you


#2

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


#3

You might be interested in https://github.com/rdeits/ConditionalJuMP.jl.


#4

@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.


#5

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