Heap size limits exceeded. What to do?

Hello All,

I’m running into this issue where I exceed the heap size limit when I run the model. It solves, but it doesn’t follow through with the report writing and exporting the display parameters. I can’t really compromise on its number of variables/equations. I understand it’s a memory issue. I’ve been trying to cut down on the post-solve display parameters, but I’m still having these issues. Any help?

Thank you.

What type of model do you have, what solver are you using? What’s the size of the model?
For something like CPLEX and LP/MIP, there are several useful guidelines/options mentioned in GAMS documentation.

https://www.gams.com/latest/docs/S_CPLEX.html#CPLEX_PHYSICAL_MEMORY_LIMITATIONS

https://www.gams.com/latest/docs/S_CPLEX.html#CPLEX_RUNNING_OUT_OF_MEMORY_FOR_MIP_PROBLEMS

HTH.

  • Atharv

I use CBC and the model is a LP. I tried exploring some of the options that pertain to CPLEX, but CBC doesn’t support them.