From: Michael C. <mc...@us...> - 2005-01-14 09:18:44
|
Update of /cvsroot/octave/octave-forge/main/optim In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12496/main/optim Modified Files: bfgsmin_example.m Log Message: improve explanatory comments Index: bfgsmin_example.m =================================================================== RCS file: /cvsroot/octave/octave-forge/main/optim/bfgsmin_example.m,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- bfgsmin_example.m 8 Sep 2004 14:10:43 -0000 1.2 +++ bfgsmin_example.m 14 Jan 2005 09:18:35 -0000 1.3 @@ -69,13 +69,13 @@ printf("\nEXAMPLE 5: Limited memory BFGS, Numeric gradient\n"); x0 = ones(2,1); y0 = 2*ones(2,1); -control = {10,2,1,1, 3}; # maxiters, verbosity, conv. reg., arg_to_min +control = {10,2,1,1,3}; # maxiters, verbosity, conv. reg., arg_to_min, memory [theta, obj_value, convergence] = bfgsmin("objective1", {x0, y0}, control); printf("\n"); printf("\nEXAMPLE 6: Limited memory BFGS, Analytic gradient\n"); -control = {50,2,1,1,3}; # maxiters, verbosity, conv. reg., arg_to_min +control = {50,2,1,1,3}; # maxiters, verbosity, conv. reg., arg_to_min, memory [theta, obj_value, convergence] = bfgsmin("objective2", {x0, y0}, control); printf("\n"); |