{"id":99,"date":"2023-11-10T12:28:48","date_gmt":"2023-11-10T12:28:48","guid":{"rendered":"https:\/\/dataenvelopment.com\/gams\/?p=99"},"modified":"2023-11-10T20:13:22","modified_gmt":"2023-11-10T20:13:22","slug":"chapter-2-fig-2-04","status":"publish","type":"post","link":"https:\/\/dataenvelopment.com\/gams\/chapter-2-fig-2-04\/","title":{"rendered":"Chapter 2 (Fig. 2.04) &#8211; The mathematical formulation of the CRS DEA model and the corresponding GAMS formulation"},"content":{"rendered":"\n<pre class=\"wp-block-preformatted\">$Title Chapter 2 (Fig. 2.4)\r\n$Title The mathematical formulation of the CRS DEA model and the corresponding GAMS code\r\n\r\n$onText\r\n\r\nIf using this code, please cite:\r\n\r\n---------------------------------------------------------------------------------\r\nEmrouznejad, A., P. Petridis, and V. Charles (2023). Data Envelopment Analysis\r\nwith GAMS: A Handbook on Productivity Analysis, and Performance Measurement,\r\nSpringer, ISBN: 978-3-031-30700-3.\r\n---------------------------------------------------------------------------------\r\n\r\nWebsite: https:\/\/dataenvelopment.com\/GAMS\/\r\n\r\n$offText\r\n\r\nOption LP=XA;\r\nSets    j DMUs \/DMU1*DMU10\/\r\n        g Inputs and Outputs \/ProdCost, TrnCost, HoldInv, SatDem, Rev\/\r\n        i(g)  Inputs \/ProdCost, TrnCost, HoldInv\/\r\n        r(g) Outputs \/SatDem, Rev\/;\r\n        alias(jj,j);\r\n        alias(k,jj);\r\n\r\nTable Data(j,g) Data for inputs and outputs\r\n\r\n           ProdCost     TrnCost      HoldInv     SatDem      Rev\r\nDMU1        0.255        0.161        0.373        20        2.64\r\nDMU2        0.98         0.248        0.606        6         5.29\r\nDMU3        0.507        0.937        0.749        17        2.43\r\nDMU4        0.305        0.249        0.841        2         8.99\r\nDMU5        0.659        0.248        0.979        19        2.94\r\nDMU6        0.568        0.508        0.919        17        0.75\r\nDMU7        0.583        0.628        0.732        17        6.36\r\nDMU8        0.627        0.675        0.738        10        7.2\r\nDMU9        0.772        0.657        0.486        9         2.16\r\nDMU10       0.917        0.639        0.234        8         7.3;\r\n\r\n\r\nVariables efficiency objective function\r\n          Theta     efficiency (Theta values)\r\n          Lambda(j) dual weights (Lambda values)\r\n          sminus(i) slacks assigned to inputs\r\n          splus(r) slacks assigned to inputs;\r\n\r\nNonnegative variables\r\n          Lambda(j)\r\n          sminus(i)\r\n          splus(r);\r\n\r\nParameters DMU_data(g) slice of data\r\n           eff(j) efficiency report\r\n           Lamres(j,j) peers for each DMU\r\n           slacks(j,g) slacks for inputs and outputs;\r\n\r\nEquations OBJ objective function\r\n          CON1(i) input duals\r\n          CON2(r) output dual;\r\n\r\nOBJ..       efficiency=E=Theta-1E-6*(SUM(i,sminus(i))+SUM(r,splus(r)));\r\n\r\nCON1(i)..  SUM(j, Lambda(j)*Data(j,i))+sminus(i)=E=Theta*DMU_data(i);\r\n\r\nCON2(r)..  SUM(j, Lambda(j)*Data(j,r))-splus(r)=E=DMU_data(r);\r\n\r\nmodel DEA_CRS input oriented DEA CRS \/ OBJ, CON1, CON2 \/;\r\n\r\n\r\n\r\nloop(jj,\r\n   DMU_data(g) = Data(jj,g);\r\n   solve DEA_CRS using LP minimizing Theta ;\r\n   eff(jj)=Theta.l;\r\n   slacks(jj,i)=sminus.l(i);\r\n   slacks(jj,r)=splus.l(r);\r\n   loop(k,\r\n      Lamres(jj,k)=Lambda.l(k);\r\n    );\r\n);\r\nParameters xproject(j,i), yproject(j,r);\r\n\r\nxproject(j,i)=eff(j)*Data(j,i)-slacks(j,i);\r\nyproject(j,r)=Data(j,r)+slacks(j,r);\r\n\r\n\r\nDisplay eff, Lamres, slacks, xproject, yproject;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>$Title Chapter 2 (Fig. 2.4) $Title The mathematical formulation of the CRS DEA model and the corresponding GAMS code $onText If using this code, please cite: &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; Emrouznejad, A., P. 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. &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; Website: https:\/\/dataenvelopment.com\/GAMS\/ $offText [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/dataenvelopment.com\/gams\/wp-json\/wp\/v2\/posts\/99"}],"collection":[{"href":"https:\/\/dataenvelopment.com\/gams\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dataenvelopment.com\/gams\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dataenvelopment.com\/gams\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dataenvelopment.com\/gams\/wp-json\/wp\/v2\/comments?post=99"}],"version-history":[{"count":3,"href":"https:\/\/dataenvelopment.com\/gams\/wp-json\/wp\/v2\/posts\/99\/revisions"}],"predecessor-version":[{"id":112,"href":"https:\/\/dataenvelopment.com\/gams\/wp-json\/wp\/v2\/posts\/99\/revisions\/112"}],"wp:attachment":[{"href":"https:\/\/dataenvelopment.com\/gams\/wp-json\/wp\/v2\/media?parent=99"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dataenvelopment.com\/gams\/wp-json\/wp\/v2\/categories?post=99"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dataenvelopment.com\/gams\/wp-json\/wp\/v2\/tags?post=99"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}