Usage: |
maxel = nmlinprogmaxel(coef,row,collist, {ncol,inabs})
|
Input: |
| coef | nr x nc matrix, nr,nc >= 2,
tableau of a linear programming problem
|
| row | scalar, 0 <= row <= nr-1, index of the row
in which a maximum element should be found;
index ir corresponds to coef[ir+1,]
|
| collist | c x 1 vector, list of columns for searching;
index ic corresponds to coef[,ic+1]
|
| ncol | (optional) scalar, number of columns that should be
searched through for maximum. Default ncol = rows(collist).
|
| inabs | (optional) scalar specifying whether
the quantlet should search maximum
with (inabs = 1) or without (inabs = 0)
taking the absolute value. Default inabs = 0.
|
Output: |
| maxel.val | scalar, maximum value |
| maxel.ind | integer, ind+1 is the index of the column of coef that
contains the maximum |