FarkasProof

Type: double
Modifiable: No

Together, attributes FarkasDual and FarkasProof provide a certificate of infeasibility for the given problem. Specifically, they can be used to form the following inequality from the original constraints that is trivially infeasible:

<span>$</span>\bar{a}x = \lambda^tAx \leq \lambda^tb = -\beta + \sum\limits_{j:\bar{a}_j<0}\bar{a}_jU_j + \sum\limits_{j:\bar{a}_j>0}\bar{a}_jL_j,
<span>$</span>

where <span>$</span>\beta>0<span>$</span>, <span>$</span>L_j<span>$</span> is the lower bound of variable <span>$</span>x_j<span>$</span>, <span>$</span>U_j<span>$</span> is the upper bound of variable <span>$</span>x_j<span>$</span>, <span>$</span>\lambda_i \geq 0<span>$</span> if the <span>$</span>i<span>$</span>-th constraint has a <span>$</span>\leq<span>$</span> sense, <span>$</span>\lambda_i \leq 0<span>$</span> if the <span>$</span>i<span>$</span>-th constraint has a <span>$</span>\geq<span>$</span> sense, <span>$</span>\bar{a}_j \geq 0<span>$</span> if <span>$</span>U_j = \infty<span>$</span>, and <span>$</span>\bar{a}_j
\leq 0<span>$</span> if <span>$</span>L_j = -\infty<span>$</span>. This constraint can not be satisfied for any <span>$</span>\beta>0<span>$</span>. The FarkasProof attribute provides <span>$</span>\beta<span>$</span>, and the FarkasDual attributes provide <span>$</span>\lambda<span>$</span> multipliers for the original constraints.

This attribute is only available when parameter InfUnbdInfo is set to 1.

For examples of how to query or modify attributes, refer to our Attribute Examples.

Try Gurobi for Free

Choose the evaluation license that fits you best, and start working with our Expert Team for technical guidance and support.

Evaluation License
Get a free, full-featured license of the Gurobi Optimizer to experience the performance, support, benchmarking and tuning services we provide as part of our product offering.
Academic License
Gurobi supports the teaching and use of optimization within academic institutions. We offer free, full-featured copies of Gurobi for use in class, and for research.
Cloud Trial

Request free trial hours, so you can see how quickly and easily a model can be solved on the cloud.

Search