[][src]Trait optimization::LineSearch

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.

Loading content...

Implementors

impl LineSearch for ArmijoLineSearch[src]

impl LineSearch for ExactLineSearch[src]

impl LineSearch for FixedStepWidth[src]

Loading content...