Usage: |
p = nmlinprogpivot(coef,rowlist,pcol {,tol})
|
Input: |
| coef | nr x nc matrix, nr,nc >= 2,
tableau of a linear programming problem
|
| rowlist | r x 1 vector, list of rows for searching;
index ir corresponds to coef[ir+1,]
|
| pcol | scalar, 0 <= pcol <= nc-1, index of the column
in which a pivot element should be found;
index pcol corresponds to coef[,pcol+1]
|
| tol | (optional) scalar, tolerance. Elements of coef having absolute
value smaller than tol will be considered as zeros.
Default tol = 1e-7.
|
Output: |
| p.pivot | integer, p.pivot+1 is the index of the row of coef that
contains the pivot |
| p.q | scalar, quotient -coef[pivot+1,1] ./ coef[pivot+1,pcol+1] |