I'm running a LP and get the CPLEX 1001: Out of memory error. I'm running a model with 1,674,474 variables and 1,014,376 constraints. I've about 3GB of RAM and 2GB of virtual memory. When I look at the Task manager at the time I get this error, there is still 1.3GB of RAM still available and I think this is enough to get a solution. Am I running into any preset memory limits inside CPLEX?
Please see attached printscreen of my task manager.
Thanks in advance
Pinned topic CPLEX Out of Memory Error
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-05-06T22:43:23Z at 2012-05-06T22:43:23Z by Maissa
SystemAdmin 110000D4XK1883 Posts
Re: CPLEX Out of Memory Error2011-12-07T22:42:12ZThis is the accepted answer. This is the accepted answer.You may be running into the architectural limitations of your system. I suspect your machine is a 32 bit system wherein the OS can only provide a maximum of 2Gbs of space to any given application (subject to further limitations). Once the application demands more memory than what the OS can provide it with, the 'out-of-memory' error is thrown.
With 1.6M variables and 1M constraints, your model is quite large. You could try setting the MemoryEmphasis paramter to true/1 and the NodeFileInd parameter to 3 and see if they help reduce the memory footprint thereby letting you solve the model on the machine. If not, the ultimate solution for large problems is to solve using a 64 bit system wherein you practically have limitless memory (subject to what the RAM can support). The CPLEX Optimization Studio contains some information about how one could deal with such situations at:
Some other tips and tricks can be found in the technote below:
Hope this helps.
Maissa 2700049F766 Posts
help CPLEX2012-05-06T22:43:23ZThis is the accepted answer. This is the accepted answer.
- SystemAdmin 110000D4XK
I have a model mathematic and i need to resolve it in Cplex 12.4 with a variables booleen but the only the error is that the dimension is most big (error 1016)...the total variables is more then 500..the same think, to contraintes (more then 500).
I show many articl use CPLEX with 2000variables & 8000contraintes!.....
how can i run my problem with all this variables?
PLEASE HELP ME...