Methods
(inner) getPivot(model, variables, basicVariables, nonBasicVariables, type) → {Object|string}
Determines the appropriate pivot row and column, or if the tableau is in a final state whether the result is one of ['solved' | 'multiple solutions' | 'unbounded'].
Parameters:
Name | Type | Description |
---|---|---|
model |
Array | A two-dimensional array of numbers representing the current simplex tableau. |
variables |
Array | An array of strings representing the variables of the tableau. |
basicVariables |
Array | An array of strings representing the basic variables of the tableau. |
nonBasicVariables |
Array | An array of strings representing the variables of the tableau. |
type |
string | The type of optimization ['min' | 'max']. |
Returns:
Returns an object with the pivot row and column indices, unless no further pivoting is possible (e.g., all values in the bottom from are >= 0) either ['solved' | 'multiple solutions' | 'unbounded'].
- Type
- Object | string
(inner) pivotModel(model, pivot) → {Array}
Performs the actual pivoting of the tableau.
Parameters:
Name | Type | Description |
---|---|---|
model |
Array | A two-dimensional array of numbers representing the current simplex tableau. |
pivot |
Object | An object with the pivot row and column indices. |
Returns:
The pivoted model.
- Type
- Array