XPRSgetstrattrib
PurposeEnables users to recover the values of various string problem attributes. Problem attributes are set during loading and optimization of a problem.Synopsisint XPRS_CC XPRSgetstrattrib(XPRSprob prob, int ipar, char *cval);
Arguments
prob The current problem. ipar Problem attribute whose value is to be returned. A full list of all problem attributes may be found in Problem Attributes, or from the list in the xprs.h header file. cval Pointer to a string where the value of the attribute (plus null terminator) will be returned.ExampleThe following retrieves the name of the matrix just loaded:char matrixname[256]; ... XPRSreadprob(prob,"myprob",""); XPRSgetstrattrib(prob, XPRS_MATRIXNAME, matrixname);Related topics
If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.