DualValues

Trait DualValues 

Source
pub trait DualValues {
    // Required method
    fn dual(&self, c: ConstraintReference) -> f64;
}
Expand description

A type that contains the dual values of a solution. See SolutionWithDual.

Required Methods§

Source

fn dual(&self, c: ConstraintReference) -> f64

Retrieve a single dual value for a given constraint. This returns the value of the solution for the corresponding variable in the dual problem. This is also called “shadow price” or “dual price”.

Implementors§

Source§

impl DualValues for &ClarabelSolution

Available on crate feature clarabel only.
Source§

impl DualValues for &HighsSolution

Available on crate feature highs only.