QSopt QSread_and_load_basis QSopt > Callable Library > Function List
  QSopt
  Downloads
  LP Info
  Software
  Problem Formats
  Callable Library
  Overview
Function List
  Rational Solver
  Beta
  Contact Info
Purpose
Read and load a basis.
Synopsis
int QSread_and_load_basis (QSprob p, const char *filename)
Arguments
p a handle to an initialized problem.
filename a string specifying the name of the file containing the basis.
Returns
A zero value if the function terminated correctly, and a non-zero value if an error occurred.
Description

This function reads a basis from a file an stores in directly in the QSprob data structure, avoiding both the need to keep a QSbas structure as well as the format issues that arise in the use of the QSload_basis_array function.

The basis file should contain a description of the basis in the industry standard MPS Basis format. (This is the format used by QSwrite_basis.)

Example
/* p is an initialized QSprob, a handle to an existing LP problem  */

int rval;

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