Overview | Group | Tree | Graph | Index | Concepts |
The routine CPXgetbase
is used to get the basis resident
in a CPLEX problem object. Either of the arguments cstat
or
rstat
may be NULL, if only one set of statuses is needed.
CPX_AT_LOWER | 0 | variable at lower bound |
CPX_BASIC | 1 | variable is basic |
CPX_AT_UPPER | 2 | variable at upper bound |
CPX_FREE_SUPER | 3 | variable free and nonbasic |
CPX_AT_LOWER | 0 | associated slack/surplus/artificial variable nonbasic at value 0.0 |
CPX_BASIC | 1 | associated slack/surplus/artificial variable basic |
CPX_AT_LOWER | 0 | associated slack/surplus/artificial variable nonbasic at its lower bound |
CPX_BASIC | 1 | associated slack/surplus/artificial variable basic |
CPX_AT_UPPER | 2 | associated slack/surplus/artificial variable nonbasic at upper bound |
Example
status = CPXgetbase (env, lp, cstat, rstat);
See also the example lpex6.c
in the
ILOG CPLEX User's Manual and in the standard distribution.
env | A pointer to the CPLEX environment as returned by |
lp | A pointer to a CPLEX problem object as returned by |
cstat | An array to receive the basis status of the columns in the CPLEX problem object. The length of the array must be no less than the number of columns in the matrix. The array element |
rstat | An array to receive the basis status of the artificial/slack/surplus variable associated with each row in the constraint matrix. The array's length must be no less than the number of rows in the CPLEX problem object. For rows other than ranged rows, the array element |