pub fn from_artificial(
        inverse_maintainer: IM,
        nr_artificial: usize,
        basis_indices: HashSet<usize>,
        provider: &'provider MP,
    ) -> Self {
        Tableau {
            inverse_maintainer: IM::from_artificial(
                inverse_maintainer,
                provider,
                nr_artificial,
            ),
            // Shift the basis column indices back
            basis_columns: basis_indices.into_iter()
                .map(|column| column - nr_artificial)
                .collect(),

            kind: NonArtificial {
                provider,
            },
        }
    }
/// Create a `Tableau` from an artificial tableau.
///
/// # Arguments
///
/// * `artificial_tableau`: `Tableau` instance created with artificial variables.
///
/// # Return value
///
/// `Tableau` with the same basis, but non-artificial cost row.
Create a `Tableau` from an artificial tableau.
Create a ` Tableau ` from an artificial tableau .
pub fn from_artificial(
        inverse_maintainer: IM,
        nr_artificial: usize,
        basis_indices: HashSet<usize>,
        provider: &'provider MP,
    ) -> Self {
        Tableau {
            inverse_maintainer: IM::from_artificial(
                inverse_maintainer,
                provider,
                nr_artificial,
            ),
            // Shift the basis column indices back
            basis_columns: basis_indices.into_iter()
                .map(|column| column - nr_artificial)
                .collect(),
            kind: NonArtificial {
                provider,
            },
        }
    }
pub fn from_artificial ( inverse_maintainer : IM , nr_artificial : usize , basis_indices : HashSet < usize > , provider : & ' provider MP , ) -> Self { Tableau { inverse_maintainer : IM :: from_artificial ( inverse_maintainer , provider , nr_artificial , ) , // Shift the basis column indices back basis_columns : basis_indices . into_iter ( ) . map ( | column | column - nr_artificial ) . collect ( ) , kind : NonArtificial { provider , } , } }
Create a `Tableau` from an artificial tableau.
Create a ` Tableau ` from an artificial tableau .
inverse_maintainer
IM
nr_artificial
usize
basis_indices
HashSet<usize>
provider
&'provider MP
inverse_maintainer
IM
nr_artificial
usize
basis_indices
HashSet<usize>
provider
&'provider MP
return value
`Tableau` with the same basis, but non-artificial cost row.
` Tableau ` with the same basis but non - artificial cost row .