Skip to main content

Module var

Module var 

Source

Structs§

VarBuilder
Builder backing the variable! macro. Configure bounds / domain, then call Self::build to register the variable and obtain an Expr handle.
Variable
Variable metadata held by the Model. Users do not construct this directly, they get an Expr back from VarBuilder::build and look up solution values via crate::Model / oximo_solver::SolverResult.

Functions§

var_name
Display name of v within vars, degrading to variable #<index> when the id is out of range (a foreign or not-yet-registered VarId). Used to build human-readable error messages that name the offending variable.