Simplex tableau routines

Problem.eval_tab_row(ind, names_preferred=False)

Compute row of the simplex tableau

Parameters:names_preferred (bool) – whether to return row and column names or indices
Problem.eval_tab_col(ind, names_preferred=False)

Compute column of the simplex tableau

Parameters:names_preferred (bool) – whether to return row and column names or indices
Problem.transform_row(coeffs, names_preferred=False)

Transform explicitly specified row

Parameters:
  • coeffsMapping from column names (str strings) to coefficient values (Real)
  • names_preferred (bool) – whether to return row and column names or indices
Returns:

transformed row

Return type:

Mapping from row and column names (str strings) to coefficient values (Real)

Problem.transform_col(coeffs, names_preferred=False)

Transform explicitly specified column

Parameters:
  • coeffsMapping from row names (str strings) to coefficient values (Real)
  • names_preferred (bool) – whether to return row and column names or indices
Returns:

transformed column

Return type:

Mapping from row and column names (str strings) to coefficient values (Real)

Problem.prim_rtest(coeffs, int direction, double eps, names_preferred=False)

Perform primal ratio test

Parameters:names_preferred (bool) – whether to return row and column names or indices
Problem.dual_rtest(coeffs, int direction, double eps, names_preferred=False)

Perform dual ratio test

Parameters:names_preferred (bool) – whether to return row and column names or indices