| The Sequential Quadratic Programming Solver |
Consider a simple example of minimizing the following nonlinear programming problem:
Assume the starting point
. You can use the following SAS code to solve the problem:
proc optmodel;
var x {1..2};
minimize obj = (1-x[1])^2;
con cons1: x[2] - x[1]^2 = 0;
/*starting point */
x[1] = -1.2;
x[2] = 1;
solve with SQP/ printfreq = 5;
print x;
quit;
The summary of the solver output along with the optimal solution,
, is displayed in Figure 13.1.
The iteration log in Output 13.2 displays information about the objective function value, the norm of the violated constraints, the norm of the gradient of the Lagrangian function, and the norm of the violated complementarity condition at each iteration.
|
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.