Trait good_lp::solvers::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§
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<'a> DualValues for &'a HighsSolution
Available on crate feature
highs only.