Memory Use Reduction in GAMS

Top  Previous  Next

Memory usage by a GAMS program is often a function of the implementation.  Code can often be changed so memory requirements are reduced without substantively altering the bottom line results of the program.  For example, I have seen substantial reductions in memory requirements achieved by rewriting a small amount of GAMS code without changing results.  Here I cover

 

Diagnosiswhether and where there is a problem
Causalityfeatures of GAMS that cause memory problems to occur
Repairmanipulation of the GAMS code to repair the problem.

 

I limit coverage to the memory usage within GAMS not covering manipulations to reduce memory use within a solver called by GAMS.

 

Basics

Finding where excessive memory is being used

Causes of excessive memory use and repair

Limiting memory usin using HeapLimit