Optimizer

Optimizer

new Optimizer(parameters, criterion)

Description:
  • Implements a criterion function minimizer.

Parameters:
Name Type Description
parameters Array.<Numeric>

A ``std::vector` with the solver parameters.

criterion Criterion

The criterion function to minimize.

Methods

minimize(values, loopopt) → {double}

Description:
  • Incrementally locally minimizes the criterion with respect to the given parameter values.

    • If the step is undefined, the optimization starts with the zero default values.
    • If the step is defined, the optimizations start at regular samples in the [min, max] intervals.
Parameters:
Name Type Attributes Default Description
values Array.<double>

The optimal parameter values on output.

  • The values array size must equal the parameters array size, otherwise an undetectable segmentation fault occurs.
loop unit <optional>
0

Maximal numer of iteration, 0 means unbounded.

Returns:

The final optimized criterion value.

Type
double