Initializing help system before first use

problem.getpresolvemap

problem.getpresolvemap


Purpose
Returns the mapping of the row and column numbers from the presolve problem back to the original problem.
Synopsis
problem.getpresolvemap(rowmap, colmap)
Arguments
rowmap 
Array to store the row maps.
colmap 
Array to store the column maps.
Example
The following reads in a (Mixed) Integer Programming problem and gets the mapping for the rows and columns back to the original problem following optimization of the linear relaxation. The elimination operations of the presolve are turned off so that a one-to-one mapping between the presolve problem and the original problem.
p.read("MyProb", "")
p.controls.presolveops = 255
p.mipoptimize("l")
rowmap = []
colmap = []
p.getpresolvemap(rowmap, colmap)
Further information
The presolved problem can contain rows or columns that do not map to anything in the original problem. An example of this are cuts created during the MIP solve and temporarily added to the presolved problem. It is also possible that the presolver will introduce new rows or columns. For any row or column that does not have a mapping to a row or column in the original problem, the corresponding entry in the returned rowmap and colmap arrays will be -1.