Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions src/variable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,16 @@ impl FormatWithVars for Variable {
/// Defines the properties of a variable, such as its lower and upper bounds.
#[derive(Clone, PartialEq, Debug)]
pub struct VariableDefinition {
pub(crate) min: f64,
pub(crate) max: f64,
pub(crate) initial: Option<f64>,
pub(crate) name: String,
pub(crate) is_integer: bool,
/// The minimum bound of the variable
pub min: f64,
/// The maximum bound of the variable
pub max: f64,
/// The optional initial value of the variable
pub initial: Option<f64>,
/// The name of the variable
pub name: String,
/// Whether or not this variable has an integer constraint
pub is_integer: bool,
}

impl VariableDefinition {
Expand Down
Loading