.ShadowPrice
Definition
When the property
ShadowPriceof a contraint is set or when the optionAlways_store_marginalsis set toon, the.ShadowPricesuffix contains the shadow price of the constraint as computed by the solver. The shadow price of a constraint is the marginal change in the objective value with respect to a change in the right-hand side of the constraint.
Datatype
The value of the
.ShadowPricesuffix is numeric.
Dimension
The
.ShadowPricesuffix has the same dimension and domain as that of the constraint at hand.
Note
When a variable
Xhas a definition the suffix can also be applied toXbut this is not encouraged by the syntax highlighting. The preferred notation isX_definition.ShadowPrice.The GAMS equivalent suffix name is
.m.The default of the option
Always_store_basicsisoff.See also Constraint Declaration and Attributes of the Language Reference.