|
Chapter Contents |
Previous |
Next |
| The NLP Procedure |
min f;
decvar x1 - x3;
hessian g1-g6;
correspond to the Hessian matrix
![G = [ G1 & G2 & G4 \ G2 & G3 & G5 \ G4 & G5 & G6 \ ]
= [ \partial^2 f / \partia...
...\partial^2 f / \partial x_3 \partial x_2 &
\partial^2 f / \partial x^2_3
] .](images/nlpeq52.gif)
proc nlp tech=nrridg;
min f;
decvar x1 x2;
gradient g1 g2;
hessian h1-h3;
f1 = 10 * (x2 - x1 * x1);
f2 = 1 - x1;
f = .5 * (f1 * f1 + f2 * f2);
g1 = -200 * x1 * (x2 - x1 * x1) - (1 - x1);
g2 = 100 * (x2 - x1 * x1);
h1 = -200 * (x2 - 3 * x1 * x1) + 1;
h2 = -200 * x1;
h3 = 100;
run;
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.