Scilab-Branch-5.3-GIT
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
optimplotfunccount
Plot the number of function evaluations of an optimization algorithm
SYNOPSIS
optimplotfunccount ( x , optimValues , state )
Description
This function creates and updates a plot of the number of function evaluations, depending on the number of iterations. It is a pre-defined plot function which should be used as an option of the "PlotFcns" option.
Example
In the following example, we use the optimplotfunccount
function
for use with the fminsearch
function.
function y=rosenbrock(x) y = 100*(x(2)-x(1)^2)^2 + (1-x(1))^2; endfunction opt = optimset ( "PlotFcns" , optimplotfunccount ); [x fval] = fminsearch ( rosenbrock , [-1.2 1] , opt );
Authors
Michael Baudin - Digiteo - 2009
See Also
- optimset — Configures and returns an optimization data structure.
- fminsearch — Computes the unconstrained minimimum of given function with the Nelder-Mead algorithm.
- optimplotx — Plot the value of the parameters of an optimization algorithm
- optimplotfval — Plot the function value of an optimization algorithm
<< optimget | Neldermead | optimplotfval >> |