# Infeasible LP and Farkas Certificate

**URL:** https://discourse.julialang.org/t/infeasible-lp-and-farkas-certificate/53852
**Category:** Optimization (Mathematical)
**Created:** [January 24, 2021, 3:52am UTC](https://discourse.julialang.org/t/infeasible-lp-and-farkas-certificate/53852 "2021-01-24T03:52:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Mahbubar06](https://avatars.discourse-cdn.com/v4/letter/m/f07891/32.png) [@Mahbubar06](https://discourse.julialang.org/u/Mahbubar06)
#### Post date: [January 24, 2021, 3:52am UTC](https://discourse.julialang.org/t/infeasible-lp-and-farkas-certificate/53852/1 "2021-01-24T03:52:14Z")

</div>

Is there any JuMP (or other) method to retrieve Farkas certificate from an infeasible lp model? I am using Clp, Gurobi, or Ipopt solver for solving the lp problem modeled using JuMP.

Thank you.

---

<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: [January 24, 2021, 9:17am UTC](https://discourse.julialang.org/t/infeasible-lp-and-farkas-certificate/53852/2 "2021-01-24T09:17:32Z")

</div>

Yes, if the [`termination_status`](https://jump.dev/JuMP.jl/v0.21.5/solutions/#Solution-statuses-1) is `INFEASIBILITY_CERTIFICATE` then [`dual`](https://jump.dev/JuMP.jl/v0.21.5/solutions/#JuMP.dual) gives you a infeasibility certificate.

---

<div class="post-metadata">

### Author: ![Mahbubar06](https://avatars.discourse-cdn.com/v4/letter/m/f07891/32.png) [@Mahbubar06](https://discourse.julialang.org/u/Mahbubar06)
#### Post date: [January 24, 2021, 9:23am UTC](https://discourse.julialang.org/t/infeasible-lp-and-farkas-certificate/53852/3 "2021-01-24T09:23:29Z")

</div>

@blegat thank you so much.
