pub struct Wolfe {
pub control_1: Scalar,
pub control_2: Scalar,
pub cut_back: Scalar,
pub max_steps: usize,
pub strong: bool,
}Expand description
The Wolfe conditions on the objective.
Fields§
§control_1: Scalar§control_2: Scalar§cut_back: Scalar§max_steps: usize§strong: boolTrait Implementations§
Source§impl ObjectiveMerit for Wolfe
impl ObjectiveMerit for Wolfe
Source§fn search<X, J, D, W, E>(
&self,
function: impl FnMut(&X, Scalar) -> Result<Scalar, String>,
jacobian: impl FnMut(&X) -> Result<J, String>,
argument: &X,
jacobian0: &J,
decrement: &D,
step_size: Scalar,
) -> Result<Scalar, LineSearchError>
fn search<X, J, D, W, E>( &self, function: impl FnMut(&X, Scalar) -> Result<Scalar, String>, jacobian: impl FnMut(&X) -> Result<J, String>, argument: &X, jacobian0: &J, decrement: &D, step_size: Scalar, ) -> Result<Scalar, LineSearchError>
Backtrack along a step of the objective, whose gradient is known.
Auto Trait Implementations§
impl Freeze for Wolfe
impl RefUnwindSafe for Wolfe
impl Send for Wolfe
impl Sync for Wolfe
impl Unpin for Wolfe
impl UnsafeUnpin for Wolfe
impl UnwindSafe for Wolfe
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