Struct descent::model::Solution

source ·
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

Calculate the value of an expression using the solution.

Get the value of variable for solution.

Get the constraint KKT / Lagrange multiplier.

Get the variable lower bound constraint KKT / Lagrange multiplier.

Get the variable upper bound constraint KKT / Lagrange multiplier.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.