Struct optimization::FixedStepWidth [] [src]

pub struct FixedStepWidth {
    // some fields omitted
}

Uses a fixed step width γ in each iteration instead of performing an actual line search.

Methods

impl FixedStepWidth

fn new(fixed_step_width: f64) -> FixedStepWidth

Creates a new FixedStepWidth given the static step width.

Trait Implementations

impl LineSearch for FixedStepWidth

fn search<F>(&self, _function: &F, initial_position: &[f64], direction: &[f64]) -> Vec<f64> where F: Function

Derived Implementations

impl Clone for FixedStepWidth

fn clone(&self) -> FixedStepWidth

1.0.0fn clone_from(&mut self, source: &Self)

impl Copy for FixedStepWidth

impl Debug for FixedStepWidth

fn fmt(&self, __arg_0: &mut Formatter) -> Result