Mercurial > octave
diff scripts/optimization/fminsearch.m @ 25936:7fa5ee67094a
* fminsearch.m: Suppress output in test.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 18 Oct 2018 15:08:05 -0400 |
parents | a00379f6f8c4 |
children | 804e18e3e320 |
line wrap: on
line diff
--- a/scripts/optimization/fminsearch.m Thu Oct 18 14:34:50 2018 -0400 +++ b/scripts/optimization/fminsearch.m Thu Oct 18 15:08:05 2018 -0400 @@ -525,10 +525,10 @@ %! problem.objective = @sin; %! problem.x0 = 3; %! problem.solver = "fminsearch"; -%! problem.options = optimset ("MaxIter", 3, "Display", "none") +%! problem.options = optimset ("MaxIter", 3, "Display", "none"); %! x = fminsearch (problem); %! assert (x, 4.8750, 1e-4); -%! problem.options = optimset ("MaxFunEvals", 18, "Display", "none") +%! problem.options = optimset ("MaxFunEvals", 18, "Display", "none"); %! x = fminsearch (problem); %! assert (x, 4.7109, 1e-4);