User Tools

Site Tools


2.3._calibration_of_the_supply_module

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
2.3._calibration_of_the_supply_module [2022/08/29 12:26] – [Additional Reading] gocht2.3._calibration_of_the_supply_module [2023/09/20 10:47] (current) – [Downloads] stepanyan
Line 8: Line 8:
  
 ===== Downloads ===== ===== Downloads =====
-Download presentation: [[https://cloud.thuenen.de/index.php/s/kBMy963WGMQ9Kno|Slides]]\\ +Download Excel exercise solution {{ ::pmp_solution.xlsx |}}  \\ 
-Download Excel exercise: [[https://cloud.thuenen.de/index.php/s/W3AYyGo73kzxyZR|Excel exercise]]\\ +
-Download Excel exercise solution [[https://cloud.thuenen.de/index.php/s/4QFZTTfL598Q2qC|Excel exercise solution]]\\ +
-Download GAMS  exercise: [[https://cloud.thuenen.de/index.php/s/xiPYmWYSsrQM2nL|GAMS exercise]]\\+
  
 ===== Lecture ===== ===== Lecture =====
Line 20: Line 18:
 [[https://www.capri-model.org/dokuwiki_help/doku.php?id=baseline_generation#calibrating_the_supply_models_to_the_captrd_projection|CAPRI doc]]\\ [[https://www.capri-model.org/dokuwiki_help/doku.php?id=baseline_generation#calibrating_the_supply_models_to_the_captrd_projection|CAPRI doc]]\\
 [[https://www.ilr.uni-bonn.de/agpo/staff/heckelei/heckelei_hab.pdf|Heckelei]]\\ [[https://www.ilr.uni-bonn.de/agpo/staff/heckelei/heckelei_hab.pdf|Heckelei]]\\
-[[https://academic.oup.com/ajae/article/77/2/329/48163|Howitt]] +[[https://doi.org/10.2307/1243543|Howitt]]
- +
- +
-<code lang=gams> +
- +
-*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX* +
-$ontext +
- +
-* Exercise (3): MY FARM Model with sets and sum +
- +
-*### The objective of the exercise: +
-        1) Getting acquainted with the GAMS programming language. +
- +
-*### The problem: +
-A farmer wants to maximize his profit using 200 ha of land and 10000 hours of +
-labor available. He has the option of cultivating three types of crops: wheat, +
-barley, rapeseed and sugarbeet. The profit received and labor hours required for producing one +
-ha of each crop are presented in the table below. How much of each crop does he +
-need to cultivate in order to maximize his profit? +
- +
- +
-Item                           Wheat Barley Rapeseed Sugarbeet +
-Profit in €/ha                  253   443     284      516 +
-Required labor hours/ha          25    36      27       87 +
- +
- +
-*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX* +
-$offtext +
- +
- +
-sets +
-   crops / +
-      wheat +
-      barley +
-      rapeseed +
-      sugarbeet +
-   / +
-+
- +
-Parameters +
-   gm(crops)   gross margin +
-   lab(crops)  labour quantity +
-+
- +
-gm("wheat"     = 253; +
-gm("barley"    = 443; +
-gm("rapeseed"  = 284; +
-gm("sugarbeet" = 516; +
- +
-lab("wheat"    = 25; +
-lab("barley"   = 36; +
-lab("rapeseed" = 27; +
-lab("sugarbeet") = 87; +
- +
- +
-Variables +
-  Z  objective function value +
-+
- +
-Positive variable +
-  X(crops)  land area planted with crop +
-+
- +
- +
-Equations +
-  land   land constraint +
-  labour labour constraint +
-  obj    objective function +
-+
- +
-obj ..           Z =E= sum (crops, X(crops)*gm(crops)); +
- +
-land ..          sum (crops, X(crops)) =L= 200; +
- +
-labour ..        sum (crops, lab(crops)*X(crops)) =L= 10000; +
- +
-Model myfarm /all/;+
  
-Solve myfarm using lp maximizing Z; 
-                                        
  
-</code> 
2.3._calibration_of_the_supply_module.1661775997.txt · Last modified: 2022/11/07 10:23 (external edit)