This book [1] on DEA models has an accompanying website with all the GAMS models [2].
Of course, I'll be doing some nitpicking on the GAMS code.
In some of the GAMS code, unneeded loops are used. From [3]:
The inner loop is not needed. We can write this as:
Many beginning GAMS modelers use too many explicit loops. Most likely because they are used to writing for-loops in traditional programming languages. GAMS does implicit loops, so there are very few occasions where loops are needed. The outer loop is such an example. For me, seeing models with unnecessary loops just hurts my eyes.
- They are slow
- They make the code less compact
Some modeling exercises (not totally trivial, good for learning some GAMS):
- Rewrite the model without using any loops.
- Improve the reporting by sorting the results on efficiency.
If you don't know how to approach these tasks, see [4].
References
- Ali Emrouznejad, Konstantinos Petridis, Vincent Charles, Data Envelopment Analysis with GAMS, A Handbook on Productivity Analysis and Performance Measurement, Springer, 2023
- https://dataenvelopment.com/gams/
- https://dataenvelopment.com/gams/chapter-2-fig-2-04/
- Solving DEA models with GAMS, https://yetanothermathprogrammingconsultant.blogspot.com/2024/09/solving-dea-models-with-gams.html
No comments:
Post a Comment