Initializing help system before first use

# problem.getLastBarSol

Purpose
Used to obtain the last barrier solution values following optimization that used the barrier solver.
Topic areas
Solution, Barrier, Optimizer
Synopsis
`x, slack, duals, djs, status = problem.getLastBarSol()`
Return value

x | Double array of length ORIGINALCOLS containing the values of the primal variables.
slack | Double array of length ORIGINALROWS containing the values of the slack variables.
duals | Double array of length ORIGINALROWS containing the values of the dual variables ( cBTB-1).
djs | Double array of length ORIGINALCOLS containing the reduced cost for each variable ( cT-cBTB-1A).
status | Status of the last barrier solve. Value matches that of LPSTATUS should the solve have been stopped immediately after the barrier.

Further information
1. If the barrier solver has not been used, status will return xpress.LPStatus.UNSOLVED.
2. The barrier solution or the solution candidate is always available if the status is not xpress.LPStatus.UNSOLVED.
3. The last barrier solution is available until the next solve, and is not invalidated by otherwise working with the problem.
Related topics
problem.getSolution, problem.getCallbackSolution.
Parent Topic Methods of the class problem

© 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.