Initializing help system before first use

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:
slack, surplus or artificial is non-basic at lower bound;
slack, surplus or artificial is basic;
slack or surplus is non-basic at upper bound.
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:
variable is non-basic at lower bound, or superbasic at zero if the variable has no lower bound;
variable is basic;
variable is at upper bound;
variable is super-basic.
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