# Finding the reason of infeasibility in CPLEX

**URL:** <https://discourse.julialang.org/t/finding-the-reason-of-infeasibility-in-cplex/117686>\
**Category:** Optimization (Mathematical)\
**Tags:** jump\
**Created:** [July 31, 2024, 4:03pm UTC](https://discourse.julialang.org/t/finding-the-reason-of-infeasibility-in-cplex/117686 "2024-07-31T16:03:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ArmanZar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/armanzar/32/202360_2.png) [@ArmanZar](https://discourse.julialang.org/u/ArmanZar)\
**Post date:** [July 31, 2024, 4:03pm UTC](https://discourse.julialang.org/t/finding-the-reason-of-infeasibility-in-cplex/117686/1 "2024-07-31T16:03:11Z")

</div>

Hi everyone,

I have an optimization problem and I solved it using CPLEX solver in JuMP. At the end, it gives a solution but the termination status is infeasible. I know that in IPOPT there is function primal\_feasiblity\_report(model, atol=1e-7) that gives scale of infeasibility of each constraints. However, when I try to use the same function for CPLEX model it doesn’t work. Do you know any other way to find out which constraint is the reason of infeasibility of the problem?

Thanks for your help

---

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [July 31, 2024, 9:27pm UTC](https://discourse.julialang.org/t/finding-the-reason-of-infeasibility-in-cplex/117686/2 "2024-07-31T21:27:49Z")

</div>

Hi @ArmanZar, welcome to the forum 😄

This doesn’t work for CPLEX because CPLEX doesn’t return an infeasible point.

See this section of the docs for tips on how to debug an infeasible model: [Debugging · JuMP](https://jump.dev/JuMP.jl/stable/tutorials/getting_started/debugging/#Debugging-an-infeasible-model)

---

<div class="post-metadata">

**Author:** ![ArmanZar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/armanzar/32/202360_2.png) [@ArmanZar](https://discourse.julialang.org/u/ArmanZar)\
**Post date:** [August 1, 2024, 8:08am UTC](https://discourse.julialang.org/t/finding-the-reason-of-infeasibility-in-cplex/117686/3 "2024-08-01T08:08:24Z")

</div>

Thank you very much @odow. Your quick answers are a true blessing
