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