# Handling INFEASIBLE\_OR\_UNBOUNDED

**URL:** <https://discourse.julialang.org/t/handling-infeasible-or-unbounded/28354>\
**Category:** Optimization (Mathematical)\
**Tags:** question, jump\
**Created:** [September 4, 2019, 1:12am UTC](https://discourse.julialang.org/t/handling-infeasible-or-unbounded/28354 "2019-09-04T01:12:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomerarnon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tomerarnon/32/3170_2.png) [@tomerarnon](https://discourse.julialang.org/u/tomerarnon)\
**Post date:** [September 4, 2019, 1:12am UTC](https://discourse.julialang.org/t/handling-infeasible-or-unbounded/28354/1 "2019-09-04T01:12:33Z")

</div>

Using JuMP, I am getting the return code `INFEASIBLE_OR_UNBOUNDED`, but in my case, knowing whether the problem is feasible is important. I.e. I should be handling an unbounded problem differently from an infeasible one. Is there any way to determine which it is? In case it is relevant, I am using GLPK as the optimizer.

---

<div class="post-metadata">

**Author:** ![blegat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/blegat/32/217090_2.png) [@blegat](https://discourse.julialang.org/u/blegat)\
**Post date:** [September 4, 2019, 11:44am UTC](https://discourse.julialang.org/t/handling-infeasible-or-unbounded/28354/2 "2019-09-04T11:44:12Z")

</div>

You can set the objective to zero with `@objective(model, Min, 0)`. The status might then change and if it is still `INFEASIBLE_OR_UNBOUNDED`, as you know it is now unbounded, you know it’s infeasible.

---

<div class="post-metadata">

**Author:** ![tomerarnon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tomerarnon/32/3170_2.png) [@tomerarnon](https://discourse.julialang.org/u/tomerarnon)\
**Post date:** [September 5, 2019, 6:57pm UTC](https://discourse.julialang.org/t/handling-infeasible-or-unbounded/28354/3 "2019-09-05T18:57:53Z")

</div>

Thanks for the response! I’ll give it a try.
