Initializing help system before first use

XSLPgetdblattrib

XSLPgetdblattrib


Purpose
Retrieve the value of a double precision problem attribute
Synopsis
int XPRS_CC XSLPgetdblattrib(XSLPprob Prob, int Param, double *dValue);
Arguments
Prob 
The current SLP problem.
Param 
attribute (SLP or optimizer) whose value is to be returned.
dValue 
Address of a double precision variable to receive the value.
Example
The following example retrieves the value of the Xpress NonLinear attribute XSLP_CURRENTDELTACOST and of the optimizer attribute XPRS_LPOBJVAL:
double DeltaCost, ObjVal;
XSLPgetdblattrib(Prob, XSLP_CURRENTDELTACOST, &DeltaCost);
XSLPgetdblattrib(Prob, XPRS_LPOBJVAL, &ObjVal);
Further information
Both SLP and optimizer attributes can be retrieved using this function. If an optimizer attribute is requested, the return value will be the same as that from XPRSgetdblattrib.
Related topics