pub struct NlSuffixes {
pub var_int: BTreeMap<String, Vec<Index>>,
pub con_int: BTreeMap<String, Vec<Index>>,
pub obj_int: BTreeMap<String, Vec<Index>>,
pub problem_int: BTreeMap<String, Index>,
pub var_real: BTreeMap<String, Vec<Number>>,
pub con_real: BTreeMap<String, Vec<Number>>,
pub obj_real: BTreeMap<String, Vec<Number>>,
pub problem_real: BTreeMap<String, Number>,
}Expand description
Suffix data parsed out of S-segments. Sparse entries are scattered
into dense vectors at problem load time so callers can index by
variable / constraint number directly. Empty maps when the .nl
file declared no suffixes.
Fields§
§var_int: BTreeMap<String, Vec<Index>>Variable-level integer suffixes (kind = 0). Each vector has
length n_full (problem variables).
con_int: BTreeMap<String, Vec<Index>>Constraint-level integer suffixes (kind = 1). Length m_full.
obj_int: BTreeMap<String, Vec<Index>>Objective-level integer suffixes (kind = 2). Length num_obj.
problem_int: BTreeMap<String, Index>Problem-level integer suffixes (kind = 3). Single value per name.
var_real: BTreeMap<String, Vec<Number>>Variable-level real suffixes (kind = 4). Length n_full.
con_real: BTreeMap<String, Vec<Number>>Constraint-level real suffixes (kind = 5). Length m_full.
obj_real: BTreeMap<String, Vec<Number>>Objective-level real suffixes (kind = 6). Length num_obj.
problem_real: BTreeMap<String, Number>Problem-level real suffixes (kind = 7). Single value per name.
Trait Implementations§
Source§impl Clone for NlSuffixes
impl Clone for NlSuffixes
Source§fn clone(&self) -> NlSuffixes
fn clone(&self) -> NlSuffixes
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 NlSuffixes
impl Debug for NlSuffixes
Source§impl Default for NlSuffixes
impl Default for NlSuffixes
Source§fn default() -> NlSuffixes
fn default() -> NlSuffixes
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NlSuffixes
impl RefUnwindSafe for NlSuffixes
impl Send for NlSuffixes
impl Sync for NlSuffixes
impl Unpin for NlSuffixes
impl UnsafeUnpin for NlSuffixes
impl UnwindSafe for NlSuffixes
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