problem.getglobal
problem.getglobal |
Purpose
Retrieves global information about a problem. It must be called before
problem.mipoptimize if the presolve option is used.
Synopsis
problem.getglobal(qgtype, mgcols, dlim, qstype, msstart, mscols, dref)
Arguments
qgtype
|
Character array where the entity types will be returned. The types will be one of:
|
||||||||||
mgcols
|
Array where the columns of the global entities will be returned.
|
||||||||||
dlim
|
Array where the limits for the partial integer variables and lower bounds for the semi-continuous and semi-continuous integer variables will be returned (any entries in the positions corresponding to binary and integer variables will be meaningless).
|
||||||||||
qstype
|
Character array where the set types will be returned. The set types will be one of:
|
||||||||||
msstart
|
Array where the offsets into the
mscols and
dref arrays indicating the start of the sets will be returned. This array must be of length
SETMEMBERS+1: the final element contains the length of the
mscols and
dref arrays.
|
||||||||||
mscols
|
Array of length
problem.attributes.setmembers where the columns in each set will be returned.
|
||||||||||
dref
|
Array of length
problem.attributes.setmembers where the reference row entries for each member of the sets will be returned.
|
Example
The following obtains the SOS information:
qstype = [] mstart = [] mscols = [] dref = [] p.getglobal(None, None, None, qstype, mstart, mscols, dref)
Further information
All arguments may be
None if not required.
Related topics