Struct relp::algorithm::two_phase::tableau::kind::artificial::partially::Partially[][src]

pub struct Partially<'a, MP: MatrixProvider> { /* fields omitted */ }
Expand description

The TableauType in case the Tableau contains artificial variables.

Trait Implementations

impl<'provider, MP> Artificial for Partially<'provider, MP> where
    MP: MatrixProvider<Column: IdentityColumn>, 
[src]

fn nr_artificial_variables(&self) -> usize[src]

How many artificial variables are in the tableau. Read more

fn pivot_row_from_artificial(&self, artificial_index: usize) -> usize[src]

At which row is the pivot from a specific artificial variable located? Read more

impl<'a, MP: Debug + MatrixProvider> Debug for Partially<'a, MP>[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<'a, MP> Kind for Partially<'a, MP> where
    MP: MatrixProvider<Column: IdentityColumn>, 
[src]

fn initial_cost_value(&self, j: usize) -> Self::Cost[src]

Coefficient of variable j in the objective function.

Arguments

  • j: Column index of the variable, in range 0 until self.nr_columns().

Return value

The cost of variable j.

fn original_column(&self, j: usize) -> Self::Column[src]

Retrieve an original column.

Arguments

  • tableau: Tableau to retrieve the column from.
  • j: Column index of the variable, in range 0 until self.nr_columns().

Return value

The generated column, relative to the basis represented in the Tableau.

type Column = MP::Column

Representation of the column of the tableau. Read more

type Cost = Cost

Cost row type. Read more

fn nr_rows(&self) -> usize[src]

Number of rows in the matrix and tableau. Read more

fn nr_columns(&self) -> usize[src]

Number of columns in the tableau. Read more

impl<'a, MP: PartialEq + MatrixProvider> PartialEq<Partially<'a, MP>> for Partially<'a, MP>[src]

fn eq(&self, other: &Partially<'a, MP>) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Partially<'a, MP>) -> bool[src]

This method tests for !=.

impl<'a, MP: Eq + MatrixProvider> Eq for Partially<'a, MP>[src]

impl<'a, MP: MatrixProvider> StructuralEq for Partially<'a, MP>[src]

impl<'a, MP: MatrixProvider> StructuralPartialEq for Partially<'a, MP>[src]

Auto Trait Implementations

impl<'a, MP> RefUnwindSafe for Partially<'a, MP> where
    MP: RefUnwindSafe

impl<'a, MP> Send for Partially<'a, MP> where
    MP: Sync

impl<'a, MP> Sync for Partially<'a, MP> where
    MP: Sync

impl<'a, MP> Unpin for Partially<'a, MP>

impl<'a, MP> UnwindSafe for Partially<'a, MP> where
    MP: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

pub fn equivalent(&self, key: &K) -> bool[src]

Compare self to key and return true if they are equal.

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.