pub trait MinProblemSolverConst: AlgorithmTraitConst {
    fn as_raw_MinProblemSolver(&self) -> *const c_void;

    fn get_function(&self) -> Result<Ptr<dyn MinProblemSolver_Function>> { ... }
    fn get_term_criteria(&self) -> Result<TermCriteria> { ... }
}
Expand description

Basic interface for all solvers

Required Methods

Provided Methods

Getter for the optimized function.

The optimized function is represented by Function interface, which requires derivatives to implement the calc(double*) and getDim() methods to evaluate the function.

Returns

Smart-pointer to an object that implements Function interface - it represents the function that is being optimized. It can be empty, if no function was given so far.

Getter for the previously set terminal criteria for this algorithm.

Returns

Deep copy of the terminal criteria used at the moment.

Implementors