fn create_minus_obj_from_artificial<'a, MP: MatrixProvider>(
        provider: &'a MP,
        basis: &[usize],
        b: &DenseVector<F>,
    ) -> F
    where
        F: ops::Column<<MP::Column as Column>::F> + ops::Cost<MP::Cost<'a>>,
    {
        let mut objective = F::zero();
        for row in 0..provider.nr_rows() {
            objective += &b[row] * provider.cost_value(basis[row]);
        }
        -objective
    }
/// Create the -pi value from an existing basis.
///
/// # Arguments
///
/// * `provider`: Matrix provider.
/// * `basis`: Basis indices (elements are already shifted, no compensation for the artificial
/// variables is needed).
/// * `b`: Constraint values with respect to this basis.
Create the -pi value from an existing basis.
Create the - pi value from an existing basis .
fn create_minus_obj_from_artificial<'a, MP: MatrixProvider>(
        provider: &'a MP,
        basis: &[usize],
        b: &DenseVector<F>,
    ) -> F
    where
        F: ops::Column<<MP::Column as Column>::F> + ops::Cost<MP::Cost<'a>>,
    {
        let mut objective = F::zero();
        for row in 0..provider.nr_rows() {
            objective += &b[row] * provider.cost_value(basis[row]);
        }
        -objective
    }
fn create_minus_obj_from_artificial < ' a , MP : MatrixProvider > ( provider : & ' a MP , basis : & [ usize ] , b : & DenseVector < F > , ) -> F where F : ops :: Column < < MP :: Column as Column > :: F > + ops :: Cost < MP :: Cost < ' a > > , { let mut objective = F :: zero ( ) ; for row in 0 .. provider . nr_rows ( ) { objective += & b [ row ] * provider . cost_value ( basis [ row ] ) ; } - objective }
Create the -pi value from an existing basis.
Create the - pi value from an existing basis .
provider
&'a MP
basis
&[usize]
b
&DenseVector<F>
provider
&'a MP
basis
&[usize]
b
&DenseVector<F>