Struct osqp::Solution
[−]
[src]
pub struct Solution<'a> { /* fields omitted */ }
A solution to a problem.
Methods
impl<'a> Solution<'a>
[src]
pub fn x(&self) -> &'a [f64]
[src]
Returns the primal variables at the solution.
pub fn y(&self) -> &'a [f64]
[src]
Returns the dual variables at the solution.
These are the Lagrange multipliers of the constraints l <= Ax <= u
.
pub fn polish_status(&self) -> PolishStatus
[src]
Returns the status of the polish operation.
pub fn obj_val(&self) -> f64
[src]
Returns the primal objective value.
pub fn pri_res(&self) -> f64
[src]
Returns the norm of primal residual.
pub fn dua_res(&self) -> f64
[src]
Returns the norm of dual residual.
Trait Implementations
impl<'a> Clone for Solution<'a>
[src]
fn clone(&self) -> Solution<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more