problem.getpresolvebasis
problem.getpresolvebasis |
Purpose
Returns the current basis from memory into the user's data areas. If the problem is presolved, the presolved basis will be returned. Otherwise the original basis will be returned.
Synopsis
problem.getpresolvebasis(rstatus, cstatus)
Arguments
rstatus
|
Array of length
problem.attributes.rows to the basis status of the stack, surplus or artificial variable associated with each row. The status will be one of:
May be
None if not required.
|
||||||||
cstatus
|
Array of length
problem.attributes.cols to hold the basis status of the columns in the constraint matrix. The status will be one of:
May be
None if not required.
|
Example
The following obtains and outputs basis information on a presolved problem prior to the global search:
cs = [] p = xpress.problem() p.read("global1", "") p.mipoptimize() p.getpresolvebasis(cstatus=cs)
Related topics