Trait DownhillSolverTrait

Source
pub trait DownhillSolverTrait: DownhillSolverTraitConst + MinProblemSolverTrait {
    // Required method
    fn as_raw_mut_DownhillSolver(&mut self) -> *mut c_void;

    // Provided method
    fn set_init_step(&mut self, step: &impl ToInputArray) -> Result<()> { ... }
}
Expand description

Mutable methods for core::DownhillSolver

Required Methods§

Provided Methods§

Source

fn set_init_step(&mut self, step: &impl ToInputArray) -> Result<()>

Sets the initial step that will be used in downhill simplex algorithm.

Step, together with initial point (given in DownhillSolver::minimize) are two n-dimensional vectors that are used to determine the shape of initial simplex. Roughly said, initial point determines the position of a simplex (it will become simplex’s centroid), while step determines the spread (size in each dimension) of a simplex. To be more precise, if inline formula are the initial step and initial point respectively, the vertices of a simplex will be: inline formula and inline formula for inline formula where inline formula denotes projections of the initial step of n-th coordinate (the result of projection is treated to be vector given by inline formula, where inline formula form canonical basis)

§Parameters
  • step: Initial step that will be used in algorithm. Roughly said, it determines the spread (size in each dimension) of an initial simplex.

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§