Decision Optimization

Decision Optimization

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

 View Only

Memory leaks in CPLEX MATLAB

  • 1.  Memory leaks in CPLEX MATLAB

    Posted Tue February 21, 2012 04:11 PM

    Originally posted by: andreacassioli


    Hi,
    I am using the CPLEX MATLAB interface by means of the CPLEX API. I am solving a sequence of say 100 MILP problems with some thousands of variables (and constraints). CPLEX works fine but I sometimes need to stop it using ctrl-C. In that case I have noticed that the memory is not completely released, i.e. the memory in use by MATLAB does not go back to the value before calling CPLEX. I am taking about 2-300MB of RAM, which after a couple of executions rapidly fill my memory. I have tried flushing all data (say clearing all) but it seems that is the cplex object that does not release the memory. In fact the memory is steady during the execution, it does not grow, only it does not go down after CPLEX exits.
    I am using a 64bit Linux MATLAB version 7.11, with CPLEX 12.3.

    Thanks,
    Andrea
    #CPLEXOptimizers
    #DecisionOptimization