oximo-core 0.2.0

Core modeling types (Variable, Set, Constraint, Model) for oximo
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use oximo_expr::ExprId;

/// Whether the model minimizes or maximizes its objective.
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub enum ObjectiveSense {
    Minimize,
    Maximize,
}

/// The model's objective: an expression to optimize and the direction.
#[derive(Clone, Debug)]
pub struct Objective {
    /// Root node of the objective expression in the model's [`oximo_expr::ExprArena`].
    pub expr: ExprId,
    pub sense: ObjectiveSense,
}