pub struct Solution {
pub obj_val: f64,
pub store: Store,
pub con_mult: Vec<f64>,
pub var_lb_mult: Vec<f64>,
pub var_ub_mult: Vec<f64>,
}
Expand description
Data for a valid solution.
Fields
obj_val: f64
Objective value.
store: Store
Store of variable and parameter values.
con_mult: Vec<f64>
Constraint Lagrange / KKT multipliers.
var_lb_mult: Vec<f64>
Variable lower bound KKT multipliers.
var_ub_mult: Vec<f64>
Variable upper bound KKT multipliers.
Implementations
sourceimpl Solution
impl Solution
pub fn new() -> Self
sourcepub fn value(&self, expr: &Expression) -> f64
pub fn value(&self, expr: &Expression) -> f64
Calculate the value of an expression using the solution.
sourcepub fn var_lb_mult(&self, Var: Var) -> f64
pub fn var_lb_mult(&self, Var: Var) -> f64
Get the variable lower bound constraint KKT / Lagrange multiplier.
sourcepub fn var_ub_mult(&self, Var: Var) -> f64
pub fn var_ub_mult(&self, Var: Var) -> f64
Get the variable upper bound constraint KKT / Lagrange multiplier.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Solution
impl Send for Solution
impl Sync for Solution
impl Unpin for Solution
impl UnwindSafe for Solution
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more