Originally posted by: PaulBerglund
For what it's worth I too am still having the
problem. I switched from using the toolbox
function to using the cplex class, but I am
still seeing gradually increasing memory use
for MATLAB. It is increasing fairly slowly;
by about 5MB for each invocation of a function
that makes on the order of 1000 calls to cplex
every time it is invoked.
The code I am using to call cplex is as follows:
cplex = Cplex('projection');
cplex.Model.sense = 'minimize';
cplex.Model.Q = F;
cplex.Model.obj = c;
cplex.Model.lb = lb;
cplex.Model.ub = ub;
cplex.Model.A = A;
cplex.Model.lhs=-inf*ones(size(b,1));
cplex.Model.rhs = b;
cplex.DisplayFunc = [];
cplex.solve();
x = cplex.Solution.x;
clear cplex;
#CPLEXOptimizers#DecisionOptimization