pub struct Armijo {
pub control: Scalar,
pub cut_back: Scalar,
pub max_steps: usize,
}Expand description
The Armijo condition on the objective.
Fields§
§control: Scalar§cut_back: Scalar§max_steps: usizeTrait Implementations§
Source§impl ObjectiveMerit for Armijo
impl ObjectiveMerit for Armijo
Source§fn search<W, U, V>(
&self,
value: impl FnMut(Quantity<W>) -> Result<Quantity<V>, String>,
slope: impl FnMut(Quantity<W>) -> Result<Quantity<U>, String>,
step_size: Quantity<W>,
) -> Result<Quantity<W>, LineSearchError<W>>where
W: UnitMul<U, Output = V>,
fn search<W, U, V>(
&self,
value: impl FnMut(Quantity<W>) -> Result<Quantity<V>, String>,
slope: impl FnMut(Quantity<W>) -> Result<Quantity<U>, String>,
step_size: Quantity<W>,
) -> Result<Quantity<W>, LineSearchError<W>>where
W: UnitMul<U, Output = V>,
Backtrack along a step of the objective, whose slope along it is known.
Auto Trait Implementations§
impl Freeze for Armijo
impl RefUnwindSafe for Armijo
impl Send for Armijo
impl Sync for Armijo
impl Unpin for Armijo
impl UnsafeUnpin for Armijo
impl UnwindSafe for Armijo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more