pub struct InitOptions {
pub bound_push: Number,
pub bound_frac: Number,
pub slack_bound_push: Number,
pub slack_bound_frac: Number,
pub constr_mult_init_max: Number,
pub bound_mult_init_val: Number,
pub bound_mult_init_method: String,
pub least_square_init_primal: bool,
}Expand description
Knobs read off OptionsList and baked into
DefaultIterateInitializer. Defaults mirror
IpDefaultIterateInitializer.cpp:RegisterOptions. The Mehrotra
cascade in application.rs overrides bound_push, bound_frac,
and bound_mult_init_val to upstream’s more-aggressive values
(10, 0.2, 1.0).
Fields§
§bound_push: Number§bound_frac: Number§slack_bound_push: Number§slack_bound_frac: Number§constr_mult_init_max: Number§bound_mult_init_val: Number§bound_mult_init_method: Stringbound_mult_init_method: "constant" (default) or "mu-based"
(matches upstream’s IpDefaultIterateInitializer.cpp).
least_square_init_primal: boolleast_square_init_primal — replace the user’s starting x
with the min-norm primal that satisfies the linearized
constraints. Used by the Mehrotra cascade in application.rs
to drop iter-0 primal infeasibility on LP-shaped problems.
Mirrors upstream IpDefaultIterateInitializer.cpp:200-222.
Trait Implementations§
Source§impl Clone for InitOptions
impl Clone for InitOptions
Source§fn clone(&self) -> InitOptions
fn clone(&self) -> InitOptions
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 InitOptions
impl Debug for InitOptions
Auto Trait Implementations§
impl Freeze for InitOptions
impl RefUnwindSafe for InitOptions
impl Send for InitOptions
impl Sync for InitOptions
impl Unpin for InitOptions
impl UnsafeUnpin for InitOptions
impl UnwindSafe for InitOptions
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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