This repository contains the implementation of the research paper "Investment in vehicle-to-grid and distributed energy resources: Distributor versus prosumer perspectives and the impact of rate structures". The paper presents a cost-benefit analysis of various investment scenarios for a distributor and a prosumer, considering the impact of different rate structures.
The main objectives of this project are:
- To evaluate the profitability of investments in distributed energy resources (DER), vehicle-to-grid (V2G) technology, and energy management systems (EMS) from the perspectives of both the distributor and the prosumer.
- To analyze the impact of different rate structures on the viability of these investment scenarios.
The study utilizes real-world data from four single-detached houses in Vermont, USA, to model the electricity demand, solar PV generation, and the behavior of the distributor and prosumer under various investment and rate structure scenarios.
The implementation of the proposed models and analysis is provided in a Jupyter Notebook called Main.ipynb. This notebook includes the following steps:
- Data Loading and Preprocessing: The electricity consumption and solar PV generation data for the four houses are loaded and preprocessed.
- Modeling and Optimization: The distributor and prosumer models are implemented using the Gurobi optimization solver in Python. The models consider different investment scenarios and rate structures to evaluate their profitability.
- Visualization and Analysis: The results of the optimization models are visualized and analyzed, including the net present value (NPV), internal rate of return (IRR), energy flows, and peak loads for each scenario.
- Sensitivity Analysis: The sensitivity of the results to changes in load patterns, battery capacity, and solar panel system size is investigated.
The following Python libraries are used in the implementation:
numpy: for numerical operationspandas: for data manipulation and analysismatplotlib: for static data visualizationplotly: for interactive data visualizationgurobipy: for optimization modeling and solvingos: for file path operations
To run the Jupyter Notebook, you will need to have Gurobi Optimizer installed and a valid Gurobi license. You can obtain a free academic license from the Gurobi website.
-
Clone the repository to your local machine:
git clone https://github.com/srmadani/Investment_in_DER.git -
Install the required libraries, including Gurobi Optimizer.
-
Open the
Main.ipynbJupyter Notebook and run the cells to reproduce the analysis and results.
If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request. Contributions are welcome!
The authors would like to acknowledge the support from the Fonds de Recherche du Quebec – Nature et Technologies (FRQNT) [300234]. We also thank Eric Rondeau for his help and dcbel and a utility operating in the Northeast United States for their collaboration.
Madani, S., & Pineau, P.-O. (2024). Investment in vehicle-to-grid and distributed energy resources: Distributor versus prosumer perspectives and the impact of rate structures. Utilities Policy, 88, 101736. https://doi.org/10.1016/j.jup.2024.101736