pub struct ModelData {
pub sense: Sense,
pub objective: Vec<f64>,
pub objective_offset: f64,
pub variables: Bounds,
pub kinds: Vec<VariableKind>,
pub matrix: CsrMatrix,
pub rows: Bounds,
}Expand description
The parts of a model, before validation. Turn it into a Model with
Model::new.
minimize or maximize objective_offset + objective^T x
subject to rows.lower <= matrix x <= rows.upper
variables.lower <= x <= variables.upper
x[j] integer where kinds[j] is Integer or BinaryFields§
§sense: SenseOptimization direction.
objective: Vec<f64>Objective coefficients c, length n.
objective_offset: f64Constant added to the objective.
variables: BoundsVariable bounds, length n.
kinds: Vec<VariableKind>Variable domains, length n.
matrix: CsrMatrixConstraint matrix A, m x n.
rows: BoundsRow bounds, length m.
Trait Implementations§
impl StructuralPartialEq for ModelData
Auto Trait Implementations§
impl Forget for ModelData
impl Freeze for ModelDatawhere
*const u8 is !null: Freeze,
PhantomData<f64>: Freeze,
PhantomData<VariableKind>: Freeze,
PhantomData<usize>: Freeze,
impl Move for ModelData
impl RefUnwindSafe for ModelData
impl Send for ModelDatawhere
RawVecInner: Send,
impl Sync for ModelDatawhere
RawVecInner: Sync,
impl Unpin for ModelData
impl UnsafeUnpin for ModelDatawhere
*const u8 is !null: UnsafeUnpin,
PhantomData<f64>: UnsafeUnpin,
PhantomData<VariableKind>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
impl UnwindSafe for ModelDatawhere
RawVecInner: UnwindSafe,
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