|
Chapter Contents |
Previous |
Next |
| The NLP Procedure |
This example shows how you can restart an optimization problem using the OUTEST=, INEST=, OUTMODEL=, and MODEL= options and how to save output into an OUT= data set. The least-squares solution of the Rosenbrock function using the trust-region method is used.
The following code solves the problem and saves the model in MODEL, the solution in EST, and in OUT1 data sets.
proc nlp tech=trureg outmodel=model outest=est out=out1;
lsq y1 y2;
parms x1 = -1.2 ,
x2 = 1.;
y1 = 10. * (x2 - x1 * x1);
y2 = 1. - x1;
proc print data=out1;
run;
The final parameter estimates x*=(1,1) and the values of the functions f1=Y1 and f2=Y2 are written into an OUT= data set. Since OUTDER=0 is the default, the OUT= data set does not contain the Jacobian.
|
|
proc nlp tech=none model=model inest=est out=out2 outder=1 pjac; lsq y1 y2; parms x1 x2; run; proc print data=out2; run;
Figure 5.4.2 shows the printout of the Jacobian matrix,
|
| |||||||||
|
|
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.