pub struct JiaModel {
pub model_type: Option<ModelType>,
pub name: String,
pub variables: Vec<VarDecl>,
pub domains: Vec<DomainStmt>,
pub constraints: Vec<Constraint>,
pub objective: Option<Objective>,
}Expand description
A complete Jia model.
Fields§
§model_type: Option<ModelType>Model type (from @model tag), or None if not specified.
name: StringModel name (from the model <name> declaration).
variables: Vec<VarDecl>Variable declarations.
domains: Vec<DomainStmt>Domain specifications.
constraints: Vec<Constraint>Constraints.
objective: Option<Objective>Optional optimization objective.
Trait Implementations§
impl StructuralPartialEq for JiaModel
Auto Trait Implementations§
impl Freeze for JiaModel
impl RefUnwindSafe for JiaModel
impl Send for JiaModel
impl Sync for JiaModel
impl Unpin for JiaModel
impl UnsafeUnpin for JiaModel
impl UnwindSafe for JiaModel
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