Initializing help system before first use

# problem.getpresolvesol

Purpose
This subroutine is deprecated and will be removed in a future release. Use problem.getPresolveSol instead.
Returns the solution for the presolved problem from memory.
Synopsis
`problem.getpresolvesol(x, slack, duals, djs)`
Arguments

x | 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.
duals | Array to store the values of the dual variables. May be None if not required.
djs | 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.controls.mipstopstage = xp.MIPStopStage.INITIALRELAXATION
    p.mipoptimize()
    p.setDefaultControl('mipstopstage')
    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 MIP callback the solution of the current node will be returned.
4. When an integer solution is found during tree 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.
Parent Topic Deprecated functionality

© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.