User Tools

Site Tools


2.2._data_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.2._data_of_the_supply_module [2020/09/15 05:02] gocht2.2._data_of_the_supply_module [2024/09/22 12:16] (current) – [Exercise 2.2.2 Load from the data file and store all data for your region] gocht
Line 1: Line 1:
-===== Data of the Supply Module ===== 
-''Presenter: Alexander Gocht'' 
- 
-  * Overview  
-  * Structure of the Data cube 
-  * Exercise 2.2.1 
-  * Exercise 2.2.2  
- 
- 
 ===== Exercise 2.2.2 Load from the data file and store all data for your region ===== ===== Exercise 2.2.2 Load from the data file and store all data for your region =====
  
 <code html> <code html>
 * specify a scratch dir required in sets.gms * specify a scratch dir required in sets.gms
-$setglobal scrdir  '..\output\temp\'+$setglobal scrdir  "../output/temp/" 
 +$setglobal curDir  "../gams" 
 +$setglobal reg_agg "defaultA"
  
 * include set definition in CAPRI * include set definition in CAPRI
Line 25: Line 18:
  
 * load the data from CAPRI database * load the data from CAPRI database
-execute_load "..\output\results\simini\sim_ini_21230.gdx" data;+execute_load "databaseofCAPRI.gdx" data;
  
  
Line 34: Line 27:
  
 * store result to inspect it * store result to inspect it
-execute_unload "our_results.gdx" data, rows, cols, RALL, PACT_TO_O;</code>+execute_unload "our_results.gdx" data, rows, cols, RALL, PACT_TO_O; 
 + 
 +</code> 
 + 
2.2._data_of_the_supply_module.1600146120.txt · Last modified: 2022/11/07 10:23 (external edit)