Struct optimization_engine::core::fbs::FBSOptimizer[][src]

pub struct FBSOptimizer<'a, GradientType, ConstraintType, CostType> where
    GradientType: Fn(&[f64], &mut [f64]) -> FunctionCallResult,
    CostType: Fn(&[f64], &mut f64) -> FunctionCallResult,
    ConstraintType: Constraint
{ /* fields omitted */ }
Expand description

Optimiser using forward-backward splitting iterations (projected gradient)

Note that an FBSOptimizer holds a reference to an instance of FBSEngine which needs to be created externally. A mutable reference to that FBSEgnine is provided to the optimizer.

The FBSEngine is supposed to be updated whenever you need to solve a different optimization problem.

Implementations

Constructs a new instance of FBSOptimizer

Arguments
  • problem: problem definition
  • cache: instance of FBSCache

Sets the tolerance

Panics

The method panics if the specified tolerance is not positive

Sets the maximum number of iterations

Sets the maximum number of iterations

Trait Implementations

solves a given problem and updates the initial estimate u with the solution Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.