XPRSgetintattrib
PurposeEnables users to recover the values of various integer problem attributes. Problem attributes are set during loading and optimization of a problem.Synopsisint XPRS_CC XPRSgetintattrib(XPRSprob prob, int ipar, int *ival);
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. ival Pointer to an integer where the value of the problem attribute will be returned.ExampleThe following obtains the number of columns in the matrix and allocates space to obtain lower bounds for each column:int cols; double *lb; ... XPRSgetintattrib(prob,XPRS_COLS,&cols); lb = (double *) malloc(sizeof(double)*cols); XPRSgetlb(prob,lb,0,cols-1);Related topics
If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.