Skip to content

Commit

Permalink
Added exercise for the life academy
Browse files Browse the repository at this point in the history
  • Loading branch information
willu47 committed Sep 25, 2022
1 parent 9e4d412 commit f15836b
Show file tree
Hide file tree
Showing 70 changed files with 3,089 additions and 472 deletions.
752 changes: 282 additions & 470 deletions OSeMOSYS.ipynb

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ For example::
License
~~~~~~~

This material draws upon, adapts and extends Lab 2 from MJ2380, authored by Roberto Heredia Fonseca,
Shravan Kumar and Francesco Gardumi and the OpTIMUS.community
and is licensed under the Creative Commons Attribution 4.0 International License.
To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.

It also builds on material from MJ2383 authored by Will Usher, Camillo Ramirez and Agnese Beltramo
licensed under the Creative Commons Attribution 4.0 International License.

.. raw:: html

<a rel="license"
Expand Down
298 changes: 298 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,298 @@
AccumulatedAnnualDemand:
indices: [REGION,FUEL,YEAR]
type: param
dtype: float
default: 0
AnnualEmissionLimit:
indices: [REGION,EMISSION,YEAR]
type: param
dtype: float
default: -1
AnnualExogenousEmission:
indices: [REGION,EMISSION,YEAR]
type: param
dtype: float
default: 0
AvailabilityFactor:
indices: [REGION,TECHNOLOGY,YEAR]
type: param
dtype: float
default: 1
CapacityFactor:
indices: [REGION,TECHNOLOGY,TIMESLICE,YEAR]
type: param
dtype: float
default: 1
CapacityOfOneTechnologyUnit:
indices: [REGION,TECHNOLOGY,YEAR]
type: param
dtype: float
default: 0
CapacityToActivityUnit:
indices: [REGION,TECHNOLOGY]
type: param
dtype: float
default: 1
CapitalCost:
indices: [REGION,TECHNOLOGY,YEAR]
type: param
dtype: float
default: 0
CapitalCostStorage:
indices: [REGION,STORAGE,YEAR]
type: param
dtype: float
default: 0
Conversionld:
indices: [TIMESLICE,DAYTYPE]
type: param
dtype: float
default: 0
Conversionlh:
indices: [TIMESLICE,DAILYTIMEBRACKET]
type: param
dtype: float
default: 0
Conversionls:
indices: [TIMESLICE,SEASON]
type: param
dtype: float
default: 0
DAILYTIMEBRACKET:
dtype: int
type: set
DaysInDayType:
indices: [SEASON,DAYTYPE,YEAR]
type: param
dtype: float
default: 7
DaySplit:
indices: [DAILYTIMEBRACKET,YEAR]
type: param
dtype: float
default: 0.00137
DAYTYPE:
dtype: int
type: set
DepreciationMethod:
indices: [REGION]
type: param
dtype: float
default: 1
DiscountRate:
indices: [REGION,TECHNOLOGY]
type: param
dtype: float
default: 0.05
DiscountRateStorage:
indices: [REGION,STORAGE]
type: param
dtype: float
default: 0.05
EMISSION:
dtype: str
type: set
EmissionActivityRatio:
indices: [REGION,TECHNOLOGY,EMISSION,MODE_OF_OPERATION,YEAR]
type: param
dtype: float
default: 0
EmissionsPenalty:
indices: [REGION,EMISSION,YEAR]
type: param
dtype: float
default: 0
FixedCost:
indices: [REGION,TECHNOLOGY,YEAR]
type: param
dtype: float
default: 0
FUEL:
dtype: str
type: set
InputActivityRatio:
indices: [REGION,TECHNOLOGY,FUEL,MODE_OF_OPERATION,YEAR]
type: param
dtype: float
default: 0
MinStorageCharge:
indices: [REGION,STORAGE,YEAR]
type: param
dtype: float
default: 0
MODE_OF_OPERATION:
dtype: int
type: set
ModelPeriodEmissionLimit:
indices: [REGION,EMISSION]
type: param
dtype: float
default: -1
ModelPeriodExogenousEmission:
indices: [REGION,EMISSION]
type: param
dtype: float
default: 0
OperationalLife:
indices: [REGION,TECHNOLOGY]
type: param
dtype: float
default: 1
OperationalLifeStorage:
indices: [REGION,STORAGE]
type: param
dtype: float
default: 0
OutputActivityRatio:
indices: [REGION,TECHNOLOGY,FUEL,MODE_OF_OPERATION,YEAR]
type: param
dtype: float
default: 0
REGION:
dtype: str
type: set
REMinProductionTarget:
indices: [REGION,YEAR]
type: param
dtype: float
default: 0
ReserveMargin:
indices: [REGION,YEAR]
type: param
dtype: float
default: 1
ReserveMarginTagFuel:
indices: [REGION,FUEL,YEAR]
type: param
dtype: float
default: 0
ReserveMarginTagTechnology:
indices: [REGION,TECHNOLOGY,YEAR]
type: param
dtype: float
default: 0
ResidualCapacity:
indices: [REGION,TECHNOLOGY,YEAR]
type: param
dtype: float
default: 0
ResidualStorageCapacity:
indices: [REGION,STORAGE,YEAR]
type: param
dtype: float
default: 999
RETagFuel:
indices: [REGION,FUEL,YEAR]
type: param
dtype: float
default: 0
RETagTechnology:
indices: [REGION,TECHNOLOGY,YEAR]
type: param
dtype: float
default: 0
SEASON:
dtype: int
type: set
SpecifiedAnnualDemand:
indices: [REGION,FUEL,YEAR]
type: param
dtype: float
default: 0
SpecifiedDemandProfile:
indices: [REGION,FUEL,TIMESLICE,YEAR]
type: param
dtype: float
default: 0
STORAGE:
dtype: str
type: set
StorageLevelStart:
indices: [REGION,STORAGE]
type: param
dtype: float
default: 0
StorageMaxChargeRate:
indices: [REGION,STORAGE]
type: param
dtype: float
default: 0
StorageMaxDischargeRate:
indices: [REGION,STORAGE]
type: param
dtype: float
default: 0
TECHNOLOGY:
dtype: str
type: set
TechnologyFromStorage:
indices: [REGION,TECHNOLOGY,STORAGE,MODE_OF_OPERATION]
type: param
dtype: float
default: 0
TechnologyToStorage:
indices: [REGION,TECHNOLOGY,STORAGE,MODE_OF_OPERATION]
type: param
dtype: float
default: 0
TIMESLICE:
dtype: str
type: set
TotalAnnualMaxCapacity:
indices: [REGION,TECHNOLOGY,YEAR]
type: param
dtype: float
default: -1
TotalAnnualMaxCapacityInvestment:
indices: [REGION,TECHNOLOGY,YEAR]
type: param
dtype: float
default: -1
TotalAnnualMinCapacity:
indices: [REGION,TECHNOLOGY,YEAR]
type: param
dtype: float
default: 0
TotalAnnualMinCapacityInvestment:
indices: [REGION,TECHNOLOGY,YEAR]
type: param
dtype: float
default: 0
TotalTechnologyAnnualActivityLowerLimit:
indices: [REGION,TECHNOLOGY,YEAR]
type: param
dtype: float
default: 0
TotalTechnologyAnnualActivityUpperLimit:
indices: [REGION,TECHNOLOGY,YEAR]
type: param
dtype: float
default: -1
TotalTechnologyModelPeriodActivityLowerLimit:
indices: [REGION,TECHNOLOGY]
type: param
dtype: float
default: 0
TotalTechnologyModelPeriodActivityUpperLimit:
indices: [REGION,TECHNOLOGY]
type: param
dtype: float
default: -1
TradeRoute:
indices: [REGION,FUEL,YEAR]
type: param
dtype: float
default: 0
VariableCost:
indices: [REGION,TECHNOLOGY,MODE_OF_OPERATION,YEAR]
type: param
dtype: float
default: 0
YEAR:
dtype: int
type: set
YearSplit:
indices: [TIMESLICE,YEAR]
type: param
dtype: float
default: 0
4 changes: 2 additions & 2 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: osemosys
name: life_academy
channels:
- conda-forge
dependencies:
Expand All @@ -13,5 +13,5 @@ dependencies:
- matplotlib
- tqdm
- pip:
- otoole==0.10.0b0
- git+https://github.com/OSeMOSYS/otoole.git@develop#egg=otoole

1 change: 1 addition & 0 deletions model/year/data/AccumulatedAnnualDemand.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
REGION,FUEL,YEAR,VALUE
10 changes: 10 additions & 0 deletions model/year/data/AnnualEmissionLimit.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
REGION,EMISSION,YEAR,VALUE
SIMPLICITY,CO2,2022,9999.0
SIMPLICITY,CO2,2023,9999.0
SIMPLICITY,CO2,2024,9999.0
SIMPLICITY,CO2,2025,9999.0
SIMPLICITY,CO2,2026,9999.0
SIMPLICITY,CO2,2027,9999.0
SIMPLICITY,CO2,2028,9999.0
SIMPLICITY,CO2,2029,9999.0
SIMPLICITY,CO2,2030,9999.0
1 change: 1 addition & 0 deletions model/year/data/AnnualExogenousEmission.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
REGION,EMISSION,YEAR,VALUE
1 change: 1 addition & 0 deletions model/year/data/AvailabilityFactor.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
REGION,TECHNOLOGY,YEAR,VALUE
Loading

0 comments on commit f15836b

Please sign in to comment.