gams:get_the_lagrangian_multiplier_for_the_constraints

*Q: During nonlinear programming, we need the Lagrangian multiplier for the constraints.
Is is possible for me to get the value from my solution?*

The Lagrange multipliers, also known as marginals, can be accessed after a solve as follows.

Say the constraint of interest is called `CON(j,k)`

and you want to set `lamda(j,k)`

to the value of its marginal after the solve. Then anywhere after the solve statement, just write:

lamda(j,k) = CON.M(j,k) ;

IMPRESSUM / LEGAL NOTICE
PRIVACY POLICY
gams/get_the_lagrangian_multiplier_for_the_constraints.txt · Last modified: 2020/05/25 18:16 by Lutz Westermann