pub struct DualVariables {
pub equalities: Vec<f64>,
pub inequalities: Vec<f64>,
pub bounds: Vec<f64>,
pub l1: Vec<f64>,
}Expand description
Dual multipliers associated with each constraint block.
Inequality multipliers use the convention A_ineq * x <= b_ineq and are
therefore non-negative. A box multiplier is negative at a lower bound and
positive at an upper bound.
Fields§
§equalities: Vec<f64>Equality multipliers.
inequalities: Vec<f64>Upper-inequality multipliers.
bounds: Vec<f64>Combined normal-cone multipliers for variable boxes.
l1: Vec<f64>Subgradient multipliers of the L1Term; empty when
the problem has none.
Each entry lies in [-costs[i], costs[i]] and equals the signed cost
wherever the variable moved off the anchor (+costs[i] above it,
-costs[i] below).
Trait Implementations§
Source§impl Clone for DualVariables
impl Clone for DualVariables
Source§fn clone(&self) -> DualVariables
fn clone(&self) -> DualVariables
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 DualVariables
impl Debug for DualVariables
Source§impl Default for DualVariables
impl Default for DualVariables
Source§fn default() -> DualVariables
fn default() -> DualVariables
Returns the “default value” for a type. Read more
Source§impl PartialEq for DualVariables
impl PartialEq for DualVariables
impl StructuralPartialEq for DualVariables
Auto Trait Implementations§
impl Freeze for DualVariables
impl RefUnwindSafe for DualVariables
impl Send for DualVariables
impl Sync for DualVariables
impl Unpin for DualVariables
impl UnsafeUnpin for DualVariables
impl UnwindSafe for DualVariables
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