Skip to content

Commit b0ee615

Browse files
authored
Update/simplify example models (#753)
* Remove optional columns from Agents and GlobalCommodities files * Create Description column in commodities file * Fix reader tests * Remove zeros columns from projections files * Remove cap_exp etc from technodata files * Remove efficiency and type from technodata files * Remove zero commodities from presets files * Remove extra objectives from agents * Remove price projections for end-use commodities * Remove projections data from outside the time framework * Remove zero commodities from CommOut files * Update tests * Remove description from global commodities files * Update test * Update tutorials * Update wizard * Update tutorial models * Update example model results * Add back price of environmentals in minimum_service model * Fix to process_io_technodata to allow test to pass * Update CommIn files * Fix mistake in CommIn file
1 parent 046b2df commit b0ee615

293 files changed

Lines changed: 1493 additions & 1934 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/inputs/commodities.rst

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ a whole are defined in a csv file with the following structure.
1515
Coal, Energy, hardcoal, 94.6, 29, PJ
1616
Agricultural-residues, Energy, agrires, 112, 15.4, PJ
1717

18-
Commodity
19-
represents the extended name of a commodity (e.g. "Heating" or "Electricity").
20-
2118
CommodityName
2219
the internal name used for a commodity inside the model (e.g. "heat" or "elec").
2320
Any references to commodities in other files must use these names.
2421

22+
Description
23+
an extended name/description of a commodity (e.g. "Heating" or "Electricity").
24+
2525
CommodityType
2626
defines the type of a commodity (i.e. Energy, Service, Material, or Environmental).
2727

@@ -36,16 +36,6 @@ CommodityType
3636
The "environmental" type refers to non-energy commodities whichare used to quantify an impact on the environment,
3737
such as greenhouse gases or CO2. They can be subjected to different types of environmental fees or taxes.
3838

39-
CommodityEmissionFactor_CO2 (optional)
40-
is CO2 emission per unit of commodity flow.
41-
This commodity property is not directly used in the MUSE core set of equations, but can be further referred to
42-
for any subsequent development of the code.
43-
44-
HeatRate (optional)
45-
represents the lower heating value of an energy commodity
46-
This commodity property is not directly used in the MUSE core set of equations, but can be further referred to
47-
for any subsequent development of the code.
48-
4939
Unit (optional)
5040
is the unit used to represent quantities of the commodity (e.g "PJ").
5141
This parameter does not need to be included, as it isn't used in the model, but care should be taken to ensure that units are consistent across all input files.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
AgentShare,Name,RegionName,Objective1,Objective2,Objective3,ObjData1,ObjData2,ObjData3,Objsort1,Objsort2,Objsort3,SearchRule,DecisionMethod,Quantity,MaturityThreshold,SpendLimit,Type
2-
Agent1,A1,R1,LCOE,,,1,,,True,,,all,singleObj,0.5,-1,inf,New
3-
Agent2,A2,R1,fuel_consumption_cost,,,1,,,True,,,all,singleObj,0.5,-1,inf,New
1+
AgentShare,Name,RegionName,Objective1,ObjData1,Objsort1,SearchRule,DecisionMethod,Quantity,Type
2+
Agent1,A1,R1,LCOE,1,True,all,singleObj,0.5,New
3+
Agent2,A2,R1,fuel_consumption_cost,1,True,all,singleObj,0.5,New
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
Commodity,CommodityType,CommodityName,CommodityEmissionFactor_CO2,HeatRate,Unit
2-
Electricity,Energy,electricity,0,1,PJ
3-
Gas,Energy,gas,56.1,1,PJ
4-
Heat,Energy,heat,0,1,PJ
5-
Wind,Energy,wind,0,1,PJ
6-
CO2fuelcomsbustion,Environmental,CO2f,0,1,kt
1+
CommodityName,CommodityType,Unit
2+
electricity,Energy,PJ
3+
gas,Energy,PJ
4+
heat,Energy,PJ
5+
wind,Energy,PJ
6+
CO2f,Environmental,kt
Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,8 @@
1-
RegionName,Attribute,Time,electricity,gas,heat,CO2f,wind
2-
R1,CommodityPrice,2010,14.81481472,6.6759,100,0,0
3-
R1,CommodityPrice,2015,17.89814806,6.914325,100,0.052913851,0
4-
R1,CommodityPrice,2020,19.5,7.15275,100,0.08314119,0
5-
R1,CommodityPrice,2025,21.93518528,8.10645,100,0.120069795,0
6-
R1,CommodityPrice,2030,26.50925917,9.06015,100,0.156998399,0
7-
R1,CommodityPrice,2035,26.51851861,9.2191,100,0.214877567,0
8-
R1,CommodityPrice,2040,23.85185194,9.37805,100,0.272756734,0
9-
R1,CommodityPrice,2045,23.97222222,9.193829337,100,0.35394801,0
10-
R1,CommodityPrice,2050,24.06481472,9.009608674,100,0.435139285,0
11-
R1,CommodityPrice,2055,25.3425925,8.832625604,100,0.542365578,0
12-
R1,CommodityPrice,2060,25.53703694,8.655642534,100,0.649591871,0
13-
R1,CommodityPrice,2065,25.32407417,8.485612708,100,0.780892624,0
14-
R1,CommodityPrice,2070,23.36111111,8.315582883,100,0.912193378,0
15-
R1,CommodityPrice,2075,22.27777778,8.152233126,100,1.078321687,0
16-
R1,CommodityPrice,2080,22.25925917,7.988883368,100,1.244449995,0
17-
R1,CommodityPrice,2085,22.17592583,7.831951236,100,1.4253503,0
18-
R1,CommodityPrice,2090,22.03703694,7.675019103,100,1.606250604,0
19-
R1,CommodityPrice,2095,21.94444444,7.524252461,100,1.73877515,0
20-
R1,CommodityPrice,2100,21.39814806,7.373485819,100,1.871299697,0
1+
RegionName,Attribute,Time,electricity,gas,CO2f
2+
R1,CommodityPrice,2020,19.5,7.15275,0.08314119
3+
R1,CommodityPrice,2025,21.93518528,8.10645,0.120069795
4+
R1,CommodityPrice,2030,26.50925917,9.06015,0.156998399
5+
R1,CommodityPrice,2035,26.51851861,9.2191,0.214877567
6+
R1,CommodityPrice,2040,23.85185194,9.37805,0.272756734
7+
R1,CommodityPrice,2045,23.97222222,9.193829337,0.35394801
8+
R1,CommodityPrice,2050,24.06481472,9.009608674,0.435139285

docs/tutorial-code/add-agent/1-single-objective/Results/MCAPrices.csv

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
commodity,day,hour,month,prices,region,timeslice,units_prices,year
22
electricity,all-week,night,all-year,19.5000,r1,0,MUS$2010/PJ,2020
33
gas,all-week,night,all-year,7.1528,r1,0,MUS$2010/PJ,2020
4-
heat,all-week,night,all-year,100.0000,r1,0,MUS$2010/PJ,2020
4+
heat,all-week,night,all-year,0.0000,r1,0,MUS$2010/PJ,2020
55
wind,all-week,night,all-year,0.0000,r1,0,MUS$2010/PJ,2020
66
CO2f,all-week,night,all-year,0.0831,r1,0,MUS$2010/kt,2020
77
electricity,all-week,morning,all-year,19.5000,r1,1,MUS$2010/PJ,2020
88
gas,all-week,morning,all-year,7.1528,r1,1,MUS$2010/PJ,2020
9-
heat,all-week,morning,all-year,100.0000,r1,1,MUS$2010/PJ,2020
9+
heat,all-week,morning,all-year,0.0000,r1,1,MUS$2010/PJ,2020
1010
wind,all-week,morning,all-year,0.0000,r1,1,MUS$2010/PJ,2020
1111
CO2f,all-week,morning,all-year,0.0831,r1,1,MUS$2010/kt,2020
1212
electricity,all-week,afternoon,all-year,19.5000,r1,2,MUS$2010/PJ,2020
1313
gas,all-week,afternoon,all-year,7.1528,r1,2,MUS$2010/PJ,2020
14-
heat,all-week,afternoon,all-year,100.0000,r1,2,MUS$2010/PJ,2020
14+
heat,all-week,afternoon,all-year,0.0000,r1,2,MUS$2010/PJ,2020
1515
wind,all-week,afternoon,all-year,0.0000,r1,2,MUS$2010/PJ,2020
1616
CO2f,all-week,afternoon,all-year,0.0831,r1,2,MUS$2010/kt,2020
1717
electricity,all-week,early-peak,all-year,19.5000,r1,3,MUS$2010/PJ,2020
1818
gas,all-week,early-peak,all-year,7.1528,r1,3,MUS$2010/PJ,2020
19-
heat,all-week,early-peak,all-year,100.0000,r1,3,MUS$2010/PJ,2020
19+
heat,all-week,early-peak,all-year,0.0000,r1,3,MUS$2010/PJ,2020
2020
wind,all-week,early-peak,all-year,0.0000,r1,3,MUS$2010/PJ,2020
2121
CO2f,all-week,early-peak,all-year,0.0831,r1,3,MUS$2010/kt,2020
2222
electricity,all-week,late-peak,all-year,19.5000,r1,4,MUS$2010/PJ,2020
2323
gas,all-week,late-peak,all-year,7.1528,r1,4,MUS$2010/PJ,2020
24-
heat,all-week,late-peak,all-year,100.0000,r1,4,MUS$2010/PJ,2020
24+
heat,all-week,late-peak,all-year,0.0000,r1,4,MUS$2010/PJ,2020
2525
wind,all-week,late-peak,all-year,0.0000,r1,4,MUS$2010/PJ,2020
2626
CO2f,all-week,late-peak,all-year,0.0831,r1,4,MUS$2010/kt,2020
2727
electricity,all-week,evening,all-year,19.5000,r1,5,MUS$2010/PJ,2020
2828
gas,all-week,evening,all-year,7.1528,r1,5,MUS$2010/PJ,2020
29-
heat,all-week,evening,all-year,100.0000,r1,5,MUS$2010/PJ,2020
29+
heat,all-week,evening,all-year,0.0000,r1,5,MUS$2010/PJ,2020
3030
wind,all-week,evening,all-year,0.0000,r1,5,MUS$2010/PJ,2020
3131
CO2f,all-week,evening,all-year,0.0831,r1,5,MUS$2010/kt,2020
3232
electricity,all-week,night,all-year,19.4241,r1,0,MUS$2010/PJ,2025
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
ProcessName,RegionName,Time,electricity,gas,heat,CO2f,wind
2-
gassupply1,R1,2020,0,1,0,0,0
1+
ProcessName,RegionName,Time,gas
2+
gassupply1,R1,2020,1
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
ProcessName,RegionName,Time,cap_par,cap_exp,fix_par,fix_exp,var_par,var_exp,MaxCapacityAddition,MaxCapacityGrowth,TotalCapacityLimit,TechnicalLife,UtilizationFactor,efficiency,InterestRate,Type,Agent1,Agent2
2-
gassupply1,R1,2020,0,1,0,1,2.55,1,10,0.5,100,35,0.9,86,0.1,energy,0.5,0.5
1+
ProcessName,RegionName,Time,cap_par,fix_par,var_par,MaxCapacityAddition,MaxCapacityGrowth,TotalCapacityLimit,TechnicalLife,UtilizationFactor,InterestRate,Agent1,Agent2
2+
gassupply1,R1,2020,0,0,2.55,10,0.5,100,35,0.9,0.1,0.5,0.5
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
ProcessName,RegionName,Time,Level,electricity,gas,heat,CO2f,wind
2-
gasCCGT,R1,2020,fixed,0,1.67,0,0,0
3-
windturbine,R1,2020,fixed,0,0,0,0,1
1+
ProcessName,RegionName,Time,Level,gas,wind
2+
gasCCGT,R1,2020,fixed,1.67,0
3+
windturbine,R1,2020,fixed,0,1
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
ProcessName,RegionName,Time,electricity,gas,heat,CO2f,wind
2-
gasCCGT,R1,2020,1,0,0,91.67,0
3-
windturbine,R1,2020,1,0,0,0,0
1+
ProcessName,RegionName,Time,electricity,CO2f
2+
gasCCGT,R1,2020,1,91.67
3+
windturbine,R1,2020,1,0
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
ProcessName,RegionName,Time,cap_par,cap_exp,fix_par,fix_exp,var_par,var_exp,MaxCapacityAddition,MaxCapacityGrowth,TotalCapacityLimit,TechnicalLife,UtilizationFactor,efficiency,InterestRate,Type,Agent1,Agent2
2-
gasCCGT,R1,2020,23.78234399,1,0,1,0,1,10,0.5,100,35,0.9,86,0.1,energy,0.5,0.5
3-
windturbine,R1,2020,36.30771182,1,0,1,0,1,10,0.5,100,25,0.4,86,0.1,energy,0.5,0.5
1+
ProcessName,RegionName,Time,cap_par,fix_par,var_par,MaxCapacityAddition,MaxCapacityGrowth,TotalCapacityLimit,TechnicalLife,UtilizationFactor,InterestRate,Agent1,Agent2
2+
gasCCGT,R1,2020,23.78234399,0,0,10,0.5,100,35,0.9,0.1,0.5,0.5
3+
windturbine,R1,2020,36.30771182,0,0,10,0.5,100,25,0.4,0.1,0.5,0.5

0 commit comments

Comments
 (0)