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<'a> DualValues for &'a HighsSolution

Available on crate feature highs only.