Initializing help system before first use

XPRSreadbasis (READBASIS)

Purpose
Instructs the Optimizer to read in a previously saved basis from a file.
Topic areas
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):
input basis file containing basic solution values;
input a compact advanced form of the basis;
use the provided filename verbatim, without appending the .bss extension;
read a compressed input file.
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.
See also example addmipsol.c.
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.
3. This function cannot be called while the current problem is being solved or when it is in an interrupted state. Use XPRSpostsolve to restore the problem to a non-solving state.
Related topics

© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.