QSopt QSload_basis 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 stored in a basis structure.
Synopsis
int QSload_basis (QSprob p, QSbas B)
Arguments
p a handle to an initialized problem.
B a handle to a basis for the problem.
Returns
A zero value if the function terminated correctly, and a non-zero value if an error occurred.
Description

Use this function to load a previously saved basis into the QSprob data structure. The basis B should have been obtained either via a call to QSget_basis or via a call to QSread_basis. The QSload_basis function will check that the size of the basis agrees with the size of the LP problem p, and return an error code if the two do not match.

Example
/* p is an intialized handle to an existing LP problem.     */
/* B is an initialized QSbas for p with matching size       */

int rval;

rval= QSload_basis (p, B);
if (rval) {
   fprintf (stderr, 
            "Could not load the basis, error code %d\n", rval);
}
 
QSopt | Problem Formats | Downloads Back
Last Updated: November 2003