The OPTMODEL Procedure |
A dual value is associated with each constraint. To access the dual value of a constraint, use the constraint name followed by the suffix .dual.
For linear programming problems, the dual value associated with a constraint is also known as the dual price (or the shadow price). The latter is usually interpreted economically as the rate at which the optimal value changes with respect to a change in some right-hand side that represents a resource supply or demand requirement.
For nonlinear programming problems, the dual values correspond to the values of the optimal Lagrange multipliers. For more details about duality in nonlinear programming, see Bazaraa, Sherali, and Shetty (1993). From the dual value associated with the constraint, you can also tell whether the constraint is active or not. A constraint is said to be active, or tight at a point, if it holds with equality at that point. It can be informative to identify active constraints at the optimal point and check their corresponding dual values. Relaxing the active constraints might improve the objective value.
The Lagrangian function plays a fundamental role in nonlinear programming. It is used to define the optimality conditions that characterize a local minimum of the primal problem. It is also used to formulate the dual problem of the preceding primal problem. To this end, consider the following dual function:
The relation between the primal and the dual problems provides a nice connection between the optimal solutions of the problems. Suppose is an optimal solution of the primal problem and is an optimal solution of the dual problem. The difference between the objective values of the primal and dual problems, , is called the duality gap. For some restricted class of convex nonlinear programming problems, both the primal and the dual problems have an optimal solution and the optimal objective values are equal - i.e., the duality gap . In such cases, the optimal values of the dual variables correspond to the optimal Lagrange multipliers of the primal problem with the correct signs.
A maximization problem is treated analogously to a minimization problem. For the maximization problem
For equality constraints in minimization problems, the optimal dual values are unrestricted in sign. A positive optimal dual value for an equality constraint implies that, starting close enough to the primal solution, the same optimum could be found if the equality constraint were replaced with a inequality constraint. A negative optimal dual value for an equality constraint implies that the same optimum could be found if the equality constraint were replaced with a inequality constraint.
The following is an example where simple linear programming is considered:
proc optmodel; var x, y; min z = 6*x + 7*y; con 4*x + y >= 5, -x - 3*y <= -4, x + y <= 4; solve; print x y; expand _ACON_ ; print _ACON_.dual _ACON_.body;
The PRINT statements generate the output shown in Output 6.52.
It can be seen that the first and second constraints are active, with dual values 1 and -2. Continue to submit the following statements. Notice how the objective value is changed in Output 6.53.
_ACON_[1].lb = _ACON_[1].lb - 1; solve; _ACON_[2].ub = _ACON_[2].ub + 1; solve;
The OPTMODEL Procedure
The OPTMODEL Procedure
|
The change is just as the dual values imply. After the first constraint is relaxed by 1 unit, the objective value is improved by 1 unit. For the second constraint, the relaxation and improvement are 1 unit and 2 units, respectively.
CAUTION: The signs of dual values produced by PROC OPTMODEL depend, in some instances, on the way in which the corresponding constraints are entered. See the section "Constraints" for details.
For equality constraints in maximization problems, the optimal dual values are unrestricted in sign. A positive optimal dual value for an equality constraint implies that, starting close enough to the primal solution, the same optimum could be found if the equality constraint were replaced with a inequality constraint. A negative optimal dual value for an equality constraint implies that the same optimum could be found if the equality constraint were replaced with a inequality constraint.
CAUTION: The signs of dual values produced by PROC OPTMODEL depend, in some instances, on the way in which the corresponding constraints are entered. See the section "Constraints" for details.
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.