Struct osqp::Solution
[−]
[src]
pub struct Solution<'a> { /* fields omitted */ }
A solution to a problem.
Methods
impl<'a> Solution<'a>
[src]
fn x(&self) -> &'a [f64]
[src]
Returns the primal variables at the solution.
fn y(&self) -> &'a [f64]
[src]
Returns the dual variables at the solution.
These are the Lagrange multipliers of the constraints l <= Ax <= u
.
fn obj_val(&self) -> f64
[src]
Returns the primal objective value.
fn pri_res(&self) -> f64
[src]
Returns the norm of primal residual.
fn dua_res(&self) -> f64
[src]
Returns the norm of dual residual.