I wrote a linear program in Matlab using the modelling library YALMIP and I want to solve it with Cplex. The program constructs well then it calls cplexlp to solve the problem but Cplex run out of memory and I get this error:
Parallel mode: deterministic, using up to 2 threads for concurrent optimization.
Aggregator has done 101 substitutions...
Tried aggregator 1 time.
LP Presolve eliminated 720048 rows and 176294 columns.
Aggregator did 52806 substitutions.
Reduced LP has 383867 rows, 454203 columns, and 1324735 nonzeros.
Error using cplexlp (line 254)
CPLEX Error 1001: Out of memory.
When I export the problem to a lp file, Cplex reads the lp file and solves the problem well.
My first thought was that Matlab could not allocate more memory but it doesn't allocate more than a 1.3 GB while there was more that 1 GB of free RAM. I tried to increase the SWAP to 5 GB but it didn't work.
I also tried to change Cplex parameter. I entered a bigger value for the workMem parameter (2000.0) but it didn't work. Then I tried set the memory Emphasis parameter to one, it has compress the matrix from 58 MB to 17 MB but it solves the problem only in 50% of cases.
If someone have an idea to solve this problem, I would really appreciate the help. Thank you
computer characteristic: Windows 7 32 bits Intel celeron 2.5 Ghz with 4 GB RAM