Trait argmin::solver::linesearch::condition::LineSearchCondition [−][src]
pub trait LineSearchCondition<T, F>: Serialize { fn eval(
&self,
cur_cost: F,
cur_grad: T,
init_cost: F,
init_grad: T,
search_direction: T,
alpha: F
) -> bool; fn requires_cur_grad(&self) -> bool; }
Expand description
Needs to be implemented by everything that wants to be a LineSearchCondition
Required methods
Evaluate the condition
fn requires_cur_grad(&self) -> bool
fn requires_cur_grad(&self) -> bool
Indicates whether this condition requires the computation of the gradient at the new point