oximo-core 0.1.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
use oximo_expr::ParamId;
use smol_str::SmolStr;

/// Parameter metadata. Parameters are scalars referenced symbolically in
/// expressions and re-bound between solves.
///
/// For now, we support scalar parameters only.
///
/// TODO: Add support for more parameters
#[derive(Clone, Debug)]
pub struct Parameter {
    pub id: ParamId,
    pub name: SmolStr,
    pub value: f64,
}