problem.readbasis
problem.readbasis |
Purpose
Instructs the Optimizer to read in a previously saved basis from a file.
Synopsis
problem.readbasis(filename, flags)
Arguments
filename
|
A string of up to 200 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
|
(optional) Flags to pass to
readbasis:
|
Example
If an advanced basis is available for the current problem the Optimizer input might be:
p.read("filename", "") p.readbasis("", "") p.mipoptimize("")
This reads in a matrix file, inputs an advanced starting basis and maximizes the MIP.
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.
readbasis will read the basis for the original problem even if the problem 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