Speeding up GAMS

Top  Previous  Next

Program execution time and memory usage is often a function of the GAMS implementation, which can be changed without substantively altering the results of the program.  I have seen alteration of a few statements cause huge efficiency gains to be achieved.  For example, I have seen reductions in execution time from 30 minutes to 15 seconds 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 time problems to occur
Repairmanipulation of the GAMS code to repair the problem.

 

I limit coverage to the speed of execution within GAMS not covering manipulations to reduce time usage within a solver called by GAMS.

 

Basics

Finding where excessive time is being used

Why programs can be slow and their repair

Trading memory for time

Other speed ups