Hello,
I am doing a quasi newton optimization method but I have a problem. The optimization stop before I find the global maximum.
I wonder if I could use a termination criterion of 1e-4 in order to stop the optimization after getting an objective function as small as I want and if it is possible, how to do it?
Here is my code
proc iml;
use a;
read all var _NUM_ into data;
close a;
reset storage = &lib..myfunctions;
load module=(function1 function2);
parameters = j(3, 1, .) ;
parameters[1] = 1.1 ;
parameters[3]=0.5;
con = {-10 1E-9, 10 1}
opt = {1 4} ;
*Quasi-Newton Method ;
call NLPQN(rc, parameters, "function1", theta, opt, con);
quit ;
Thank you for helping