This function calls the output function and make it match neldermead requirements. It is used in the fminsearch function as the outputcommand element of the neldermead object (see ?neldermead and ?neldermead.set).
fminsearch.outputfun(state =NULL, data =NULL, fmsdata =NULL)
Arguments
state: The current state of the algorithm either 'init', 'iter' or 'done'.
data: The data at the current state. This is an object of class 'neldermead.data', i.e. a list with the following elements:
x: The current parameter estimates.
fval: The current value of the cost function.
simplex: The current simplex object.
iteration: The number of iterations performed.
funccount: The number of function evaluations.
step: The type of step in the previous iteration.
fmsdata: This is an object of class 'optimbase.functionargs' which contains specific data of the fminsearch algorithm:
Display: what to display
OutputFcn: the array of output functions
PlotFcns: the array of plot functions
Returns
This function does not return any data, but execute the output function(s).
Author(s)
Author of Scilab neldermead module: Michael Baudin (INRIA - Digiteo)