Overview | Group | Index | Concepts |
The routine CPXcopypartialbase
is used to copy a partial
basis into an LP problem object. Basis status values do not need to
be specified
for every variable or slack, surplus, or 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 (zero).
If the status of a slack, surplus, or 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 is nonbasic at value 0.0 (zero) |
CPX_BASIC | 1 | associated slack, surplus, or artificial variable is 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 or column status values 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, or artificial status values specified, and is the length of the |
rindices | An array of length |
rstat | An array of length |