Retrieving Problem Attributes
Library users are provided with the following three functions for obtaining the values of attributes:
XPRSgetintattrib | XPRSgetdblattrib | XPRSgetstrattrib |
Much as for the controls previously, it should be noted that the attributes as listed in this chapter must be prefixed with XPRS_ to be used with the FICO Xpress Libraries and failure to do so will result in an error. An example of their usage is the following which returns and prints the optimal value of the objective function after the linear problem has been solved:
XPRSgetdblattrib(prob, XPRS_LPOBJVAL, &lpobjval);
printf("The objective value is %2.1f\n", lpobjval);