Why programs can be slow and their repair

Top  Previous  Next

There are three big reasons a program may be slow.  These are

 

Set addressing and references

Considering unnecessary cases

Post solution report writing computations

 

I discuss each below, but before beginning I wish to note that the material below is not only useful for the repair of specific models.  Namely, by employing the efficiency enhancing practices discussed herein in standard GAMS modeling, one can improve the effectiveness of any GAMS programs to which these techniques are applied.  For example, the section on set addressing will reveal conventions that should be used in all GAMS programming yielding efficiency gains without the need for model efficiency investigations.

 

Set addressing and references

Avoiding considering unnecessary cases