XSLPgetslpsol
| XSLPgetslpsol | 
  Purpose
 
 Obtain the solution values for the most recent SLP iteration
 
  Synopsis
 
int XPRS_CC XSLPgetslpsol(XSLPprob Prob, double *x, double *slack, double *dual, double *dj);
 
  Arguments
 
| 
     Prob 
     | 
     The current SLP problem.
     | 
| 
     x 
     | 
     Double array of length
     XSLP_ORIGINALCOLS to hold the values of the primal variables. May be
     NULL if not required.
     | 
| 
     slack 
     | 
     Double array of length
     XSLP_ORIGINALROWS to hold the values of the slack variables. May be
     NULL if not required.
     | 
| 
     dual 
     | 
     Double array of length
     XSLP_ORIGINALROWS to hold the values of the dual variables. May be
     NULL if not required.
     | 
| 
     dj 
     | 
     Double array of length
     XSLP_ORIGINALCOLS to hold the recuded costs of the primal variables. May be
     NULL if not required.
     | 
  Example
 
 The following code fragment recovers the values and reduced costs of the primal variables from the most recent SLP iteration:
 
XSLPprob prob; int nCol; double *val, *dj; XSLPgetintattrib(prob,XSLP_ORIGINALCOLS,&nCol); val = malloc(nCol*sizeof(double)); dj = malloc(nCol*sizeof(double)); XSLPgetslpsol(prob,val,NULL,NULL,dj);
  Further information
 
 XSLPgetslpsol can be called at any time after an SLP iteration has completed, and will return the same values even if the problem is subsequently changed.
 XSLPgetslpsol returns values for the columns and rows originally in the problem and not for any augmentation rows or columns. To access the values of any augmentation columns or rows, use
 XPRSgetlpsol; accessing the augmented solution is only recommended if
 XSLP_PRESOLVELEVEL indicates that the problem dimensions should not be changed in presolve.
 
 
