Overview | Group | Tree | Graph | Index | Concepts |
The routine CPXcopypartialbase
is used to copy a partial
basis into an LP problem object. Basis statuses do not need to be specified
for every variable or slack/surplus/artificial variable. If the status of a
variable is not specified, it is made nonbasic at its lower bound
if the lower
bound is finite; otherwise, it is made nonbasic at its upper bound
if the upper bound is
finite; otherwise, it is made nonbasic at 0.0.
If the status of a slack/surplus/artificial variable is not specified,
it is made basic.
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 variable nonbasic at value 0.0 |
CPX_BASIC | 1 | associated slack/surplus/artificial variable basic |
CPX_AT_LOWER | 0 | associated slack variable nonbasic at its lower bound |
CPX_BASIC | 1 | associated slack variable basic |
CPX_AT_UPPER | 2 | associated slack variable nonbasic at its upper bound |
Example
status = CPXcopypartialbase (env, lp, ccnt, colind, colstat, rcnt, rowind, rowstat);
env | A pointer to the CPLEX environment, as returned by |
lp | A pointer to a CPLEX LP problem object, as returned by |
ccnt | An integer that indicates the number of variable/column statuses specified, and is the length of the |
cindices | An array of length |
cstat | An array of length |
rcnt | An integer that indicates the number of slack/surplus/artificial statuses specified, and is the length of the |
rindices | An array of length |
rstat | An array of length |