Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Memory leak in Matlab interface

    Posted 09/22/12 01:33 AM

    Originally posted by: SystemAdmin


    I think this is an issue reported by other user, see
    http://www.ibm.com/developerworks/forums/thread.jspa?messageID=14824041

    The problem can be reproduced by calling cplexlp within a for-loop or parfor loop.

    1. using for loop, the memory consumed by MATLAB continuously increases.
    2. using parfor loop, memory of each worker of MATLAB continuously increases.
    3. using linprog instead of cplexlp, no such memory leak.
    I cleared all unnecessary data at the end of each loop.

    Any advice will be greatly appreciated!
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Memory leak in Matlab interface

    Posted 09/22/12 01:44 AM

    Originally posted by: SystemAdmin


    I'm sorry I forgot to mention the environmet:
    win7 64 bit, MATLAB 2012a 64bit, CPLEX 12.4.1

    Thanks in advance!
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Memory leak in Matlab interface

    Posted 09/25/12 02:21 AM

    Originally posted by: SystemAdmin


    I also tried to use the cplex class object instead of cplexlp function. If I reuse the object as much as possible in the for-loop, the memory usage looks fine. But when using parfor-loop, I have to create the objects within each loop since MATLAB think this object can't be sliced. The memory increases a lot in the parfor case.

    For the performance, using class object seems to be much slower than calling cplexlp in each case. Could someone please explain this difference?

    I hope some one can help me with the memory issue. Right now, I have to restart MATLAB after a while, it's really annoying.....
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: Memory leak in Matlab interface

    Posted 10/16/12 06:01 AM

    Originally posted by: RWunderling


    Thank you for pointing out this problem. We are working on a fix.
    In the mean time, I understand you are in direct contact with the CPLEX dev team
    for working on a workaround.

    Roland
    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: Memory leak in Matlab interface

    Posted 01/08/13 06:47 PM

    Originally posted by: SystemAdmin


    I'm having the same problem. Is there a fix or work around for this issue? I've updated to the latest version 12.4.0.1 but am still experiencing the same problem.
    #CPLEXOptimizers
    #DecisionOptimization