Initializing help system before first use

problem.getpresolvesol

problem.getpresolvesol


Purpose
Returns the solution for the presolved problem from memory.
Synopsis
problem.getpresolvesol (x, slack, dual, dj)
Arguments
Array to store the values of the primal variables. May be None if not required.
slack 
Array to store the values of the slack variables. May be None if not required.
dual 
Array to store the values of the dual variables. May be None if not required.
dj 
Array to store the reduced cost for each variable. May be None if not required.
Example
The following reads in a (Mixed) Integer Programming problem and displays the solution to the presolved problem following optimization of the linear relaxation:
p.read ("MyProb", "")
p.mipoptimize ("l")
sol = []
p.getpresolvesol (x = sol)
print ("presolved sol", sol)
Further information
1. If the problem has not been presolved, the solution in memory will be returned.
2. The solution to the original problem should be returned using the related function problem.getlpsol.
3. If called during a global callback the solution of the current node will be returned.
4. When an integer solution is found during a global search, it is always set up as a solution to the current node; therefore the integer solution is available as the current node solution and can be retrieved with getlpsol and problem.getpresolvesol.