 |
 |
 |
 |
Purpose |
 |
 |
Load a basis specified by arrays.
|
 |
Synopsis |
 |
 |
int QSload_basis_array (QSprob p, char *cstat, char *rstat)
|
 |
Arguments |
 |
p |
 |
a handle to an initialized problem. |
cstat |
 |
an array of length ncols , the number of columns in the problem; cstat[j] should specify the status of the j th column. |
rstat |
 |
an array of length nrows , the number of rows in the problem; rstat[i] should specify the status of the i th row. |
|
 |
Returns |
 |
 |
A zero value if the function terminated correctly, and a non-zero value if an error occurred.
|
 |
Description |
 |
 |
The basis should be described by the arrays cstat and rstat , using the encoding given above in the description of QSget_basis_array. If values other than those listed above are specified in cstat or rstat , then an error code will be returned by QSload_basis_array.
|
 |
Example |
 |
 |
/* p is an initialized QSprob, a handle to an existing LP problem */
/* cstat and rstat are arrays containing the basis information. */
int rval;
rval = QSload_basis_array (p, cstat, rstat);
if (rval) {
fprintf (stderr, "Could not load the basis, error code %d\n", rval);
}
|
 |
|
|