Trait optimization::LineSearch [] [src]

pub trait LineSearch: Debug {
    fn search<F>(&self, function: &F, initial_position: &[f64], direction: &[f64]) -> Vec<f64> where F: Function1;
}

Define a line search method, i.e., choosing an appropriate step width.

Required Methods

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

Performs the actual line search given the current position x and a direction to go to. Returns the new position.

Implementors