XPRSgetlastbarsol
XPRSgetlastbarsol |
Purpose
Used to obtain the last barrier solution values following optimization that used the barrier solver.
Synopsis
int XPRS_CC XPRSgetastbarsol(XPRSprob prob, double x[], double slack[], double dual[], double dj[], int *barsolstatus);
Arguments
prob
|
The current problem.
|
x
|
Double array of length
COLS where the values of the primal variables will be returned. May be
NULL if not required.
|
slack
|
Double array of length
ROWS where the values of the slack variables will be returned. May be
NULL if not required.
|
dual
|
Double array of length
ROWS where the values of the dual variables (
cBTB-1) will be returned. May be
NULL if not required.
|
dj
|
Double array of length
COLS where the reduced cost for each variable (
cT-cBTB-1A) will be returned. May be
NULL if not required.
|
barsolstatus
|
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,
barsolstatus 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