Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.

 View Only
Expand all | Collapse all

total memory usage

  • 1.  total memory usage

    Posted Wed December 25, 2013 11:59 PM

    Originally posted by: amindehghanian


    Hello,

     

    How can I reach the information about the total memory used in solving an MIP  in the callable library?

     

    Thanks,


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: total memory usage

    Posted Mon January 06, 2014 05:29 AM

    That information is not available since CPLEX does not even keep track of that. Depending on the operating system you use there are usually ways to read the high-water mark of memory consumption which can serve as an approximation to the total memory consumption.

    On Windows you can use function GetProcessMemoryInfo() and for example look at the PeakWorkingSetSize field in the result.

    On Linux  you can read /proc/<pid>/status and look at the VmHWM field.

    In both case the result can be used as an approximation of the maximum memory usage.


    #CPLEXOptimizers
    #DecisionOptimization