pub fn relative_cost(&self, j: usize) -> IM::F {
        debug_assert!(j < self.nr_columns());

        let initial = self.kind.initial_cost_value(j);
        let difference = self.inverse_maintainer.cost_difference(&self.kind.original_column(j));
        difference + initial
    }
/// Calculates the relative cost of a column.
///
/// # Arguments
///
/// * `j`: Index of column to calculate the relative cost for, in range `0` through
/// `self.nr_variables()`.
///
/// # Return value
///
/// The relative cost.
///
/// # Note
///
/// That column will typically not be a basis column. Although the method could be valid for
/// those inputs as well, this should never be calculated, as the relative cost always equals
/// zero in that situation.
Calculates the relative cost of a column.
Calculates the relative cost of a column .
pub fn relative_cost(&self, j: usize) -> IM::F {
        debug_assert!(j < self.nr_columns());
        let initial = self.kind.initial_cost_value(j);
        let difference = self.inverse_maintainer.cost_difference(&self.kind.original_column(j));
        difference + initial
    }
pub fn relative_cost ( & self , j : usize ) -> IM :: F { debug_assert ! ( j self nr_columns ( ) ) ; let initial = self . kind . initial_cost_value ( j ) ; let difference = self . inverse_maintainer . cost_difference ( & self . kind . original_column ( j ) ) ; difference + initial }
Calculates the relative cost of a column.
Calculates the relative cost of a column .
&self
j
usize
&self
j
usize
return value
The relative cost.
The relative cost .
note
That column will typically not be a basis column. Although the method could be valid for
those inputs as well, this should never be calculated, as the relative cost always equals
zero in that situation.
That column will typically not be a basis column . Although the method could be valid for those inputs as well this should never be calculated as the relative cost always equals zero in that situation .