pub struct LineSearchOptions {
pub watchdog_shortened_iter_trigger: Index,
pub watchdog_trial_iter_max: Index,
pub soft_resto_pderror_reduction_factor: Number,
pub max_soft_resto_iters: Index,
}Expand description
Knobs baked into the assembled BacktrackingLineSearch. Defaults
mirror IpBacktrackingLineSearch.cpp:RegisterOptions.
Fields§
§watchdog_shortened_iter_trigger: Index§watchdog_trial_iter_max: Index§soft_resto_pderror_reduction_factor: Numbersoft_resto_pderror_reduction_factor — required relative
reduction in the primal-dual error for a soft-resto step.
0 disables the soft restoration phase.
max_soft_resto_iters: Indexmax_soft_resto_iters — cap on consecutive soft-resto
iterations before full restoration is forced.
Trait Implementations§
Source§impl Clone for LineSearchOptions
impl Clone for LineSearchOptions
Source§fn clone(&self) -> LineSearchOptions
fn clone(&self) -> LineSearchOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LineSearchOptions
impl Debug for LineSearchOptions
Auto Trait Implementations§
impl Freeze for LineSearchOptions
impl RefUnwindSafe for LineSearchOptions
impl Send for LineSearchOptions
impl Sync for LineSearchOptions
impl Unpin for LineSearchOptions
impl UnsafeUnpin for LineSearchOptions
impl UnwindSafe for LineSearchOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more