pub struct QualityFunctionAggregates {
pub dual_aggr: Number,
pub primal_aggr: Number,
pub compl_aggr: Number,
pub n_dual: i32,
pub n_pri: i32,
pub n_comp: i32,
}Expand description
Per-norm aggregates feeding evaluate_quality_function.
All four arrays of pre-reduced complementarity infeasibilities are caller-provided so the evaluator stays pure-scalar:
dual_aggr— norm of(grad_lag_x, grad_lag_s)before scaling by(1 − α_du).primal_aggr— norm of(c, d − s)before(1 − α_pri)scaling.compl_aggr— norm of the four trial-complementarity products(s_L · z_L, s_U · z_U, σ_L · v_L, σ_U · v_U)after the σ-step has been applied.n_dual,n_pri,n_comp— block dimensions used by the1-norm and2-norm averaging (the2_squaredandmaxvariants do not divide).
Fields§
§dual_aggr: Number§primal_aggr: Number§compl_aggr: Number§n_dual: i32§n_pri: i32§n_comp: i32Trait Implementations§
Source§impl Clone for QualityFunctionAggregates
impl Clone for QualityFunctionAggregates
Source§fn clone(&self) -> QualityFunctionAggregates
fn clone(&self) -> QualityFunctionAggregates
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 QualityFunctionAggregates
impl Debug for QualityFunctionAggregates
impl Copy for QualityFunctionAggregates
Auto Trait Implementations§
impl Freeze for QualityFunctionAggregates
impl RefUnwindSafe for QualityFunctionAggregates
impl Send for QualityFunctionAggregates
impl Sync for QualityFunctionAggregates
impl Unpin for QualityFunctionAggregates
impl UnsafeUnpin for QualityFunctionAggregates
impl UnwindSafe for QualityFunctionAggregates
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