pub struct WorkingSet {
pub bounds: Vec<BoundStatus>,
pub constraints: Vec<ConsStatus>,
}Expand description
The working set for a QP of dimension n with m general
constraints. bounds.len() == n, constraints.len() == m.
Fields§
§bounds: Vec<BoundStatus>§constraints: Vec<ConsStatus>Implementations§
Source§impl WorkingSet
impl WorkingSet
Sourcepub fn cold(n: usize, m: usize) -> WorkingSet
pub fn cold(n: usize, m: usize) -> WorkingSet
All-inactive working set sized to (n, m). This is the cold-
start seed handed to the phase-1 elastic-mode QP.
pub fn n(&self) -> usize
pub fn m(&self) -> usize
Sourcepub fn active_count(&self) -> usize
pub fn active_count(&self) -> usize
Count of active bounds plus active constraints (the dimension of the KKT block currently driving the EQP step).
Trait Implementations§
Source§impl Clone for WorkingSet
impl Clone for WorkingSet
Source§fn clone(&self) -> WorkingSet
fn clone(&self) -> WorkingSet
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 WorkingSet
impl Debug for WorkingSet
impl Eq for WorkingSet
Source§impl PartialEq for WorkingSet
impl PartialEq for WorkingSet
impl StructuralPartialEq for WorkingSet
Auto Trait Implementations§
impl Freeze for WorkingSet
impl RefUnwindSafe for WorkingSet
impl Send for WorkingSet
impl Sync for WorkingSet
impl Unpin for WorkingSet
impl UnsafeUnpin for WorkingSet
impl UnwindSafe for WorkingSet
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,
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> ⓘ
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