# Conditional constraint if else in JuMP

**URL:** <https://discourse.julialang.org/t/conditional-constraint-if-else-in-jump/6795>\
**Category:** Optimization (Mathematical)\
**Tags:** question\
**Created:** [October 31, 2017, 8:29am UTC](https://discourse.julialang.org/t/conditional-constraint-if-else-in-jump/6795 "2017-10-31T08:29:34Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![bbrunaud](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bbrunaud/32/1737_2.png) [@bbrunaud](https://discourse.julialang.org/u/bbrunaud)\
**Post date:** [November 5, 2017, 9:38pm UTC](https://discourse.julialang.org/t/conditional-constraint-if-else-in-jump/6795/4 "2017-11-05T21:38:57Z")

</div>

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

---

_[View the full topic](https://discourse.julialang.org/t/conditional-constraint-if-else-in-jump/6795)._
