Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

Estimate the memory used by the constraints

  • 1.  Estimate the memory used by the constraints

    Posted Mon December 12, 2011 12:26 PM

    Originally posted by: wyk


    Hi,

    I was wondering if there is an analytical way to estimate the memory used by the constraints without using the profiler. For example, if I have the following constraint:

    x >= y + 5,
    


    where x and y are both IloInt. How much memory does CPLEX use to implement this constraint? Also, is there a reference for the type and the size of the CPLEX variables?

    Thanks!
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Estimate the memory used by the constraints

    Posted Thu December 15, 2011 03:55 AM

    Originally posted by: SystemAdmin


    Do you mean x and y are of type IloIntVar (you wrote IloInt)?
    What memory consumption of the constraint are you interested in? The space required for the instances of the C++ classes? In this case IloEnv::getMemoryUsage() may be helpful.
    Or the memory that is required by the core engine when it actually starts solving the problem?
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Estimate the memory used by the constraints

    Posted Thu December 15, 2011 02:31 PM

    Originally posted by: wyk


    Hi Daniel,

    Yes x and y are of type IloIntVar. I was trying to estimate the space required to fit the variables and constraints. The function getMemoryUsage() works very well for my purpose. Thanks a lot!
    #CPLEXOptimizers
    #DecisionOptimization