problem.getlastbarsol
problem.getlastbarsol |
Purpose
Obtains the last barrier solution values following optimization that used the barrier solver.
Synopsis
barsolstatus = problem.getastbarsol(x=None, slack=None, dual=None, dj=None);
Arguments
x
|
Double array of length
problem.attributes.cols where the values of the primal variables will be returned. May be
None if not required.
|
slack
|
Double array of length
problem.attributes.rows where the values of the slack variables will be returned. May be
None if not required.
|
dual
|
Double array of length
problem.attributes.rows where the values of the dual variables (
cBTB-1) will be returned. May be
None if not required.
|
dj
|
Double array of length
problem.attributes.cols where the reduced cost for each variable (
cT-cBTB-1A) will be returned. May be
None if not required.
|
barsolstatus
|
Status of the last barrier solve. Value matches that of the
lpstatus attribute if the solve stopped immediately after the barrier.
|
Further information
1. If the barrier solver has not been used,
barsolstatus will return
xpress.lp_unsolved.
2. The barrier solution or the solution candidate is always available if the status is not
xpress.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