From: Michael C. <mc...@us...> - 2007-10-19 09:28:54
|
Update of /cvsroot/octave/octave-forge/main/econometrics/inst In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv30147/inst Modified Files: nls_example.m Log Message: minor cleanup Index: nls_example.m =================================================================== RCS file: /cvsroot/octave/octave-forge/main/econometrics/inst/nls_example.m,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- nls_example.m 23 Mar 2007 16:14:30 -0000 1.2 +++ nls_example.m 19 Oct 2007 09:28:06 -0000 1.3 @@ -38,23 +38,21 @@ endfunction -#################################### +##################################### # define arguments for nls_estimate # -#################################### - +##################################### # starting values theta = zeros(3,1); - # data data = [y, x]; - # name of model to estimate model = "nls_example_obj"; modelargs = {}; # none required for this obj fn. +# controls for bfgsmin - limit to 50 iters, and print final results +control = {50,1}; - -# controls for bfgsmin -control = {50,1,1,1}; - -printf("\n\NLS estimation example\n"); +#################################### +# do the estimation # +#################################### +printf("\nNLS estimation example\n"); [theta, obj_value, convergence] = nls_estimate(theta, data, model, modelargs, control); |