GAMS codes for various DEA models (Free to download)

The following GAMS codes have been extracted from the book “Data Envelopment Analysis with GAMS” authored by Ali Emrouznejad, Konstantinos Petridis, and Vincent Charles. If you utilize any of these codes, please provide the appropriate citation as follows:

Emrouznejad, A. K. Petridis, and V. Charles (2023). Data Envelopment Analysis with GAMS: A Handbook on Productivity Analysis, and Performance Measurement, Springer, ISBN: 978-3-031-30700-3, https://doi.org/10.1007/978-3-031-30701-0.

– Please note that full details of each code is given in the book (Link at Amazon).
– Access the book via your institution (Click HERE).


Chapter 1. Introduction to GAMS

Chapter 1. (Fig. 1.1). (Mathematical formulation of the transportation model and the corresponding GAMS formulation): (Click To view the code) (Download GMAS)
Chapter 1. (Fig. 1.5). (Mathematical formulation of the transportation model and the corresponding GAMS formulation – importing data to GAMS): (Click To view the code) (Download GMAS)

Chapter 2. Introduction to Data Envelopment Analysis

Chapter 2. (Fig. 2.4). (The mathematical formulation of the CRS DEA model and the corresponding GAMS formulation): (Click To view the code) (Download GMAS)
Chapter 2. (Fig. 2.13). (Mathematical formulation of the multiplier CRS DEA model and the corresponding GAMS formulation): (Click To view the code) (Download GMAS)
Chapter 2. (Fig. 2.17). (The mathematical formulation of the multiplier VRS DEA model and the corresponding GAMS formulation): (Click To view the code) (Download GMAS)
Chapter 2. (Fig. 2.21). (Mathematical formulation of the multiplier VRS DEA model with Assurance Region (AR) constraints and the corresponding GAMS formulation): (Click To view the code) (Download GMAS)
Chapter 2. (Fig. 2.24). (The mathematical formulation of the radial super-efficiency CRS-DEA model and the corresponding GAMS formulation): (Click To view the code) (Download GMAS)
Chapter 2. (Fig. 2.27). (The mathematical formulation of the super-efficiency CRS-DEA model and the corresponding GAMS formulation): (Click To view the code) (Download GMAS)

Chapter 3. Extensions of DEA Models

Chapter 3. (Fig. 3.1). (The mathematical formulation of the CRS-DEA model with exogenously fixed inputs and the corresponding GAMS formulation): (Click To view the code) (Download GMAS)
Chapter 3. (Fig. 3.5). (The mathematical formulation of the VRS-DEA model with exogenously fixed inputs and the corresponding GAMS formulation): (Click To view the code) (Download GMAS)
Chapter 3. (Fig. 3.9)(The mathematical formulation of the DEA model with undesirable outputs and the corresponding): (GAMS formulation): (Click To view the code) (Download GMAS)
Chapter 3. (Fig. 3.12). (The mathematical formulation of the input-oriented DEA model under strong and weak disposability and congestion index calculation with corresponding GAMS formulation): (Click To view the code) (Download GMAS)
Chapter 3. (Fig. 3.16). (The mathematical formulation of the input DEA congestion using slack variables with the corresponding GAMS formulation): (Click To view the code) (Download GMAS)
Chapter 3. (Fig. 3.17). (The mathematical formulation of categorical variables in DEA under the VRS technol-ogy with the corresponding GAMS formulation): (Click To view the code) (Download GMAS)
Chapter 3. (Fig. 3.19). (The mathematical formulation of stochastic efficiency models with the corresponding GAMS formulation): (Click To view the code) (Download GMAS)

Chapter 4. Non-radial DEA Models

Chapter 4. (Fig. 4.1)(The mathematical formulation of the non-radial VRS DEA model): (Click To view the code) (Download GMAS)
Chapter 4. (Fig. 4.6). (The mathematical formulation of the RAM model): (Click To view the code) (Download GMAS)
Chapter 4. (Fig. 4.9). (The mathematical formulation of the dual RAM model): (Click To view the code) (Download GMAS)
Chapter 4. (Fig. 4.14). (The mathematical formulation of the RDM for negative data (inputs/outputs)): (Click To view the code) (Download GMAS)
Chapter 4. (Fig. 4.18). (The mathematical formulation of MSBM for negative data (inputs/outputs)): (Click To view the code) (Download GMAS)
Chapter 4. (Fig. 4.21). (The mathematical formulation of the SORM model): (Click To view the code) (Download GMAS)

Chapter 5. Allocative, Cost, Technical, Revenue, and Profit Efficiency

Chapter 5. (Fig. 5.1). (The mathematical formulation for Allocative and Cost Efficiency): (Click To view the code) (Download GMAS)
Chapter 5. (Fig. 5.6). (The mathematical formulation for Technical and Revenue Efficiency): (Click To view the code) (Download GMAS)
Chapter 5. (Fig. 5.7). (The mathematical formulation for profit efficiency): (Click To view the code) (Download GMAS)

Chapter 6. Special Cases in DEA

Chapter 6. (Fig. 6.1). (The GAMS formulation for BoD): (Click To view the code) (Download GMAS)
Chapter 6. (Fig. 6.4). (The GAMS formulation for the Modified MOLP DEA model for output values): (Click To view the code) (Download GMAS)

Chapter 7. Productivity Change

Chapter 7. (Fig. 7.1). (The GAMS formulation for MPI): (Click To view the code) (Download GMAS)
Chapter 7. (Fig. 7.8). (The GAMS formulation for MLPI): (Click To view the code) (Download GMAS)