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§
Sourcefn dual(&self, c: ConstraintReference) -> f64
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§
impl DualValues for &ClarabelSolution
Available on crate feature
clarabel only.impl DualValues for &HighsSolution
Available on crate feature
highs only.