This MATLAB script performs a simulation of the Dutch electricity market in the year 2030 under different Vehicle-to-Grid (V2G) battery storage scenarios. Developed as part of the master's thesis by Mayk Thewessen, the model explores how increasing V2G capacity affects the hourly electricity price profile, based on merit order dispatch, solar PV and wind generation assumptions, and projected demand profiles.
To assess the impact of V2G penetration in the Netherlands in 2030 on:
- Hourly electricity prices
- Load shifting potential
- Renewable curtailment avoidance
- System-wide efficiency based on dynamic dispatch
- Merit Order Pricing: Simulated hourly market prices based on generator marginal cost ranking.
- V2G Batteries: Simulated as flexible demand/supply depending on grid condition.
- Scenario Years: Simulation can span multiple test years.
- Renewables in 2030: Includes predefined solar PV and wind capacity.
- Initialize Environment (clear memory, set format)
- Load Demand Data (
readtable
from XML/XLSX/CSV formats) - Reshape & Convert Load Vectors
- Define V2G Storage & Renewable Scenarios
- Loop Over Simulation Years
- Calculate Hourly Merit Order
- Adjust Load/Price with V2G Dispatch
- Export Results to Excel
- Excel files with hourly price profiles
- Time-series plots of load vs. generation
- Scenario comparison of price volatility
- MATLAB R2020b or higher recommended
- Compatible with
.xlsx
,.xml
, and.csv
data input - Uses built-in
readtable
,plot
, andxlswrite
File | Description |
---|---|
Lipton_v4_6_export_xlsx.m |
Main simulation script |
ACTUAL_TOTAL_LOAD_*.xml |
Input files with hourly load data |
*.xlsx or *.csv |
(Optional) Alternative data input formats |
run('Lipton_v4_6_export_xlsx.m');