Initializing help system before first use

XPRSgetlastbarsol

Purpose
Used to obtain the last barrier solution values following optimization that used the barrier solver.
Topic areas
Synopsis
int XPRS_CC XPRSgetlastbarsol(XPRSprob prob, double x[], double slack[], double duals[], double djs[], int *p_status);
Arguments
prob 
The current problem.
Double array of length ORIGINALCOLS where the values of the primal variables will be returned. May be NULL if not required.
slack 
Double array of length ORIGINALROWS where the values of the slack variables will be returned. May be NULL if not required.
duals 
Double array of length ORIGINALROWS where the values of the dual variables ( cBTB-1) will be returned. May be NULL if not required.
djs 
Double array of length ORIGINALCOLS where the reduced cost for each variable ( cT-cBTB-1A) will be returned. May be NULL if not required.
p_status 
Status of the last barrier solve. Value matches that of XPRS_LPSTATUS should the solve have been stopped immediately after the barrier.
Further information
1. If the barrier solver has not been used, p_status will return XPRS_LP_UNSOLVED.
2. The barrier solution or the solution candidate is always available if the status is not XPRS_LP_UNSOLVED.
3. The last barrier solution is available until the next solve, and is not invalidated by otherwise working with the problem.
Related topics

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