pub(super) fn optimize_column_independently(
        &mut self,
        variable: usize,
    ) -> Result<RemovedVariable<OF>, LinearProgramType<OF>> {
        debug_assert_ne!(self.general_form.variables[variable].cost, OF::zero());

        let new_value = self.get_optimized_value(variable)?;
        self.fixed_cost += &self.general_form.variables[variable].cost * &new_value;

        Ok(RemovedVariable::Solved(new_value))
    }
/// Sets variables that can be optimized independently of all others to their optimal values.
Sets variables that can be optimized independently of all others to their optimal values.
Sets variables that can be optimized independently of all others to their optimal values .
pub(super) fn optimize_column_independently(
        &mut self,
        variable: usize,
    ) -> Result<RemovedVariable<OF>, LinearProgramType<OF>> {
        debug_assert_ne!(self.general_form.variables[variable].cost, OF::zero());
        let new_value = self.get_optimized_value(variable)?;
        self.fixed_cost += &self.general_form.variables[variable].cost * &new_value;
        Ok(RemovedVariable::Solved(new_value))
    }
pub ( super ) fn optimize_column_independently ( & mut self , variable : usize , ) -> Result < RemovedVariable < OF > , LinearProgramType < OF > > { debug_assert_ne ! ( self general_form variables [ variable ] cost OF zero ( ) ) ; let new_value = self . get_optimized_value ( variable ) ? ; self . fixed_cost += & self . general_form . variables [ variable ] . cost * & new_value ; Ok ( RemovedVariable :: Solved ( new_value ) ) }
Sets variables that can be optimized independently of all others to their optimal values.
Sets variables that can be optimized independently of all others to their optimal values .
&mut self
variable
usize
&mut self
variable
usize