Lebanon Gas &
Electricity Balance
Analysis
Python-Based Energy System Model
Objective of the Analysis
Answer these key questions:
1. Can domestic gas production satisfy Lebanon’s growing electricity
demand?
2. When does Lebanon face gas surplus vs deficit?
3. When are imports or exports required?
4. If exporting LNG, which market is economically optimal?
Tools (Libraries) Used
•
•
•
•
Pandas: generate tables like Excel
Numpy: deal with numerical repeated calculations
matplotlib / seaborn: generate plots for interpretation
Datetime: deal with years, dates, ..
Build the Excel Sheet in Python
•
•
•
Create a table to store the data
Rows= years
Each self.df corresponds to:
- demand related column
- gas produced related column
- costs related column
Fill the table in Python
•
•
Self.df_demand.loc [row, column]
Will tell at each row and column what data to fill
How much Gas Needed?
How much Gas Needed?
Import/ Export Options
•
•
•
Surplus= produce – demand
If Surplus > 0: Export
If Surplus < 0: Import
Import/ Export Options
Import/ Export Options
Import/ Export Options
Best Export Market
•
•
•
Net price = market price − liquefaction − transport
Choose market by netback
Python chooses the max objectively
Best Export Market
Best Export Market
Senstivity Analysis
THANKS!
DO YOU HAVE ANY
QUESTIONS?
CREDITS: This presentation template was created by Slidesgo, and
includes icons by Flaticon, and infographics & images by Freepik