pub struct SqpOptions {Show 13 fields
pub globalization: SqpGlobalization,
pub hessian: SqpHessianSource,
pub tol: Number,
pub constr_viol_tol: Number,
pub dual_inf_tol: Number,
pub max_iter: u32,
pub l1_penalty: Number,
pub l1_penalty_safety: Number,
pub l1_penalty_max: Number,
pub bt_reduction: Number,
pub bt_min_alpha: Number,
pub print_level: u8,
pub lbfgs_max_history: u32,
}Fields§
§globalization: SqpGlobalization§hessian: SqpHessianSource§tol: NumberKKT tolerance (max-norm) on the stationarity residual.
constr_viol_tol: NumberTolerance on constraint violation (max-norm).
dual_inf_tol: NumberTolerance on stationarity residual (max-norm).
max_iter: u32Outer-iteration cap.
l1_penalty: Numberl1-merit penalty parameter ν. Used only when
globalization = L1Elastic. Filter globalization ignores
this. Default is a moderate starting value; the Han-Powell
ν-adaptation in l1_merit_line_search grows ν to dominate
‖λ_qp‖_∞ + l1_penalty_safety on every iteration.
l1_penalty_safety: NumberAdditive safety margin in the Han-Powell ν update:
ν_new = max(ν, ‖λ_qp‖_∞ + l1_penalty_safety). Default 0.1
per Nocedal-Wright §18.4. Only consulted when
globalization = L1Elastic.
l1_penalty_max: NumberUpper clamp on ν. Prevents catastrophic Armijo failure on
pathological problems where ‖λ_qp‖ momentarily spikes.
Default 1e10 — large enough not to interfere with normal
runs, small enough to keep the merit numerically stable.
Only consulted when globalization = L1Elastic.
bt_reduction: NumberBacktracking line-search reduction factor.
bt_min_alpha: NumberMinimum step before declaring line-search failure.
print_level: u8print_level: 0 = silent, 1 = per-iteration summary,
2+ = trace (planned).
lbfgs_max_history: u32Number of (s, y) history pairs retained when
hessian = Lbfgs. Mirrors the upstream
limited_memory_max_history default of 6 (Nocedal-Wright
recommends 3–20). Ignored for Exact and DampedBfgs.
Trait Implementations§
Source§impl Clone for SqpOptions
impl Clone for SqpOptions
Source§fn clone(&self) -> SqpOptions
fn clone(&self) -> SqpOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SqpOptions
impl Debug for SqpOptions
Auto Trait Implementations§
impl Freeze for SqpOptions
impl RefUnwindSafe for SqpOptions
impl Send for SqpOptions
impl Sync for SqpOptions
impl Unpin for SqpOptions
impl UnsafeUnpin for SqpOptions
impl UnwindSafe for SqpOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T, U> Imply<T> for U
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>
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>
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