XPRBsavebasis
XPRBsavebasis |
Purpose
Synopsis
XPRBbasis XPRBsavebasis(XPRBprob prob);
Argument
prob
|
Reference to a problem.
|
Return value
Reference to the saved basis.
Example
XPRBprob expl2; XPRBbasis basis; expl2 = XPRBnewprob("example2"); ... XPRBlpoptimize(expl2, ""); basis = XPRBsavebasis(expl2);
This saves the current basis.
Further information
This function saves the current basis of a problem. The basis may be reinput using function
XPRBloadbasis. These two functions serve for storing bases in memory; for writing a basis to a file, the Optimizer library function
XPRSwritebasis may be used. Note that there is no need to allocate space for the basis, but after its use, the basis should be deleted using function
XPRBdelbasis. You may have to switch linear presolve and integer preprocessing off (Optimizer library controls
PRESOLVE and
MIPPRESOLVE) in order for the saving and reloading of bases to work correctly.
Related topics
XPRBdelbasis,
XPRBloadbasis,
XPRSreadbasis (see Optimizer Reference Manual),
XPRSwritebasis (see Optimizer Reference Manual).