This project proposes an optimized power delivery solution for EV charging stations using leader election and distributed computing algorithms. By applying cyber-physical systems (CPS) concepts, it enhances charging infrastructure efficiency, supporting sustainable and intelligent energy management.
The project has been implemented in MATLAB Simulink, utilizing the SimEvents, Stateflow, and Simulink Test libraries.
The simulation was developed in MATLAB Simulink R2024a. To run the simulation, the following add-ons must be installed:
- Stateflow
- SimEvents
Then, follow these steps:
- Clone the repository.
- Ensure that Python is installed (specify version if necessary).
- Verify that the files
CPS_PowerSync_System.slx
,rand.py
, andcheck_variables.m
are all within the same directory. - Open the file
CPS_PowerSync_System.slx
. - Load the variables into the base workspace via the file
Data/base_ws_variables.mat
. - Start the simulation or proceed step-by-step.
In the Test
directory, there is a modified version of CPS_PowerSync_System.slx
, set up to execute and verify the model requirements through the relevant assessments.
To run the tests and analyze the verification of specifications:
- Install the Simulink Test add-on.
- Open the file
Test/TestCase.mldatx
.
Graph showing how the charging points come to a consensus in relation to vehicle power requirements.
The functions depicted with continuous lines represent the average value estimates calculated through the Push-Sum modules. The dotted lines represent the power requests. The colors distinguish the different nodes (charging points) in the network.
The function represented by the darker color shows the SoC (State of Charge) of the vehicle, while the lighter color represents the average value estimate calculated via the Push-Sum module at charging point 1.
The project has been developed by Gabriele Ciccotelli and Roberto Iuliano.