This function calls the cost function and makes it match neldermead
requirements. It is used in the
fminsearch function as the
function element of the neldermead object (see
A single column vector of parameter estimates.
An integer variable set to 2, indicating that only the cost function is to be computed by the algorithm.
An object of class 'optimbase.functionargs' and with
(at least) a
Returns a list with the following elements:
The value of the cost function at the current point estimate.
A list with a single element
Author of Scilab neldermead module: Michael Baudin (INRIA - Digiteo)
Author of R adaptation: Sebastien Bihorel (firstname.lastname@example.org)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.