XPRSreadbasis (READBASIS)
XPRSreadbasis |
READBASIS |
Purpose
Synopsis
int XPRS_CC XPRSreadbasis(XPRSprob prob, const char *filename, const char *flags);
READBASIS [-flags] [filename]
Arguments
prob
|
The current problem.
|
||||
filename
|
A string of up to
MAXPROBNAMELENGTH characters containing the file name from which the basis is to be read. If omitted, the default
problem_name is used with a
.bss extension.
|
||||
flags
|
Flags to pass to
XPRSreadbasis (
READBASIS):
|
Example 1 (Library)
If an advanced basis is available for the current problem the Optimizer input might be:
XPRSreadprob(prob,"filename",""); XPRSreadbasis(prob,"",""); XPRSmipoptimize(prob,"");
This reads in a matrix file, inputs an advanced starting basis and maximizes the MIP.
Example 2 (Console)
An equivalent set of commands for the Console user may look like:
READPROB READBASIS MIPOPTIMIZE
Further information
1. The only check done when reading compact basis is that the number of rows and columns in the basis agrees with the current number of rows and columns.
2.
XPRSreadbasis (
READBASIS) will read the basis for the original problem even if the matrix has been presolved. The Optimizer will read the basis, checking that it is valid, and will display error messages if it detects inconsistencies.
Related topics