mex.simplex.simplex_networks

Functions

create_matrix(variables, constraints)

Creates a matrix with enough rows for each constraint plus the objective function and enough columns for all the variables.

find_negative_col(matrix)

Finds location of negative values in right column.

find_negative_row(matrix)

Finds location of negative values in bottom row.

find_pivot_col(matrix)

Finds pivot element corresponding to a negative value in right column.

find_pivot_row(matrix)

Finds pivot element corresponding to a negative value in bottom row.

pivot(row, col, matrix)

Pivot about a value to remove negative in final column or row.

pivots_col(matrix)

Checks to see if pivots are required due to negative values in right column, excluding the bottom value.

pivots_row(matrix)

Checks to see if pivots are required due to negative values in bottom row, excluding the final value.