GAMS — A User’s Guide Tutorial by Richard E. Rosenthal c ⃝July 2011 GAMS Develo
GAMS — A User’s Guide Tutorial by Richard E. Rosenthal c ⃝July 2011 GAMS Development Corporation, Washington, DC, USA Table of Contents 1 Introduction 1 1.1 Motivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.2 Basic Features of GAMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.2.1 General Principles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.2.2 Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.2.3 Portability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.2.4 User Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.2.5 Model Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.3 Organization of the Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 2 A GAMS Tutorial by Richard E. Rosenthal 5 2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2.2 Structure of a GAMS Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.3 Sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.4 Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.4.1 Data Entry by Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.4.2 Data Entry by Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.4.3 Data Entry by Direct Assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.5 Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.6 Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.6.1 Equation Declaration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 2.6.2 GAMS Summation (and Product) Notation . . . . . . . . . . . . . . . . . . . . . . . . . . 13 2.6.3 Equation Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 2.7 Objective Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 2.8 Model and Solve Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 2.9 Display Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 2.10 The ’.lo, .l, .up, .m’ Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 2.10.1 Assignment of Variable Bounds and/or Initial Values . . . . . . . . . . . . . . . . . . . . . 16 2.10.2 Transformation and Display of Optimal Values . . . . . . . . . . . . . . . . . . . . . . . . 17 2.11 GAMS Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 2.11.1 Echo Prints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 2.11.2 Error Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 2.11.3 Reference Maps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 2.11.4 Equation Listings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 2.11.5 Model Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 2.11.6 Status Reports uploads/s3/ gamsusers-guide.pdf
Documents similaires
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/r2T5dmcl4POGXdzXPjR934q7gwHdR4OJPJFN3tXgXOCHbBElNju8l3Md2hukzdVpewKSHYN3HWYKZ3TkVD5pLoOf.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/jJq03CyKfkISMp3xcyUU32Kvl74HmYKF3D1OMnIOPohVsCa2ATTRtgazXklr5x18hhtzXybmLwJDqVYodgSXWRAD.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/y29cwsNwXZc89vaDgMT5CsQGwgtNC0XvfxTFhTEl2zCyJ6XsiC1NJRdcElwT0GwiRSI5Qyb08p6fDQuGXA1jxtQq.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/912pUnPRO0V1WFTZ6EhyleZUhEw7gf6MRnnzgw4KhM0fiastzOfSgcfPUE8TaWwf0mytPiU9knXZusGnssTcCP51.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/MEomuQZ9YferY2ROlDBWc9KWCvrECRmVcBLCsmSaxMRVXSbM4DxH6iYd6sA85FOjsyweip7eWQv6BDY73T2GSwXN.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/tjmcHDuZ1vfFEgFXsWuddkpq9qIIUI7470iWJBbe5cerjjaCEBAtJzCBAResndwdVsRy8GCi0M2HPUtVtPy2amrE.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/QS9pI2lGL51UBhUAbEmMdJhAeUdW4e2gKp6Rex3oPDV7fTm0JyguTJhThKQrCjNSarm9TflPRmW32MVMgfs40WE1.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/MVeXNS59EEpSTFJKYNvwMi0thiZqFVXVXhL6Tua80cKARb84GXlwIGDkKK1Bx0yEfLhU4hUbfjs0VX1XB3gmNLVi.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/XzGbSqyXIcgwQtI5GKL9JEPjmry38gZOtFWovgjlFCv09CypMloobXamnXyANGuOLRwBVEINLbGbR6u4HpuIEdr5.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/760s6bxRJSf3902nl8VJdjn9ZP3rQt8R3UXqFKARSI1rB8DMWIqjXlRl5OGgkL7XGbqj58yBZW2oQITfJPRJYkxh.png)
-
20
-
0
-
0
Licence et utilisation
Gratuit pour un usage personnel Attribution requise- Détails
- Publié le Aoû 18, 2022
- Catégorie Creative Arts / Ar...
- Langue French
- Taille du fichier 1.5765MB