XPRSgetcolrange


Purpose
Returns the column ranges computed by XPRSrange.
Synopsis
int XPRS_CC XPRSgetcolrange(XPRSprob prob, double upact[], double loact[], double uup[], double udn[], double ucost[], double lcost[]);
Arguments
prob 
The current problem.
upact 
Double array of length COLS for upper column activities.
loact 
Double array of length COLS for lower column activities.
uup 
Double array of length COLS for upper column unit costs.
udn 
Double array of length COLS for lower column unit costs.
ucost 
Double array of length COLS for upper costs.
lcost 
Double array of length COLS for lower costs.
Example
Here the column ranges are retrieved into arrays as in the synopsis:
int cols;
double *upact, *loact, *uup, *udn, *ucost, *lcost;
...
XPRSgetintattrib(prob,XPRS_COLS,&cols);
upact = malloc(cols*(sizeof(double)));
loact = malloc(cols*(sizeof(double)));
uup   = malloc(cols*(sizeof(double)));
udn   = malloc(cols*(sizeof(double)));
ucost = malloc(cols*(sizeof(double)));
lcost = malloc(cols*(sizeof(double)));
XPRSrange(prob);
XPRSgetcolrange(prob,upact,loact,uup,udn,ucost,lcost);
Further information
The activities and unit costs are obtained from the range file (problem_name.rng). The meaning of the upper and lower column activities and upper and lower unit costs in the ASCII range files is described in Appendix Log and File Formats.
Related topics
XPRSgetrowrange, XPRSrange.


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