MixtureOptimizer.optimize

Performs optimization.

  1. void optimize(T delegate(in T[] mixture) objectiveFunction, bool delegate(T objectiveFunctionValuePrev, T objectiveFunctionValue, in T[] weightsPrev, in T[] weights) tolerance, bool delegate(T a, T b) @(nogc) nothrow findRootTolerance)
    class MixtureOptimizer(T)
    final
    void
    optimize
    (
    scope T delegate
    (
    in T[] mixture
    )
    objectiveFunction
    ,,
    scope bool delegate
    (
    T a
    ,
    T b
    )
    @nogc nothrow
    findRootTolerance = null
    )
    if (
    isFloatingPoint!T
    )
  2. void optimize(T delegate(in T[] mixture) objectiveFunction, bool delegate(T objectiveFunctionValuePrev, T objectiveFunctionValue) tolerance, bool delegate(T a, T b) @(nogc) nothrow findRootTolerance)
  3. void optimize(bool delegate(in T[] weightsPrev, in T[] weights) tolerance, bool delegate(T a, T b) @(nogc) nothrow findRootTolerance)

Parameters

objectiveFunction T delegate
(
in T[] mixture
)

accepts mixture.

tolerance bool delegate

Defines an early termination condition. Receives the current and previous versions of objectiveFunction(mixture)) and weights. The delegate must return true when mixture and weights are acceptable.

findRootTolerance bool delegate
(
T a
,
T b
)
@nogc nothrow

Tolerance for inner optimization.

See Also

$(STDREF numeric, findRoot) eval evaluate

Meta