QSopt QSload_basis_array QSopt > Callable Library > Function List
  QSopt
  Downloads
  LP Info
  Software
  Problem Formats
  Callable Library
  Overview
Function List
  Rational Solver
  Beta
  Contact Info
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 jth column.
rstat an array of length nrows, the number of rows in the problem; rstat[i] should specify the status of the ith 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);
}
 
QSopt | Problem Formats | Downloads Back
Last Updated: November 2003