Filter Content By
Version

### Pi

 Type: double No

The constraint dual value in the current solution (also known as the shadow price).

Given a linear programming problem

and a corresponding dual problem

the Pi attribute returns .

Of course, not all models fit this canonical form. In general, dual values have the following properties:

• Dual values for constraints are .
• Dual values for constraints are .
• Dual values for constraints are unconstrained.
For models with a maximization sense, the senses of the dual values are reversed: the dual is for a constraint and for a constraint.

Note that constraint dual values for linear constraints of QCP models are only available when the QCPDual parameter is set to 1. To query the duals of the quadratic constraints in a QCP model, see QCPi.

Only available for convex, continuous models.

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