pub struct Goldstein {
pub control: Scalar,
pub cut_back: Scalar,
pub max_steps: usize,
}Expand description
The Goldstein conditions on the objective.
Fields§
§control: Scalar§cut_back: Scalar§max_steps: usizeTrait Implementations§
Source§impl ObjectiveMerit for Goldstein
impl ObjectiveMerit for Goldstein
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 Goldstein
impl RefUnwindSafe for Goldstein
impl Send for Goldstein
impl Sync for Goldstein
impl Unpin for Goldstein
impl UnsafeUnpin for Goldstein
impl UnwindSafe for Goldstein
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