pub struct Solution {
pub objective: f64,
pub variables: Vec<VariableValue>,
}Expand description
export all public structs and enums Solution to a CPLEX Problem.
Currently, there is no way to select which variables are extracted
when using prob.solve(). I am currently unfamiliar with the C
API for managing variables that remain unbound in the solution,
and so am unsure how to represent them.
Fields§
§objective: f64The value of the objective reached by CPLEX.
variables: Vec<VariableValue>The values bound to each variable.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Solution
impl RefUnwindSafe for Solution
impl Send for Solution
impl Sync for Solution
impl Unpin for Solution
impl UnwindSafe for Solution
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