XPRSgetdblattrib


Purpose
Enables users to retrieve the values of various double problem attributes. Problem attributes are set during loading and optimization of a problem.
Synopsis
int XPRS_CC XPRSgetdblattrib(XPRSprob prob, int ipar, double *dval);
Arguments
prob 
The current problem.
ipar 
Problem attribute whose value is to be returned. A full list of all available problem attributes may be found in Problem Attributes, or from the list in the xprs.h header file.
dval 
Pointer to a double where the value of the problem attribute will be returned.
Example
The following obtains the optimal value of the objective function and displays it to the console:
double lpobjval;
...
XPRSmaxim(prob,"");
XPRSgetdblattrib(prob,XPRS_LPOBJVAL,&lpobjval);
printf("The maximum profit is %f\n",lpobjval);
Related topics
XPRSgetintattrib, XPRSgetstrattrib.


If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.