pub struct AlmOptimizerStatus { /* private fields */ }
Expand description

Solution statistics for AlmOptimizer

This structure has no public fields and no public setter methods.
The idea is that only Optimization Engine can create optimizer AlmOptimizerStatus instances.

Implementations§

source§

impl AlmOptimizerStatus

source

pub fn update_cost(&mut self, new_cost: f64)

Update cost (to be used when the cost needs to be scaled as a result of preconditioning)

source

pub fn update_f1_infeasibility(&mut self, new_alm_infeasibility: f64)

Update ALM infeasibility

source

pub fn update_f2_norm(&mut self, new_pm_infeasibility: f64)

Update PM infeasibility

source

pub fn exit_status(&self) -> ExitStatus

Exit status of solver

§Panics

Does not panic

source

pub fn num_outer_iterations(&self) -> usize

Number of outer iterations

§Panics

Does not panic

source

pub fn num_inner_iterations(&self) -> usize

Total count of inner iterations performed by PANOCOptimizer

§Panics

Does not panic

source

pub fn lagrange_multipliers(&self) -> &Option<Vec<f64>>

Vector of Lagrange multipliers at the solution

The method returns a reference to an Option<Vec<f64>> which contains the vector of Lagrange multipliers at the solution, or is None if the problem has no ALM-type constraints.

§Panics

Does not panic

source

pub fn last_problem_norm_fpr(&self) -> f64

Norm of the fixed-point residual of the last inner problem

§Panics

Does not panic

source

pub fn solve_time(&self) -> Duration

Total time to solve the problem (runtime of method AlmOptimizer.solve())

§Panics

Does not panic

source

pub fn penalty(&self) -> f64

Penalty parameter at the solution

§Panics

Does not panic

source

pub fn delta_y_norm_over_c(&self) -> f64

Norm of Delta y divided by max{c, 1} - measure of infeasibility

source

pub fn f2_norm(&self) -> f64

Norm of F2(u) - measure of infeasibility of F2(u) = 0

source

pub fn cost(&self) -> f64

Value of the cost function at the solution

Trait Implementations§

source§

impl Debug for AlmOptimizerStatus

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V