Enum osqp::Status
[−]
[src]
pub enum Status<'a> { Solved(Solution<'a>), SolvedInaccurate(Solution<'a>), MaxIterationsReached(Solution<'a>), PrimalInfeasible(PrimalInfeasibilityCertificate<'a>), PrimalInfeasibleInaccurate(PrimalInfeasibilityCertificate<'a>), DualInfeasible(DualInfeasibilityCertificate<'a>), DualInfeasibleInaccurate(DualInfeasibilityCertificate<'a>), // some variants omitted }
The result of solving a problem.
Variants
Solved(Solution<'a>)
SolvedInaccurate(Solution<'a>)
MaxIterationsReached(Solution<'a>)
PrimalInfeasible(PrimalInfeasibilityCertificate<'a>)
PrimalInfeasibleInaccurate(PrimalInfeasibilityCertificate<'a>)
DualInfeasible(DualInfeasibilityCertificate<'a>)
DualInfeasibleInaccurate(DualInfeasibilityCertificate<'a>)
Methods
impl<'a> Status<'a>
[src]
fn x(&self) -> Option<&'a [f64]>
[src]
Returns the primal variables at the solution if the problem is Solved
.
fn solution(&self) -> Option<Solution<'a>>
[src]
Returns the solution if the problem is Solved
.
fn iter(&self) -> u32
[src]
Returns the number of iterations taken by the solver.
fn setup_time(&self) -> Duration
[src]
Returns the time taken for the setup phase.
fn solve_time(&self) -> Duration
[src]
Returns the time taken for the solve phase.
fn polish_time(&self) -> Duration
[src]
Returns the time taken for the polish phase.
fn run_time(&self) -> Duration
[src]
Returns the total time taken by the solver.
This includes the time taken for the setup phase on the first solve.
fn rho_updates(&self) -> u32
[src]
Returns the number of rho updates.
fn rho_estimate(&self) -> f64
[src]
Returns the current best estimate of rho.
Trait Implementations
impl<'a> Clone for Status<'a>
[src]
fn clone(&self) -> Status<'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