Trait MinProblemSolverTraitConst

Source
pub trait MinProblemSolverTraitConst: AlgorithmTraitConst {
    // Required method
    fn as_raw_MinProblemSolver(&self) -> *const c_void;

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

Constant methods for core::MinProblemSolver

Required Methods§

Provided Methods§

Source

fn get_function(&self) -> Result<Ptr<MinProblemSolver_Function>>

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.

Source

fn get_term_criteria(&self) -> Result<TermCriteria>

Getter for the previously set terminal criteria for this algorithm.

§Returns

Deep copy of the terminal criteria used at the moment.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§