Purpose
Print the dimensions and memory allocations for a problem
Synopsis
int XPRS_CC XSLPuprintmemory(XSLPprob prob);
Argument
|
Prob
|
The current SLP problem.
|
Example
The following example loads a problem from file and then prints the dimensions
of the arrays.
XSLPreadprob(Prob, "Matrix1", "");
XSLPuprintmemory(Prob);
The output is similar to the following:
Arrays and dimensions:
Array Item Used Max Allocated Memory
Size Items Items Memory Control
MemList 28 103 129 4K
String 1 8779 13107 13K XSLP_MEM_STRING
Xv 16 2 1000 16K XSLP_MEM_XV
Xvitem 48 11 1000 47K XSLP_MEM_XVITEM
....
Further information
XSLPuprintmemory lists the current sizes and amounts used of the
variable arrays in the current problem. For each array, the size of each item, the number
used and the number allocated are shown, together with the size of memory allocated and,
where appropriate, the name of the memory control variable to set the array size. Loading
and execution of some problems can be speeded up by setting the memory controls immediately
after the problem is created. If an array has to be moved to re-allocate it with a larger
size, there may be insufficient memory to hold both the old and new versions; pre-setting
the memory controls reduces the number of such re-allocations which take place and may
allow larger problems to be solved.
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.