원시데이터 수집 시스템
선정목록으로

Machine Learning-Based Online MPC for Large-Scale Charging Infrastructure Management

관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)

기본 정보

저자
  1. Lazher Mejdi — National School of Advanced Sciences and Technologies of Borj Cedria (ENSTAB), University of Carthage, LR16ES08 Research Laboratory of Smart Grids and Nanotechnology (LaRINa), Hammam-Chott, Tunisia|||Higher National School of Engineers of Tunis (ENSIT), University of Tunis, Tunis, Tunisia
  2. Faten Kardous — National School of Advanced Sciences and Technologies of Borj Cedria (ENSTAB), University of Carthage, LR16ES08 Research Laboratory of Smart Grids and Nanotechnology (LaRINa), Hammam-Chott, Tunisia
  3. Khaled Grayaa — National School of Advanced Sciences and Technologies of Borj Cedria (ENSTAB), University of Carthage, LR16ES08 Research Laboratory of Smart Grids and Nanotechnology (LaRINa), Hammam-Chott, Tunisia
DOI
10.1109/access.2024.3374897
저널
IEEE Access
발행년도
2024
발행기관
Institute of Electrical and Electronics Engineers
피인용수
4
라이선스
cc-by-nc-nd
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1109/access.2024.3374897
토픽
Electric and Hybrid Vehicle Technologies
OpenAlex ID
W4392543869

평가 내용

관련도
관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

The rapid expansion of Electric Vehicle (EV) charging capacities, driven by the surge in transportation electrification, has a direct impact on the electric power system, particularly the Low Voltage (LV) grid. Consequently, there is a pressing need to redesign energy management systems, placing a greater emphasis on mitigating the effects of EV charging. In this article, we crafted an online grid-level Model Predictive Control (MPC) incorporating Machine Learning (ML) prediction enhanced with Singular Spectrum Analysis (SSA). ML models predicts the future EV charging demands, which are the key factors for the MPC for managing efficiently a large-scale charging infrastructure, aiming to mitigate EV charging impacts, specifically phase unbalance and overloading. The MPC results, especially on phase unbalance metrics, mirrored in a predictive manner those of offline/no forecast optimization from our previous work. A week-long MPC simulation comparison with uncontrolled case showcased a 63% reduction in peak demand duration, a 68% decrease in Phasing Unbalance Index (PUI), and a 45% reduction in Voltage Unbalance Factor (VUF). The minimum voltage unbalance improved from 0.897 pu to 0.913 pu, reducing out-of-standard drops duration by 21%. Lastly, we observed a 20% cut in lines' losses, equating to a 50 kgCO <sub xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">2</sub> reduction within a week.

본문 52,409자

본문 펼치기
Date of publication xxxx 00, 0000, date of current version xxxx 00, 0000. _Digital Object Identifier 10.1109/ACCESS.2023.0322000_ # Machine Learning-Based Online MPC for Large-Scale Charging Infrastructure Management LAZHER MEJDI 12, FATEN KARDOUS 1, AND KHALED GRAYAA 1 1National School of Advanced Sciences and Technologies of Borj Cedria (ENSTAB), University of Carthage, LR16ES08 Research Laboratory of Smart Grids and Nanotechnology (LaRINa), 1164, Hammam-Chott, Tunisia 2Higher National School of Engineers of Tunis (ENSIT), University of Tunis, 1008, Tunis, Tunisia Corresponding author: L. MEJDI (e-mail: lazhermejdi@live.fr). This work was supported by the German Academic Exchange Service (DAAD), Federal Ministry for Economic Cooperation and Development (BMZ), Germany, within the framework of the REMO project (Renewable Energy-based E-Mobility in Higher Education) ID 57545562. ABSTRACT The rapid expansion of Electric Vehicle (EV) charging capacities, driven by the surge in transportation electrification, has a direct impact on the electric power system, particularly the Low Voltage (LV) grid. Consequently, there is a pressing need to redesign energy management systems, placing a greater emphasis on mitigating the effects of EV charging. In this article, we crafted an online grid-level Model Predictive Control (MPC) incorporating Machine Learning (ML) prediction enhanced with Singular Spectrum Analysis (SSA). ML models predicts the future EV charging demands, which are the key factors for the MPC for managing efficiently a large-scale charging infrastructure, aiming to mitigate EV charging impacts, specifically phase unbalance and overloading. The MPC results, especially on phase unbalance metrics, mirrored in a predictive manner those of offline/no forecast optimization from our previous work. A week-long MPC simulation comparison with uncontrolled case showcased a 63% reduction in peak demand duration, a 68% decrease in Phasing Unbalance Index (PUI), and a 45% reduction in Voltage Unbalance Factor (VUF). The minimum voltage unbalance improved from 0.897 pu to 0.913 pu, reducing out-ofstandard drops duration by 21%. Lastly, we observed a 20% cut in lines’ losses, equating to a 50 kgCO2 reduction within a week. INDEX TERMS Energy management, EV, G3PCX, load forecasting, LV grid, ML, MPC, phase unbalance, SSA, smart charging. I. INTRODUCTION _A._ _MOTIVATION_ Electric Vehicle (EV) industry is experiencing an unprecedented surge, with sales surpassing 10 millions in 2022 and expected to reach nearly 14 million units in 2023. This momentum extends to the infrastructure supporting EVs. In 2022 alone, the global stock of public chargers saw a staggering 55% increase, and according to the Stated Policies Scenario (STEPS), the installed capacity is projected to magnify tenfold. As the industry pivots towards sustainability and efficiency, the number of slow chargers is set to quadruple, while fast chargers are anticipated to grow fivefold. Furthermore, the public charging sector is not far behind, predicted to see a 30% growth in its share. Such growth trends point towards an expected nine-fold increase in EV charging electricity demand, a projection from STEPS which, notably, represents the most conservative estimate among various scenarios [1]. This monumental demand is perceived as a challenge and an opportunity: to meet these needs while ensuring the stability of the costly electric power systems. Enter smart charging, which has emerged as a beacon of hope in maintaining this delicate balance. Whether through centralized or decentralized forms, its various approaches and techniques are poised to revolutionize the EV industry. Leveraging advanced control techniques such as predictive and AIbased controls, smart charging is redefining the perspective on sustainable transportation in the present, not just for the future. Interestingly, even though Model Predictive Control (MPC) made its debut in the control research community back in the late seventies, it has maintained its stature as one of the most pertinent control strategies [2]. Every time new control applications emerge, advancements in modeling are achieved, novel prediction techniques arise, or robust optimization algorithms are developed, MPC consistently resurfaces as a focal point of research. Eventually, Machine Learning (ML) promises to enhance MPC-based control strategies primarily in two areas: improving the prediction component, as seen in works like [3]–[5], and in learning an Explicit Model Predictive Control (EMPC) formulation, which is typically computationally intensive, as discussed in [6]. _B._ _LITERATURE REVIEW_ MPC has been widely used in microgrids, especially after the rise of EVs’ load integration in them. One important application is in demand-side management, which uses load curtailment and load shifting as main management methods [7]. Leveraging the fundamental operations outlined, prior studies focused on the optimization of EV charging through an MPC-based methodology to achieve their goals, which primarily fall into two distinct categories: objectives related to operational costs ( [3], [6], [8], [9]) and those aimed at diminishing costs associated with grid impacts ( [10], [11]). Other works tried to combine these two categories such as in [12] and [5]. Table 1 presents a summary of the literature review of the relevant research works in this area. 1) Operational cost Regarding operational costs works, authors in [6] trained a Deep Neural Network (DNN) model on the control outputs of an EMPC for a photovoltaic (PV)-based charging station with a battery. The objective of the controller is to minimize the grid consumption by controlling its power draw along with the battery power. The considered uncertainties are the PV power and the battery State of Charge (SoC). The purpose of training a DNN model is to learn the offline optimal solutions produced by the EMPC, which are computationally expensive, so it can capture optimality while keeping a reasonable computation time. The DNN-MPC technique is tested on a real PV-powered Electric Vehicle Supply Equipment (EVSE), where it showed almost similar performance to an EMPC. In [8], the team utilized an IEEE 118-bus test system, which incorporates Renewable Energies (REs), including wind and PV, as well as EVs with significant integration. Operational expenses, in this case, are influenced by EV charging costs based on vehicle type, REs curtailment, the amount of generator fuel utilized, and battery degradation. The findings underscore that the introduced approach provides insights into determining the proportion of various charging loads within a region. This can strategically inform the integration of EVs and renewable sources to meet clean energy transition objectives. Moreover, the presented framework offers valuable guidance on determining the requisite charging capacity within specific demand zones. In [9], the study employs the "EPRI CKT5" system, a grid-connected framework with extensive integration of PV, EV, and batteries. Operational expenses encompass grid and battery energy costs, and to avoid exceeding the assigned power capacity. Utilizing an optimized control developed in Python based on an MPC, the operation determines the batteries’ ideal performance curve. This control is engaged when the network operates without technical issues, resulting in over 16% cost savings for the network’s energy, all while maintaining voltage profiles within the set regulatory parameters. 2) Grid impacts cost Concerning the grid centric MPC works, authors in [10] utilized a decentralized MPC methodology tailored for large distribution systems with varying penetration rates of PV and EV. The approach involves segmenting the grid into clusters and implementing MPC independently on each segment. The primary goal is to maintain voltage within standard limits by minimizing deviations in EV active power and PV reactive power from their scheduled values. Simulation results, derived from the IEEE 123 test system at both low and high penetration levels, attest to the efficacy of the proposed MPC approach. In [11], the study addresses the EV as a virtual power plant with the capability to share power and restore voltage and frequency using a Distributed Model Predictive Control (DMPC) control. By integrating adaptive primary control with DMPC-based secondary control, the study ensures precise dynamic power sharing while maintaining stable frequency and voltage. Simulations and experiments conducted validate the convergence and resilience of the proposed approach, especially in the face of load disturbances and dynamic power sharing. 3) Operational and grids impact cost In [12], the team incorporated operational and grid impacts costs by introducing an online MPC designed for coordinating EV charging in both centralized and decentralized infrastructures, especially under conditions of high uncertainty. The primary goals of this system were to minimize the costs associated with generated power, losses, and peak load. In [5], the authors created and used the ACN-data, one of the most extensive public EV datasets [13], to develop an adaptive scheduling algorithm based on convex optimization and MPC. This algorithm is designed to manage multiple objectives, such as rapid charging, cost minimization/maximization of profit, demand charge reduction, load variation minimization, fair capacity distribution, and noncompletion penalties. These objectives are represented as a variable weighted sum, which can be adjusted according to the operator’s preferences. 4) ML prediction based MPC Most of the aforementioned references either do not specify the prediction method or use classic methods like simple linear equation or stochastic model. Recent works have replaced that with ML-based prediction, which promises better accuracy and thus robust control actions. Authors in [3] included a novel hybrid ML model in the MPC architecture for forecasting arrival/departure time and energy demand per EV. Based on the predictions, the MPC is used to minimize 2 VOLUME 4 2023 TABLE 1: Literature review of MPC-based energy management system for EV charging infrastructures. Ref. Year Data Real case / Objectives Manipulated Constraints Disturbances <u>Control</u> <u>Prediction</u> <u>type</u> <u>Simulation</u> <u>variables</u> <u>Algorithm</u> <u>Horizon</u> <u>Method</u> <u>Horizon</u> [6] 2023 Real Real case Minimize grid Grid and battery Power balance and PV power and MPC 5 min Linear 1 hour Power balance and variables’ bounds Power balance and <u>variables’ bounds</u> Power balance and variables’ bounds Power balance, variables’ bounds, voltage limits and EV charging needs <u>fulfilled</u> battery SoC REs production <u>and EV demand</u> PV, load and EVs powers PV and EV powers PV power and 5 min Linear 1 hour power use [8] 2023 Real Simulation Minimize <u>operational cost</u> [9] 2024 Generated Simulation Minimize operational costs Grid and battery powers Generator and EV <u>powers</u> Grid and batteries powers MPC toolbox<u>MATLAB</u> CVX<u>MATLAB</u> python / PSCAD <u>platform</u> 1 hour NA <sup><u>1</u></sup> 24 hours 1 hour NA 24 hours [10] 2022 Generated Simulation Voltage regulation EV active power and PV reactive power NA NA NA 6 hours [11] 2023 Generated Simulation + experimental <u>validation</u> Restoration of frequency and <u>voltage</u> EV charging time, place and energy needs. Arrival/departure time and energy demand per EV Driver parameters and pricing schemes EV charging demand (number <u>of sessions)</u> EV demand MPC toolbox<u>MATLAB</u> [12] 2021 Generated Simulation Minimize costs (generation and loss) and peak load [3] 2023 Real Simulation Minimize electricity costs [5] 2021 Real Simulation Rapid charging, cost minimization /maximization of profit, demand charge reduction, load variation minimization, fair capacity distribution, and non-completion <u>penalties.</u> Ours 2023 Real Simulation Minimize phase unbalance and <u>overloading</u> EV power Power balance and variables’ bounds EV power Transformer capacity and voltage limits EV power Power balance, variables’ bounds, net load equal to the sum of EVs loads, no dispatching for absent EVs and demand <u>satisfaction</u> EV current Infrastructure limits EV current Infrastructure limits SQP calling fmincon <sup>2</sup> <u>MATLAB</u> CVXMATLAB ECOS, MOSEK, and Gurobi solvers Pymoo (G3PCX <sup>3</sup> ) <u>in Python</u> 5 min ML (DNN + <u>SSA)</u> NA NA 10 ms NA Stochastic NA 15 min ML (TreeBagger + LSTM + kNN) 24 hours NA ML NA 5 min 1NA: Not Available 2SQP: Sequential Quadratic Programming 3G3PCX: A computationally efficient evolutionary algorithm for real-parameter optimization the electricity cost by varying the charging power of each EV. Their ML-MPC control system lowered the average weekday peak demand by 47% in a 30-day summertime case study compared to an uncontrolled charging. Furthermore, a sensitivity analysis confirmed the importance of forecast accuracy in the MPC algorithm, but also highlighted the MPC’s capability to reduce cost risks associated with inaccurate forecasting. In [5], Unfortunately, details about their ML predictive model are not available. _C._ _RESEARCH GAP_ In centralized control strategies for large-scale charging stations, there exists notable research gaps within the literature. These gaps encompass several key aspects. Firstly, grid impacts, such as phase unbalance, voltage drops, frequency variations, power losses, and energy quality considerations, have received limited attention and are conspicuously absent from the objectives and constraints in most studies, with exceptions found only but not limited to the references [10]– [12]. Secondly, the integration of ML techniques into the predictive component of the MPC strategy represents a relatively recent development and has not been fully explored, with notable instances found solely in references [3]–[5]. Additionally, the simulation of charging infrastructure often relies on simplified models, potentially overlooking complex realworld dynamics. Lastly, the utilization of MPC toolboxes in software environments such as MATLAB or Python can impose constraints on researchers, limiting their access to a predefined set of optimization algorithms and parameters. These gaps highlight areas where further research and in VOLUME 4 2023 3 novation are warranted to advance the field of centralized control strategies for large-scale EV charging stations. _D._ _CONTRIBUTION_ In this article, through the developed ML-based online MPC, we tried to handle these gaps by considering a grid-centred MPC, including ML in the prediction and enhanced with Singular Spectrum Analysis (SSA), using OpenDSS for detailed system simulations, and employing Multi-Objective Optimization in Python (Pymoo) [14] for flexible optimization options. The main objective of the developed MPC is to reduce the impacts of EV charging on the grid, specifically phase unbalance and overloading. To ensure an accurate behavior of the system, we detailed the model of the controlled charging infrastructure utilizing OpenDSS. Furthermore, the open-source library Pymoo broadens the spectrum of possibilities for hyper-tuning the MPC by testing a wide range of optimization algorithms. Our goal is to minimize computation time as much as possible in order to enable realtime MPC calculations. II. METHODS In our recent study, we address the same challenges highlighted in the previous article concerning phase unbalance and overloading [15], introducing a new methodology employing MPC. Unlike the prior approach where reactions were based on real-time events, the considered technique emphasizes forecasting the system’s behavior and proactively preparing control signals. This proactive stance is underlined by the inclusion of future phase unbalance errors in the objective function (equations (1) and (2)). For system modeling, we have adopted OpenDSS due to its comprehensive representation of the LV grid and its seamless integration capabilities with Python [16], [17]. This integration proves invaluable when incorporating ML for predictions and interfacing with diverse optimization libraries. Traditional MPC uses relatively simple, inaccurate, or not real-time applicable methods for prediction to anticipate the system’s future state, such as frozen-time, prescient, exponential varying, stochastic, telematics MPC, etc. [18]. In the current approach, we have employed ML for predicting the EV charging demand to boost the accuracy of the forecasts, acknowledging that the efficacy of MPC is deeply contingent on the precision of its predictions. The considered approach of applying MPC and its principle components are described in the next subsections. _A._ _PROBLEM STATEMENT_ We structure the MPC as depicted in Figure 1, where it operates by anticipating the future state of the system it oversees. At the outset, it employs prediction mechanisms to forecast disturbances based on historical data; in this study, we have integrated ML for this purpose. For the MPC to function optimally, it requires knowledge of the cost function, which, in the current context, aims at minimizing phase unbalance (equation (1)). It also necessitates understanding the Where _P_ <sup>ˆ</sup> _a_ ( _t_ + _j|t_ ), _P_ <sup>ˆ</sup> _b_ ( _t_ + _j|t_ ) and _P_ <sup>ˆ</sup> _c_ ( _t_ + _j|t_ ) are the predicted power at phases _a_, _b_ and _c_ respectively, for the instant _t_ + _j_ calculated at time _t_ . The considered constraint for this case is the current limitation to alleviate overloading as in equation (3). _s.t._ _g_ ( _t_ ) = _I_ bus_STEG <sup>ph</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_≤_</sup> <sup>_I_</sup> <sup>max</sup> _∀_ ph _∈{a,b,c}_ (3) Where _I_ bus_STEG <sup>ph</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>is</sup> <sup>the</sup> <sup>total</sup> <sup>current</sup> <sup>in</sup> <sup>phase</sup> <sup>ph</sup> <sup>at</sup> bus_STEG at time _t_, which must be lower than _I_ max. FIGURE 1: General structure of the considered MPC. constraints (to prevent overloading in this scenario depicted in equation (3)) and the desired trajectory, in current case, maintaining the phase unbalance as close to zero as possible. To achieve this, the MPC executes an optimization loop. For this, we employed the Pymoo library in Python, chosen for its extensive catalog of algorithms tailored for single, multiand many-objective optimization, as well as its adeptness at managing black-box functions like the OpenDSS plant model [19]. Within this framework, the Pymoo optimizer tweaks the control variables (the charging currents of each Charging Point (CP)), aiming to ascertain the combination that yields the least error. Post-optimization, these optimal inputs are processed through the plant model to assess the resultant outputs and their implications. Equation (1) shows the objective function to be minimized to reduce phase imbalance. (1) _min_ _I_ CP _i_ ( _t_ + _j|t_ ) 1 _≤i≤_ 54 1 _≤j≤N_ 2 _f_ ( _t_ ) = <sup>�</sup> _j_ <sup>_N_</sup> = <sup>2</sup> _N_ 1 <sup>_αN_</sup> <sup>2</sup> <sup>_−j_</sup> <sup>[</sup> PU <sup>ˆ</sup> ( _t_ + _j|t_ )] <sup>2</sup> Where _I_ CP _i_ ( _t_ + _j|t_ ) is the controlled current for the instant _t_ + _j_ calculated at time _t_ for the CP number _i_, _N_ 1 and _N_ 2 are the lower and higher values of the prediction horizon, _α_ is the weighting factor for the predicted error and PU <sup>ˆ</sup> ( _t_ + _j|t_ ) is the state variable (predicted phase unbalance) for the instant _t_ + _j_ calculated at time _t_ a shown using equation (2). �� _P_ ˆ _a_ ( _t_ + _j|t_ ) _−_ _P_ <sup>ˆ</sup> _b_ ( _t_ + _j|t_ )� PUˆ ( _t_ + _j|t_ ) = _P_ ˆ _a_ ( _t_ + _j|t_ ) _−_ _P_ <sup>ˆ</sup> _b_ ( _t_ + _j|t_ )�2+ - _P_ ˆ _b_ ( _t_ + _j|t_ ) _−_ _P_ ˆ _c_ ( _t_ + _j|t_ )�2+ �2+ (2) - 2 <sup><u>1</u></sup> �2 - _P_ ˆ _c_ ( _t_ + _j|t_ ) _−_ _P_ ˆ _a_ ( _t_ + _j|t_ ) 4 VOLUME 4 2023 _B._ _PLANT MODEL_ The system model is a large-scale charging infrastructure in an LV grid modeled in OpenDSS and supposed to be installed in the parking lot of the National School of Advanced Sciences and Technologies of Borj Cedria (ENSTAB). The infrastructure is supplied with a power source of 2 _×_ 800 kVA channeled through two transformers, as shown in Figure 2. Out of this, a dedicated capacity of 300 A per phase is set aside exclusively for EV charging. This charging infrastructure comprises 54 single-phase EVSE, each with a rated current of 32 A (7.4 kW). The primary distribution lines, which are laid underground, are rated for a current of 300 A. For a comprehensive breakdown and further specifics about the infrastructure, one can refer to the detailed exposition in the preceding article [15]. The charging events fed into the different control scenario later are shown in Figure 3. This data presents the day with the most phase unbalance that we already used it in the grid impact analysis and for the optimization using Genetic Algorithm (GA) in the previous work [15]. _C._ _ML PREDICTION_ The prediction part of the MPC implementation is based on ML models, where its detailed scheme is illustrated in Figure 4. The process begins with data sourced from ACNData [13], which contains when sessions started and ended, combined with the measured charging profile [15]. The combination procedure results in current timeseries for each CP. Subsequently, a time series aggregation step groups this data by bus, generating a comprehensive current timeseries for each bus (bus_ca1, bus_ca2, bus_ca3 and bus_ca4). Hence, we needed four ML models for predicting each of the buses’ demand. The input of the models is three hours historical demand, and the output is one hour ahead. Afterwards, we employed SSA decomposition to get rid of the noise from the predicted currents. The final step is to convert the current to its equivalent number of sessions by dividing its value by the maximum current of the charging profile (33.5 A). The combined dataset was divided into segments, allocating 60% for training, 20% for validation, and 20% for testing. The initial focus was on predicting the total current, for which we examined four machine learning regression models: DNN, Long Short-Term Memory (LSTM), LSTM+DNN, and Gated Recurrent Unit (GRU). The objective was to evaluate their performances and select the most effective one. To optimize the accuracy of each model, we utilized the Keras Tuner, employing the Hyperband hyperparameter optimizer, which is according to [20] is better than the Bayesian Search. The fine-tuned parameters, in this case, are the number of units in each layer and learning rate. Once the best model was identified, we further fine-tuned it to predict the total current per bus. Prior to translating the current value into its equivalent number of sessions, we incorporated SSA to decompose the current signal. Through testing multiple decomposition levels, we finally selected the one that yielded the most accurate prediction for the number of sessions. _D._ _OPTIMIZATION FRAMEWORK_ In the current article, we adopted the Pymoo optimization framework within Python for its comprehensive suite of algorithms designed for single, multi-, and many-objective optimization tasks. This flexibility was particularly advantageous for tackling functions that are not explicitly defined, such as the OpenDSS plant model. Thanks to OpenDSS’ existing Python control capabilities, integration into the framework was seamless. We harnessed the majority of single-objective optimization algorithms provided by Pymoo to perform an extensive comparative analysis. This allowed us to assess their performance both in terms of the quality of convergence and computational efficiency. The insights gained from this comparison were instrumental in selecting the most appropriate algorithm for subsequent phases of this research, ensuring that we proceeded with the tool best suited to the nuances of this specific optimization challenges. The full list of the used algorithms is presented in Table 2 TABLE 2: List of of the used optimization algorithms from Pymoo. <u>Name</u> <u>Abbreviation</u> Genetic Algorithm GA Particle Swarm Optimization PSO Differential Evolution DE Pattern Search PS Covariance Matrix Adaptation Evolution Strategy CMAES Evolutionary Strategy ES Stochastic Ranking Evolutionary Strategy SRES Improved Stochastic Ranking Evolutionary Strategy ISRES A Computationally Efficient Evolutionary Algorithm for G3PCX <u>Real-Parameter Optimization [21]</u> III. RESULTS AND DISCUSSION _A._ _PREDICTION RESULTS_ 1) Total current prediction The fine-tuned architecture of each of the models is exhibited in Table 3. Figure 5 showcases the prediction results of the total current using various machine learning models compared to the actual current readings over time. The graph illustrates that all models—GRU, LSTM + DNN, LSTM, and DNN—closely follow the actual current’s trend, with minor deviations. Especially notable is the peak current periods where all models, though slightly varied, attempt to replicate the real-time current readings. The comparison in Table 4 indicates that the DNN model offers the best accuracy with an Mean Squared Error (MSE) of 1997 A. In terms of improvements in MSE, the LSTM + DNN model is about 16% better than the GRU model. The LSTM model further improves upon this by about 0.92%, and the DNN model achieves a further 2.89% improvement over the LSTM model. 2) Number of sessions prediction After choosing the DNN model to continue with, we trained and fine tuned four of them to predict the total current in each bus. The final results after filtering and converting into predicted number of sessions are demonstrated in Figure 6 VOLUME 4 2023 5 CP47 CP44 CP43 CP42 CP41 CP40 CP39 CP38 CP37 CP36 CP35 CP34 CP33 CP32 CP31 CP30 CP29 CP28 CP27 CP26 CP25 CP24 CP23 CP22 CP21 CP20 CP19 CP18 CP17 CP16 CP15 CP14 CP13 CP12 CP11 CP10 CP9 CP8 CP7 CP6 CP5 CP3 FIGURE 2: ENSTAB Charging infrastructure. TABLE 3: Models’ fine-tuned architecture. <u>Model</u> <u>Number of layers</u> <u>Number of units</u> <u>Learning rate</u> GRU 1 [32] 0.01 LSTM + DNN 2 [512, 64] 0.01 LSTM 2 [448, 64] 0.01 <u>DNN</u> <u>3</u> <u>[32, 192, 480]</u> <u>0.01</u> TABLE 4: Accuracy measurements of the total current prediction models. <u>Model</u> <u>MSE (A)</u> <u>MAE (A)</u> GRU 2471 25.8 LSTM + DNN 2076 23.6 LSTM 2057 22.4 <u>DNN</u> <u>1997</u> <u>22.1</u> 00:00 03:00 06:00 09:00 12:00 15:00 18:00 21:00 Time FIGURE 3: EV charging time table from ACN data, only used CP are represented. FIGURE 4: Structure of the prediction scheme. _B._ _MPC RESULTS_ 1) Results for different control horizons and optimization algorithms a: Control horizon effects on the mpc To determine the appropriate control horizon, we conducted multiple tests using varied control and prediction horizons and visualized the total current consumption in Figure 7. The "No forecast" case serves as the optimal control benchmark since it is an offline optimization where the actual EV charging demand is known; thus, other cases should aim to align with it. In the subsequent five tests, we set the control horizon to match the prediction horizon and examined values of 5, 15, 30, 45, and 60 minutes for the selected simulation day. Given that the performance metrics of the five MPCs appear closely aligned in Figure 7, we assessed the error relative to the "No forecast" case in Table 5. Here, the 5-minute control horizon MPC emerged as the most accurate, registering the smallest error. TABLE 5: Error metrics of different control horizon of the MPC. <u>Control horizon</u> Metric MSE (A) MAE (A) 5 min 1708 27.8 15 min 1939 28.6 30 min 2214 31.9 45 min 2801 35.4 <u>60 min</u> <u>3010</u> <u>36.4</u> 6 VOLUME 4 2023 700 600 500 400 300 200 100 0 Actual LSTM + DNN GRU LSTM DNN 0d00h 0d06h 0d12h 0d18h 1d00h 1d06h 1d12h 1d18h 2d00h 2d06h 2d12h 2d18h 3d00h 3d06h 3d12h 3d18h Time (days, hours) FIGURE 5: Results of the total current prediction models. 10 5 0 10 5 0 10 5 0 10 5 Actual Prediction (a) bus_ca1 (b) bus_ca2 (c) bus_ca3 (d) bus_ca4 generations reaching 300 generations. The outcomes of the experiments are depicted in Figure 8, illustrating the fitness value of each algorithm based on the number of generations. Additionally, Table 6 presents the computation time, in minutes, for each algorithm at various timestamps. Due to the control horizon being set at five minutes, we must eliminate algorithms that exceed this time frame. The algorithms left are PSO, CMAES and G3PCX. Since G3PCX requires fewer generations to reach the minimum, we will use it in the MPC. TABLE 6: Computation time in minutes of the used optimization algorithm for different timestamps. <u>Algorithm</u> Timestamp 10:15 11:20 12:00 16:30 0 00:00 02:00 04:00 06:00 08:00 10:00 12:00 14:00 16:00 18:00 20:00 22:00 Time FIGURE 6: Number of sessions prediction results per bus. b: Algorithm choice effects on the MPC In order to pick the best optimization algorithm, we run tests for different timestamps from the chosen day of simulation. We conducted experiments at four distinct timestamps, setting the control horizon to five minutes and the prediction horizon to one hour (maximum value) to test the algorithms with the most computationally expensive MPC (maximum number of manipulated variables: _N_ 2 _×_ 54 = 12 _×_ 54 = 648). All the simulation are done on a 3.7 GHz Intel i7-8700K Core 32 GB RAM computer. The termination criteria were set to either the fitness value undershooting 1e-3 or the number of GA 8.2 min 9.1 min 7.5 min 7.5 min PSO 2.1 min 2.4 min 2.0 min 2.0 min DE 8.2 min 9.2 min 7.7 min 7.3 min PS 4.1 min 7.0 min 6.0 min 3.5 min CMAES 2.0 min 2.3 min 1.9 min 1.8 min ES 17.7 min 20.0 min 17.3 min 15.5 min SRES 17.8 min 20.1 min 17.6 min 15.7 min ISRES 15.8 min 18.1 min 15.3 min 14.0 min <u>G3PCX</u> <u>2.1 min</u> <u>2.7 min</u> <u>2.2 min</u> <u>1.9 min</u> 2) Results for one day of simulation Having set the prediction and control horizons to a duration of 5 minutes and identified G3PCX as the optimal optimization algorithm, we proceeded to evaluate the MPC by simulating a day’s worth of EV charging events. We specifically selected a day that exhibited the highest phase unbalance according to the ACN-data for this test. In the following paragraphs, we will delve into an analysis of the MPC’s control efficacy, benchmarking it against both an uncontrolled baseline and an offline scenario where no forecasting is employed, providing a reference for the MPC’s convergence target. VOLUME 4 2023 7 1000 No forcast 5 minutes 800 600 400 200 15 minutes 30 minutes 45 minutes 60 minutes 0 00:00 01:00 02:00 03:00 04:00 05:00 06:00 07:00 08:00 09:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 17:00 18:00 19:00 20:00 21:00 22:00 23:00 Time FIGURE 7: Total current consumption for different control horizon of the MPC. 400 300 200 100 0 400 300 200 100 0 400 300 200 100 Ia Ib Ic I max 600 400 200 0 1000 500 0 (a)10:15 (b)11:20 1000 800 600 400 200 0 (c)12:00 (d)16:30 800 600 400 200 0 GA PSO DE PS CMAES ES SRES ISRES G3PCX (a) Uncontrolled (b) No forecast (c) MPC 0 50 100 150 200 250 300 0 50 100 150 200 250 Generation FIGURE 8: Convergence plot of the used optimization algorithms for different timestamps. a: Current demand As in Figure 9, for either cases (No forecast and MPC) the currents are kept under the fixed limit. b: Phase unbalance Concerning the phase unbalance present in both current and voltage, the results from the MPC and the no forecast control approach are comparable. The Phasing Unbalance Index (PUI) displays nearly identical reductions when utilizing either no forecast control or MPC, with the average values decreasing by 71% and 69%, respectively, when compared to the uncontrolled case, as detailed in Table 7. In terms of the Voltage Unbalance Factor (VUF), the performance of the MPC closely mirrors that of the no forecast method. The average VUF values were diminished by 27% with no forecast control and by 22% with MPC compared to the uncontrolled case. Additionally, the peak VUF values saw a reduction of 58% under no forecast control and 53% with MPC with reference to the uncontrolled case, as outlined in Table 7. 0 00:00 02:00 04:00 06:00 08:00 10:00 12:00 14:00 16:00 18:00 20:00 22:00 Time FIGURE 9: Currents consumption for different control cases: (a) Uncontrolled; (b) No forecast (offline); (c) MPC. TABLE 7: Results summary of one-day simulation for each control case. PUI mean value (%) 32.9 10.2 9.6 VUF mean value (%) 0.410 0.321 0.299 VUF maximum value (%) 1.795 0.850 0.762 Voltage drop period (min) 580 415 265 Voltage drop minimum (pu) 0.926 0.933 0.938 <u>Total line losses (kWh)</u> <u>89.2</u> <u>74.7</u> <u>68.2</u> c: Voltage drop Figure 10 illustrates voltage drop results for bus_ca4 over a day across three scenarios: Uncontrolled, No forecast (offline), and MPC. The uncontrolled situation displays pronounced voltage fluctuations, especially between 04:00 and 12:00. In contrast, both the no forecast and MPC methods offer a more stable voltage profile, with the MPC exhibiting slight variations. The minimum and maximum voltage boundaries (V min and V max) highlight the improved voltage stability achieved by the control methods compared to the uncontrolled approach. Table 7 further emphasizes the improvement achieved in voltage stability through different control methods by presenting the total duration of out-of-standard voltage drop <u>Result</u> Case Uncontrolled MPC No forecast 8 VOLUME 4 2023 1.1 1.05 1 0.95 0.9 1.1 1.05 1 0.95 0.9 1.1 1.05 1 0.95 Va Vb Vc V min V max (a) Uncontrolled (b) No forecast (c) MPC 0.9 00:00 02:00 04:00 06:00 08:00 10:00 12:00 14:00 16:00 18:00 20:00 22:00 Time FIGURE 10: Voltage drop results for each control case at bus_ca4: (a) Uncontrolled; (b) No forecast (offline); (c) MPC. and the associated minimum pu values. When comparing the uncontrolled case to the MPC and no forecast approaches, there is a significant reduction in the duration of voltage drops by 28% with MPC and by 54% with the no forecast method. Additionally, the minimum pu voltage showcases improved stability, with the MPC and no forecast cases recording values of 0.933 and 0.938, respectively, indicating enhancements of 0.76% and 1.3% over the uncontrolled scenario’s 0.926 pu. d: Losses Table 7 outlines the reductions in active line losses achieved through various control strategies. Compared to the uncontrolled scenario with losses of 89.2 kWh, the MPC method reduced losses by 16% to 74.7 kWh, and the no forecast strategy further decreased losses by 24% to 68.2 kWh. In terms of environmental impact, the difference in losses between the uncontrolled and MPC cases is 14.5 kWh, which equates to a reduction of approximately 6.32 kgCO2 using the coefficient of 436 gCO2 _/_ kWh for the Tunisian power system case. The difference between the uncontrolled and no forecast cases is 21 kWh, translating to a CO2 emission reduction of approximately 9.16 kgCO2. This showcases the potential of the MPC and no forecast methods not only in phase balancing and peak load shaving but also in significantly reducing carbon emissions. 3) Results for one-week of simulation We extended further the evaluation the MPC over a period of one-week as detailed in the next paragraphs. a: Current demand Figure 11 showcases the current consumption for different control cases over a one-week simulation. Observing the graphs, the uncontrolled scenario has noticeable and pronounced peak current values. In contrast, the MPC-controlled graph displays a significant reduction in these peaks. This phenomenon, known as peak shaving, is evident in the MPC method where the highest current spikes are visibly lower than in the uncontrolled situation. Throughout the 7-day period, the MPC consistently mitigates high consumption periods, leading to a smoother current profile with fewer extreme variations. This not only enhances system reliability and efficiency but also alleviates potential strain on electrical infrastructure. For a quantitative comparison, Table 8 illustrates the current demand over a week for both uncontrolled and MPCcontrolled scenarios. For the uncontrolled case, the demand persists over the limit for 2820 minutes with a peak of 487 A. When utilizing MPC, the demand duration drops to 1030 minutes, marking a 63% reduction. Additionally, the peak demand decreases to 380 A, which is a 22% reduction from the uncontrolled peak. These substantial reductions emphasize the effectiveness of MPC in optimizing current demand over time, suggesting potential benefits in system efficiency, infrastructure longevity, and cost savings. TABLE 8: Results summary of one-week simulation for each control case. Overloading peak demand (A) 487 380 Overloading period (min) 2820 1030 PUI mean value (%) 58.1 18.6 VUF mean value (%) 0.594 0.329 VUF maximum value (%) 1.98 1.07 Voltage drop period (min) 4220 3340 Voltage drop minimum (pu) 0.897 0.913 <u>Total line losses (kWh)</u> <u>580</u> <u>466</u> b: Phase unbalance From Figure 12, the distinction between the uncontrolled and MPC-controlled scenarios regarding the PUI is evident. The uncontrolled scenario displays greater volatility with pronounced spikes in PUI. In contrast, the MPC-controlled situation shows a more stable pattern with reduced PUI surges. Further insights from Table 8 reinforce this observation, where the mean PUI value for the uncontrolled case is 58%. With the implementation of MPC, there’s a remarkable reduction, bringing the mean PUI value down to 19%. This translates to a significant 68% reduction in PUI, emphasizing the effectiveness of MPC in reducing current unbalance. Figure 13 offers a comparative view of the VUF between the uncontrolled and MPC-controlled scenarios. The VUF for the uncontrolled setting is more erratic and often hits the VUF standard limit (according to the International Electrotechincal Commission (IEC) [22]), indicating higher voltage unbalance. On the other hand, the MPC-controlled <u>Result</u> Case Uncontrolled MPC VOLUME 4 2023 9 500 400 300 200 100 0 500 400 300 200 100 (a) Uncontrolled (b) MPC Ia Ib Ic I max 0 0d00h 0d06h 0d12h 0d18h 1d00h 1d06h 1d12h 1d18h 2d00h 2d06h 2d12h 2d18h 3d00h 3d06h 3d12h 3d18h 4d00h 4d06h 4d12h 4d18h 5d00h 5d06h 5d12h 5d18h 6d00h 6d06h 6d12h 6d18h Time (days, hours) FIGURE 11: Currents consumption for different cases for one-week: (a) Uncontrolled; (b) MPC. 200 Uncontrolled MPC 150 100 50 0 0d00h 0d06h 0d12h 0d18h 1d00h 1d06h 1d12h 1d18h 2d00h 2d06h 2d12h 2d18h 3d00h 3d06h 3d12h 3d18h 4d00h 4d06h 4d12h 4d18h 5d00h 5d06h 5d12h 5d18h 6d00h 6d06h 6d12h 6d18h Time (days, hours) FIGURE 12: Power Unbalance Index (PUI) results for one-week. scenario remains consistently below this limit, signifying improved voltage balance. Table 8 provides numerical substantiation: the uncontrolled scenario’s mean VUF value stands at 0.594%, which decreases to 0.329% under MPC. This results in a 45% reduction in the average VUF. Moreover, the maximum VUF value drops from 1.98% in the uncontrolled state to 1.07% with MPC, marking a 46% reduction. This data underscores the efficiency of MPC in mitigating voltage unbalance. c: Voltage drop In Figure 14, the voltage variations over a week for both uncontrolled and MPC-controlled scenarios at _bus_ _ _c_ 4 are depicted. The uncontrolled setup demonstrates more pronounced voltage fluctuations with several significant dips reaching the minimum standard line (0.95 pu for LV grids according to the [22]), while the MPC-controlled scenario maintains a more consistent voltage closer to the standard value. Quantitatively, Table 8 indicates that the uncontrolled system experienced out-of-standard voltage drops for 4220 minutes with a minimum voltage of 0.897 pu. In comparison, the MPC-controlled setup reduced this to 3340 minutes and exhibited a higher minimum voltage of 0.913 pu. This translates to a 21% improvement in the duration of voltage drops with a minimum value of 0.913 pu using MPC control, underlining its efficiency in ensuring a more stable power system. d: Losses The implementation of the MPC showcased a significant enhancement in system efficiency, as evidenced by the reduction in total active line losses as depicted in Table 8. Compared to the uncontrolled case, MPC led to a 20% decrease in losses, translating to 114 kWh saved over a week. Furthermore, when considering the environmental implications, this reduction represents a notable decrease in carbon footprint. Specifically, the energy savings equate to a reduction of 50 kgCO2 emphasizing the dual benefits of improved system performance and environmental conservation achieved with the MPC. IV. CONCLUSION AND PERSPECTIVES In this research paper, we developed an online grid-level MPC incorporating ML in its prediction mechanism, specif 10 VOLUME 4 2023 2 1.5 1 0.5 0 Uncontrolled MPC VUF max 0d00h 0d06h 0d12h 0d18h 1d00h 1d06h 1d12h 1d18h 2d00h 2d06h 2d12h 2d18h 3d00h 3d06h 3d12h 3d18h 4d00h 4d06h 4d12h 4d18h 5d00h 5d06h 5d12h 5d18h 6d00h 6d06h 6d12h 6d18h Time (days, hours) FIGURE 13: Voltage Unbalance Factor (VUF) results for one-week. 1.05 1.04 1.03 1.02 1.01 1 0.99 0.98 0.97 0.96 0.95 0.94 0.93 0.92 0.91 0.9 1.05 1.04 1.03 1.02 1.01 1 0.99 0.98 0.97 0.96 0.95 0.94 0.93 0.92 0.91 0.9 (a) Uncontrolled (b) MPC Va Vb Vc V min V max 0d00h 0d06h 0d12h 0d18h 1d00h 1d06h 1d12h 1d18h 2d00h 2d06h 2d12h 2d18h 3d00h 3d06h 3d12h 3d18h 4d00h 4d06h 4d12h 4d18h 5d00h 5d06h 5d12h 5d18h 6d00h 6d06h 6d12h 6d18h Time (days, hours) FIGURE 14: Voltage drop results at bus_ca4 for one-week: (a) Uncontrolled; (b) MPC. ically designed for the efficient management of a large-scale charging infrastructure. This MPC was meticulously aimed at reducing the impacts of EV charging on the grid by notably reducing phase unbalance and overloading. Through numerous experiments, we fine-tuned the MPC parameters to reduce computation time and leveraging open-source tools like OpenDSS for grid modeling, TensorFlow for ML model development, and Pymoo for optimization in order to facilitate embedding of the whole control system. The prediction facet of the MPC underwent a rigorous comparison of various models, with the precision further enhanced by SSA. Impressively, the results of this MPC closely matched those of the offline/no forecast optimization presented in the prior work [15], for a simulation day experiencing the utmost phase unbalance. With respect to phase unbalance metrics, there was a decline in the PUI mean value by 71% and 69% under no forecast and MPC control scenarios respectively. The VUF mean value saw reductions of 27% and 22%, with peak values dropping by 58% and 53% for the two respective cases. Both setups managed to maintain peak demand within set bounds, and we observed enhancements in other grid impacts areas, including a voltage drop to 0.94 pu and 0.93 pu for no forecast and MPC scenarios respectively. Additionally, lines’ losses decreased by 24% and 16% under no forecast and MPC control. Expanding the MPC assessment over a week-long simulation revealed even more profound results. The duration of peak demand shrunk by 63%, the PUI mean value was cut by 68%, the VUF mean value decreased by 45%, and the minimum voltage unbalance surged from 0.897 pu to 0.913 pu, with the overall duration of out-of-standard drops being curtailed by 21%. Furthermore, a 20% reduction in lines’ losses translated to a carbon footprint reduction of 50 kgCO2 in just a week. Advancing this work, we recommend integrating more objective functions into the MPC to capture operational costs and user satisfaction metrics, ensuring broader stakeholder (grid operators, EV charging VOLUME 4 2023 11 operators, etc.) appeal. Incorporating REs into the mini-grid can introduce greater control flexibility, and there remains vast potential in refining prediction models via sophisticated signal processing techniques. REFERENCES [1] IEA, “Global electric vehicle outlook 2023,” IEA, Paris, France, Tech. Rep., 2023. [Online]. Available: [https://www.iea.org/reports/](https://www.iea.org/reports/global-ev-outlook-2023) [global-ev-outlook-2023](https://www.iea.org/reports/global-ev-outlook-2023) [2] E. F. Camacho, C. Bordons, E. F. Camacho, and C. Bordons, Model predictive controllers. Springer, 2007. [3] G. McClone, A. Ghosh, A. Khurram, B. Washom, and J. Kleissl, “Hybrid machine learning forecasting for online mpc of work place electric vehicle charging,” IEEE Transactions on Smart Grid, pp. 1–1, 2023. [4] C. Lyu, S. Zhan, Y. Zhang, and Z. Song, “Synergistic two-stage optimization for multi-objective energy management strategy of integrated photovoltage-storage charging stations,” Available at SSRN 4602647, manuscript under review. [Online]. Available: [https://papers.ssrn.com/](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4602647) [sol3/papers.cfm?abstract_id=4602647](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4602647) [5] Z. J. Lee, G. Lee, T. Lee, C. Jin, R. Lee, Z. Low, D. Chang, C. Ortega, and S. H. Low, “Adaptive charging networks: A framework for smart electric vehicle charging,” IEEE Transactions on Smart Grid, vol. 12, no. 5, pp. 4339–4350, 2021. [6] G. D’Amore, A. Cabrera-Tobar, G. Petrone, A. M. Pavan, and G. Spag nuolo, “Integrating model predictive control and deep learning for the management of an ev charging station,” Mathematics and Computers in Simulation, 2023. [7] C. Bordons, F. Garcia-Torres, and M. A. Ridao, Model predictive control of microgrids. Springer, 2020, vol. 358. [8] B. Wang, P. Dehghanian, and D. Zhao, “Coordinated planning of electric vehicle charging infrastructure and renewables in power grids,” IEEE Open Access Journal of Power and Energy, vol. 10, pp. 233–244, 2023. [9] T. R. de Barros, J. A. G. Archetti, M. Mattos, L. W. de Oliveira, and J. G. Oliveira, “Optimization algorithm associated with local and coordinated controls of distributed energy resources to meet technical and economic criteria,” Electric Power Systems Research, vol. 226, p. 109880, 2024. [Online]. Available: [https://www.sciencedirect.com/science/article/](https://www.sciencedirect.com/science/article/pii/S037877962300768X) [pii/S037877962300768X](https://www.sciencedirect.com/science/article/pii/S037877962300768X) [10] L. Wang, A. Dubey, A. H. Gebremedhin, A. K. Srivastava, and N. Schulz, “Mpc-based decentralized voltage control in power distribution systems with ev and pv coordination,” IEEE Transactions on Smart Grid, vol. 13, no. 4, pp. 2908–2919, 2022. [11] K. Feng and C. Liu, “Adaptive dmpc-based frequency and voltage control for microgrid deploying a novel ev-based virtual energy router,” IEEE Transactions on Transportation Electrification, pp. 1–1, 2023. [12] M. Tahmasebi, A. Ghadiri, M. Haghifam, and S. Miri-Larimi, “Mpc-based approach for online coordination of evs considering ev usage uncertainty,” International Journal of Electrical Power & Energy Systems, vol. 130, p. 106931, 2021. [13] Z. J. Lee, T. Li, and S. H. Low, “Acn-data: Analysis and applications of an open ev charging dataset,” in Proceedings of the tenth ACM international conference on future energy systems, 2019, pp. 139–149. [14] J. Blank and K. Deb, “Pymoo: Multi-objective optimization in python,” Ieee access, vol. 8, pp. 89 497–89 509, 2020. [15] L. Mejdi, F. Kardous, and K. Grayaa, “Impact analysis and optimization of ev charging loads on the lv grid: A case study of workplace parking in tunisia,” Energies, vol. 15, no. 19, p. 7127, 2022. [16] R. C. Dugan and D. Montenegro, OpenDSS Manual Reference Guide The Open Distribution System Simulator (OpenDSS), Electric Power Research Institute, Nov 2022. [17] K. Mahmud and G. E. Town, “A review of computer tools for modeling electric vehicle energy requirements and their impact on power distribution networks,” Applied Energy, vol. 172, pp. 337–359, 2016. [18] Y. Huang, H. Wang, A. Khajepour, H. He, and J. Ji, “Model predictive control power management strategies for hevs: A review,” Journal of Power Sources, vol. 341, pp. 91–106, 2017. [19] J. Blank and K. Deb, “Pymoo: Multi-objective optimization in python,” IEEE Access, vol. 8, pp. 89 497–89 509, 2020. [20] L. Li, K. Jamieson, G. DeSalvo, A. Rostamizadeh, and A. Talwalkar, “Hyperband: A novel bandit-based approach to hyperparameter optimization,” Journal of Machine Learning Research, vol. 18, no. 185, pp. [1–52, 2018. [Online]. Available: http://jmlr.org/papers/v18/16-558.html](http://jmlr.org/papers/v18/16-558.html) [21] K. Deb, A. Anand, and D. Joshi, “A computationally efficient evolutionary algorithm for real-parameter optimization,” Evolutionary computation, vol. 10, no. 4, pp. 371–395, 2002. [22] “Electromagnetic compatibility (emc) - part 2-2: Environment - compat ibility levels for low-frequency conducted disturbances and signalling in public low-voltage power supply systems,” International Electrotechnical Commission (IEC), International Electrotechnical Commission, 3, rue de VarembÈ, PO Box 131, CH-1211 Geneva 20, Switzerland, Standard, Mar. 2002. LAZHER MEJDI received his Engineering degree in Energy Systems and Clean Technologies from ENSTAB, University of Carthage, in 2019 and his M.S. degree in Power Electric Systems from National School of Engineering of Tunis (ENIT) in 2020. He is currently pursuing his Ph.D. degree in Electrical Engineering and Machine Learning in the Higher National School of Engineering of Tunis (ENSIT). His main research focus is in Emobility Smart Charging and its impacts on the electric grid. He is taking part of the research group in REMO project funded by DAAD, Germany. FATEN KARDOUS obtained her engineering degree in electrical engineering from the ENSEEHIT engineering school and her MSc. from the Polytechnic National Institute (INP) of Toulouse, France, in 2007. She earned her Ph.D. in engineering sciences from the University of Franche Comte (UFC) in Besancon, France, in 2011. Currently, she holds the position of Assistant Professor of Smart Sensors and Nanotechnologies at ENSTAB. Prior to her current role, she served as a Research and Teaching Assistant at UFC and as a Teaching Assistant at ENSEMM, Besancon, Fance, from 2008 to 2010. At present, she is a member of LaRINa Research Lab at the University of Carthage where she acts as the coordinator of WP2 within the REMO project. Her current research interests encompass E-mobility, smart energy management, smart Sensors, nanotechnologies and applications in smart agriculture. Her research contributions have been published in renowned journals, such as Biosensors and Bioelectronics, Journal of Applied Physics, Sensors and Actuators, A: Physical, Energies, among others. Dr. Kardous has actively participated in several national, and European projects including PAQ, REMO, etc. Her research works have been supported by national and international funding bodies including DAAD, BMZ, Germany, as well as the Ministries of Higher Education and Scientific Research in both Tunisia and France. 12 VOLUME 4 2023 KHALED GRAYAA is a Professor of Communication Systems and Advanced Electronic at ENSTAB University of Carthage, and Director of LaRINa Research Laboratory. He is currently the Tunisian coordinator of REMO project (Renewable Energy-based E-Mobility in Higher Education) financed by DAAD, in partnership with THI University in Germany and AUI University in Morocco. He was the Director of the National Higher Engineering School of Tunis (ENSIT) from 2011 to 2015. He received his Ph.D. in 2000 and HDR in 2007 in Communication Systems from ENIT in collaboration with ENSEEIHT, Toulouse, France. His interests include smart grid, AI, IoT and wireless communication systems. He has published 25 articles in refereed conference lectures and 16 journal articles. VOLUME 4 2023 13

섹션 본문 62문단 · 33,543자

(제목 없음)

1The rapid expansion of Electric Vehicle (EV) charging capacities, driven by the surge in transportation electrification, has a direct impact on the electric power system, particularly the Low Voltage (LV) grid.Consequently, there is a pressing need to redesign energy management systems, placing a greater emphasis on mitigating the effects of EV charging.In this article, we crafted an online grid-level Model Predictive Control (MPC) incorporating Machine Learning (ML) prediction enhanced with Singular Spectrum Analysis (SSA).ML models predicts the future EV charging demands, which are the key factors for the MPC for managing efficiently a large-scale charging infrastructure, aiming to mitigate EV charging impacts, specifically phase unbalance and overloading.The MPC results, especially on phase unbalance metrics, mirrored in a predictive manner those of offline/no forecast optimization from our previous work.A week-long MPC simulation comparison with uncontrolled case showcased a 63% reduction in peak demand duration, a 68% decrease in Phasing Unbalance Index (PUI), and a 45% reduction in Voltage Unbalance Factor (VUF).The minimum voltage unbalance improved from 0.897 pu to 0.913 pu, reducing out-of-standard drops duration by 21%.Lastly, we observed a 20% cut in lines' losses, equating to a 50 kgCO 2 reduction within a week.

I. INTRODUCTION A. MOTIVATION

2Electric Vehicle (EV) industry is experiencing an unprecedented surge, with sales surpassing 10 millions in 2022 and expected to reach nearly 14 million units in 2023.This momentum extends to the infrastructure supporting EVs.In 2022 alone, the global stock of public chargers saw a staggering 55% increase, and according to the Stated Policies Scenario (STEPS), the installed capacity is projected to magnify tenfold.As the industry pivots towards sustainability

3The associate editor coordinating the review of this manuscript and approving it for publication was Pratyasa Bhui.and efficiency, the number of slow chargers is set to quadruple, while fast chargers are anticipated to grow fivefold.Furthermore, the public charging sector is not far behind, predicted to see a 30% growth in its share.Such growth trends point towards an expected nine-fold increase in EV charging electricity demand, a projection from STEPS which, notably, represents the most conservative estimate among various scenarios [1].This monumental demand is perceived as a challenge and an opportunity: to meet these needs while ensuring the stability of the costly electric power systems.Enter smart charging, which has emerged as a beacon of hope in maintaining this delicate balance.Whether through centralized or decentralized forms, its various approaches and techniques are poised to revolutionize the EV industry.Leveraging advanced control techniques such as predictive and AI-based controls, smart charging is redefining the perspective on sustainable transportation in the present, not just for the future.Interestingly, even though Model Predictive Control (MPC) made its debut in the control research community back in the late seventies, it has maintained its stature as one of the most pertinent control strategies [2].Every time new control applications emerge, advancements in modeling are achieved, novel prediction techniques arise, or robust optimization algorithms are developed, MPC consistently resurfaces as a focal point of research.Eventually, Machine Learning (ML) promises to enhance MPC-based control strategies primarily in two areas: improving the prediction component, as seen in works like [3], [4], and [5], and in learning an Explicit Model Predictive Control (EMPC) formulation, which is typically computationally intensive, as discussed in [6].

B. LITERATURE REVIEW

4MPC has been widely used in microgrids, especially after the rise of EVs' load integration in them.One important application is in demand-side management, which uses load curtailment and load shifting as main management methods [7].Leveraging the fundamental operations outlined, prior studies focused on the optimization of EV charging through an MPC-based methodology to achieve their goals, which primarily fall into two distinct categories: objectives related to operational costs ( [3], [6], [8], [9]) and those aimed at diminishing costs associated with grid impacts ( [10], [11]).Other works tried to combine these two categories such as in [5] and [12].Table 1 presents a summary of the literature review of the relevant research works in this area.

1) OPERATIONAL COST

5Regarding operational costs MPC works, authors in [6] trained a Deep Neural Network (DNN) model on the control outputs of an EMPC for a photovoltaic (PV)-based charging station with a battery.The objective of the controller is to minimize the grid consumption by controlling its power draw along with the battery power.The considered uncertainties are the PV power and the battery State of Charge (SoC).The purpose of training a DNN model is to learn the offline optimal solutions produced by the EMPC, which are computationally expensive, so it can capture optimality while keeping a reasonable computation time.The DNN-MPC technique is tested on a real PV-powered Electric Vehicle Supply Equipment (EVSE), where it showed almost similar performance to an EMPC.In [8], the team utilized an IEEE 118-bus test system, which incorporates Renewable Energies (REs), including wind and PV, as well as EVs with significant integration.Operational expenses, in this case, are influenced by EV charging costs based on vehicle type, REs curtailment, the amount of generator fuel utilized, and battery degradation.The findings underscore that the introduced approach provides insights into determining the proportion of various charging loads within a region.This can strategically inform the integration of EVs and renewable sources to meet clean energy transition objectives.Moreover, the presented framework offers valuable guidance on determining the requisite charging capacity within specific demand zones.In [9], the study employs the ''EPRI CKT5'' system, a gridconnected framework with extensive integration of PV, EV, and batteries.Operational expenses encompass grid and battery energy costs, and to avoid exceeding the assigned power capacity.Utilizing an optimized control developed in Python based on an MPC, the operation determines the batteries' ideal performance curve.This control is engaged when the network operates without technical issues, resulting in over 16% cost savings for the network's energy, all while maintaining voltage profiles within the set regulatory parameters.

2) GRID IMPACTS COST

6Concerning the grid centric MPC works, authors in [10] utilized a decentralized MPC methodology tailored for large distribution systems with varying penetration rates of PV and EV.The approach involves segmenting the grid into clusters and implementing MPC independently on each segment.The primary goal is to maintain voltage within standard limits by minimizing deviations in EV active power and PV reactive power from their scheduled values.Simulation results, derived from the IEEE 123 test system at both low and high penetration levels, attest to the efficacy of the proposed MPC approach.In [11], the study addresses the EV as a virtual power plant with the capability to share power and restore voltage and frequency using a Distributed Model Predictive Control (DMPC) control.By integrating adaptive primary control with DMPC-based secondary control, the study ensures precise dynamic power sharing while maintaining stable frequency and voltage.Simulations and experiments conducted validate the convergence and resilience of the proposed approach, especially in the face of load disturbances and dynamic power sharing.

3) OPERATIONAL AND GRIDS IMPACT COST

7In [12], the team incorporated operational and grid impacts costs by introducing an online MPC designed for coordinating EV charging in both centralized and decentralized infrastructures, especially under conditions of high uncertainty.The primary goals of this system were to minimize the costs associated with generated power, losses, and peak load.In [5], the authors created and used the ACNdata, one of the most extensive public EV datasets [13], to develop an adaptive scheduling algorithm based on convex optimization and MPC.This algorithm is designed to manage multiple objectives, such as rapid charging, cost minimization/maximization of profit, demand charge reduction, load variation minimization, fair capacity distribution, and noncompletion penalties.These objectives are represented as a variable weighted sum, which can be adjusted according to the operator's preferences.

4) ML PREDICTION BASED MPC

8Most of the aforementioned references either do not specify the prediction method or use classic methods like simple linear equation or stochastic model.Recent works have replaced that with ML-based prediction, which promises better accuracy and thus robust control actions.Authors in [3] included a novel hybrid ML model in the MPC architecture for forecasting arrival/departure time and energy demand per EV.Based on the predictions, the MPC is used to minimize the electricity cost by varying the charging power of each EV.Their ML-MPC control system lowered the average weekday peak demand by 47% in a 30-day summertime case study compared to an uncontrolled charging.Furthermore, a sensitivity analysis confirmed the importance of forecast accuracy in the MPC algorithm, but also highlighted the MPC's capability to reduce cost risks associated with inaccurate forecasting.In [5], Unfortunately, details about their ML predictive model are not available.

C. RESEARCH GAP

9In centralized control strategies for large-scale charging stations, there exists notable research gaps within the literature.These gaps encompass several key aspects.Firstly, grid impacts, such as phase unbalance, voltage drops, frequency variations, power losses, and energy quality considerations, have received limited attention and are conspicuously absent from the objectives and constraints in most studies, with exceptions found only but not limited to [10], [11], and [12].Secondly, the integration of ML techniques into the predictive component of the MPC strategy represents a relatively recent development and has not been fully explored, with notable instances found solely in [3], [4], and [5].Additionally, the simulation of charging infrastructure often relies on simplified models, potentially overlooking complex realworld dynamics.Lastly, the utilization of MPC toolboxes in software environments such as MATLAB or Python can impose constraints on researchers, limiting their access to a predefined set of optimization algorithms and parameters.These gaps highlight areas where further research and innovation are warranted to advance the field of centralized control strategies for large-scale EV charging stations.

D. CONTRIBUTION

10In this article, through the developed ML-based online MPC, we tried to handle these gaps by considering a gridcentred MPC, including ML in the prediction and enhanced with Singular Spectrum Analysis (SSA), using OpenDSS for detailed system simulations, and employing Multi-Objective Optimization in Python (Pymoo) [14] for flexible optimization options.The main objective of the developed MPC is to reduce the impacts of EV charging on the grid, specifically phase unbalance and overloading.To ensure an accurate behavior of the system, we detailed the model of the controlled charging infrastructure utilizing OpenDSS.

11Furthermore, the open-source library Pymoo broadens the spectrum of possibilities for hyper-tuning the MPC by testing a wide range of optimization algorithms.Our goal is to minimize computation time as much as possible in order to enable real-time MPC calculations.

II. METHODS

12In our recent study, we address the same challenges highlighted in the previous article concerning phase unbalance and overloading [15], introducing a new methodology employing MPC.Unlike the prior approach where reactions were based on real-time events, the considered technique emphasizes forecasting the system's behavior and proactively preparing control signals.This proactive stance is underlined by the inclusion of future phase unbalance errors in the objective function (equations ( 1) and ( 2)).For system modeling, we have adopted OpenDSS due to its comprehensive representation of the LV grid and its seamless integration capabilities with Python [16], [17].This integration proves invaluable when incorporating ML for predictions and interfacing with diverse optimization libraries.Traditional MPC uses relatively simple, inaccurate, or not real-time applicable methods for prediction to anticipate the system's future state, such as frozen-time, prescient, exponential varying, stochastic, telematics MPC, etc. [18].In the current approach, we have employed ML for predicting the EV charging demand to boost the accuracy of the forecasts, acknowledging that the efficacy of MPC is deeply contingent on the precision of its predictions.The considered approach of applying MPC and its principle components are described in the next subsections.

A. PROBLEM STATEMENT

13We structure the MPC as depicted in Figure 1, where it operates by anticipating the future state of the system it oversees.At the outset, it employs prediction mechanisms to forecast disturbances based on historical data; in this study, we have integrated ML for this purpose.For the MPC to function optimally, it requires knowledge of the cost function, which, in the current context, aims at minimizing phase unbalance (equation ( 1)).It also necessitates understanding the constraints (to prevent overloading in this scenario depicted in equation ( 3)) and the desired trajectory, in current case, maintaining the phase unbalance as close to zero as possible.To achieve this, the MPC executes an optimization loop.For this, we employed the Pymoo library in Python, chosen for its extensive catalog of algorithms tailored for single, multi-and many-objective optimization, as well as its adeptness at managing black-box functions like the OpenDSS plant model [14].Within this framework, the Pymoo optimizer tweaks the control variables (the charging currents of each Charging Point (CP)), aiming to ascertain the combination that yields the least error.Post-optimization, these optimal inputs are processed through the plant model to assess the resultant outputs and their implications.

14Equation (1) shows the objective function to be minimized to reduce phase imbalance.min

15where I CP i (t+j|t) is the controlled current for the instant t + j calculated at time t for the CP number i, N 1 and N 2 are the lower and higher values of the prediction horizon, α is the weighting factor for the predicted error and P U(t + j|t) is the state variable (predicted phase unbalance) for the instant t + j calculated at time t a shown using equation (2).

16(2)

17where Pa (t + j|t), Pb (t + j|t) and Pc (t + j|t) are the predicted power at phases a, b and c respectively, for the instant t + j calculated at time t.

18The considered constraint for this case is the current limitation to alleviate overloading as in equation (3).

19where I ph bus_STEG (t) is the total current in phase ph at bus_STEG at time t, which must be lower than I max .

B. PLANT MODEL

20The system model is a large-scale charging infrastructure in an LV grid modeled in OpenDSS and supposed to be installed in the parking lot of the National School of Advanced Sciences and Technologies of Borj Cedria (ENSTAB).The infrastructure is supplied with a power source of 2 × 800 kVA channeled through two transformers, as shown in Figure 2. Out of this, a dedicated capacity of 300 A per phase is set aside exclusively for EV charging.This charging infrastructure comprises 54 single-phase EVSE, each with a rated current of 32 A (7.4 kW).The primary distribution lines, which are laid underground, are rated for a current of 300 A. For a comprehensive breakdown and further specifics about the infrastructure, one can refer to the detailed exposition in the preceding article [15].

21The charging events fed into the different control scenario later are shown in Figure 3.This data presents the day with the most phase unbalance that we already used it in the grid impact analysis and for the optimization using Genetic Algorithm (GA) in the previous work [15].

C. ML PREDICTION

22The prediction part of the MPC implementation is based on ML models, where its detailed scheme is illustrated in Figure 4.The process begins with data sourced from ACN-Data [13], which contains when sessions started and ended, combined with the measured charging profile [15].The combination procedure results in current timeseries for each CP.Subsequently, a time series aggregation step groups this data by bus, generating a comprehensive current timeseries for each bus (bus_ca1, bus_ca2, bus_ca3 and bus_ca4).Hence, we needed four ML models for predicting each of the buses' demand.The input of the models is three hours historical demand, and the output is one hour ahead demand.Afterwards, we employed SSA decomposition to get rid of the noise from the predicted currents.The final step is to convert the current to its equivalent number of sessions by dividing its value by the maximum current of the charging profile (33.5 A).

23The combined dataset was divided into segments, allocating 60% for training, 20% for validation, and 20% for testing.The initial focus was on predicting the total current, for which we examined four machine learning regression models: DNN, Long Short-Term Memory (LSTM), LSTM+DNN, and Gated Recurrent Unit (GRU).The objective was to evaluate their performances and select the most effective one.To optimize the accuracy of each model, we utilized the Keras Tuner, employing the Hyperband hyperparameter optimizer, which is according to [19] is better than the Bayesian Search.The fine-tuned parameters, in this case, are the number of units in each layer and learning rate.Once the best model was identified, we further fine-tuned it to predict the total current per bus.Prior to translating the current value into its equivalent number of sessions, we incorporated SSA to decompose the current signal.Through testing multiple decomposition levels, we finally selected the one that yielded the most accurate prediction for the number of sessions.

D. OPTIMIZATION FRAMEWORK

24In the current article, we adopted the Pymoo optimization framework within Python for its comprehensive suite of algorithms designed for single, multi-, and many-objective optimization tasks.This flexibility was particularly advantageous for tackling functions that are not explicitly defined, such as the OpenDSS plant model.Thanks to OpenDSS' existing Python control capabilities, integration into the framework was seamless.We harnessed the majority of single-objective optimization algorithms provided by Pymoo to perform an extensive comparative analysis.This allowed us to assess their performance both in terms of the quality of convergence and computational efficiency.The insights gained from this comparison were instrumental in selecting the most appropriate algorithm for subsequent phases of this research, ensuring that we proceeded with the tool best suited to the nuances of this specific optimization challenges.The full list of the used algorithms is presented in Table 2

1) TOTAL CURRENT PREDICTION

25The fine-tuned architecture of each of the models is exhibited in Table 3. Figure 5 showcases the prediction results of the total current using various machine learning models compared to the actual current readings over time.The graph illustrates that all models-GRU, LSTM + DNN, LSTM, and DNN-closely follow the actual current's trend, with minor deviations.Especially notable is the peak current periods where all models, though slightly varied, attempt to replicate the real-time current readings.The comparison in Table 4

2) NUMBER OF SESSIONS PREDICTION

26After choosing the DNN model to continue with, we trained and fine tuned four of them to predict the total current in each bus.The final results after filtering and converting into predicted number of sessions are demonstrated in Figure 6 B. MPC RESULTS

1) RESULTS FOR DIFFERENT CONTROL HORIZONS AND OPTIMIZATION ALGORITHMS a: CONTROL HORIZON EFFECTS ON THE MPC

27To determine the appropriate control horizon, we conducted multiple tests using varied control and prediction horizons and visualized the total current consumption in Figure 7.The ''No forecast'' case serves as the optimal control benchmark since it is an offline optimization where the actual EV charging demand is known; thus, other cases should aim to align with it.In the subsequent five tests, we set the control horizon to match the prediction horizon and examined values of 5, 15, 30, 45, and 60 minutes for the selected simulation day.Given that the performance metrics of the five MPCs appear closely aligned in Figure 7, we assessed the error relative to the ''No forecast'' case in Table 5.Here, the 5-minute control horizon MPC emerged as the most accurate, registering the smallest error.

b: ALGORITHM CHOICE EFFECTS ON THE MPC

28In order to pick the best optimization algorithm, we run tests for different timestamps from the chosen day of simulation.

29We conducted experiments at four distinct timestamps, setting the control horizon to five minutes and the prediction horizon to one hour (maximum value) to test the algorithms with the most computationally expensive MPC (maximum number of manipulated variables: N 2 × 54 = 12 × 54 = 648).All the simulation are done on a 3.7 GHz Intel i7-8700K Core 32 GB RAM computer.The termination criteria were set to either the fitness value undershooting 1e-3 or the number of generations reaching 300 generations.The outcomes of the experiments are depicted in Figure 8, illustrating the fitness value of each algorithm based on the number of generations.Additionally, Table 6 presents the computation time, in minutes, for each algorithm at various timestamps.Due to the control horizon being set at five minutes, we must eliminate algorithms that exceed this time frame.The algorithms left are PSO, CMAES and G3PCX.Since G3PCX requires fewer generations to reach the minimum, we will use it in the MPC.

2) RESULTS FOR ONE DAY OF SIMULATION

30Having set the prediction and control horizons to a duration of 5 minutes and identified G3PCX as the optimal optimization algorithm, we proceeded to evaluate the MPC by simulating a day's worth of EV charging events.We specifically selected a day that exhibited the highest phase unbalance according to the ACN-data for this test.In the following paragraphs, we will delve into an analysis of the MPC's control efficacy, benchmarking it against both an uncontrolled baseline and an offline scenario where no forecasting is employed, providing a reference for the MPC's convergence target.

a: CURRENT DEMAND

31As in Figure 9, for either cases (No forecast and MPC) the currents are kept under the fixed limit.

b: PHASE UNBALANCE

32Concerning the phase unbalance present in both current and voltage, the results from the MPC and the no forecast control approach are comparable.The Phasing Unbalance Index (PUI) displays nearly identical reductions when utilizing either no forecast control or MPC, with the average values decreasing by 71% and 69%, respectively, when compared to the uncontrolled case, as detailed in Table 7.In terms of the Voltage Unbalance Factor (VUF), the performance of the MPC closely mirrors that of the no forecast method.The average VUF values were diminished by 27% with no forecast control and by 22% with MPC compared to the uncontrolled case.Additionally, the peak VUF values saw a reduction of 58% under no forecast control and 53% with MPC with reference to the uncontrolled case, as outlined in Table 7. offer a more stable voltage profile, with the MPC exhibiting slight variations.The minimum and maximum voltage boundaries (V min and V max) highlight the improved voltage stability achieved by the control methods compared to the uncontrolled approach.

33Table 7 further emphasizes the improvement achieved in voltage stability through different control methods by presenting the total duration of out-of-standard voltage drop and the associated minimum pu values.When comparing the uncontrolled case to the MPC and no forecast approaches, there is a significant reduction in the duration of voltage drops by 28% with MPC and by 54% with the no forecast method.Additionally, the minimum pu voltage showcases improved stability, with the MPC and no forecast cases recording values of 0.933 and 0.938, respectively, indicating enhancements of 0.76% and 1.3% over the uncontrolled scenario's 0.926 pu.

d: LOSSES

34Table 7 outlines the reductions in active line losses achieved through various control strategies.Compared to the uncontrolled scenario with losses of 89.2 kWh, the MPC method reduced losses by 16% to 74.7 kWh, and the no forecast strategy further decreased losses by 24% to 68.2 kWh.In terms of environmental impact, the difference in losses between the uncontrolled and MPC cases is 14.5 kWh, which equates to a reduction of approximately 6.32 kgCO 2 using the coefficient of 436 gCO 2 /kWh for the Tunisian power system case.The difference between the uncontrolled and no forecast cases is 21 kWh, translating to a CO 2 emission reduction of approximately 9.16 kgCO 2 .This showcases the potential of the MPC and no forecast methods not only in phase balancing and peak load shaving but also in significantly reducing carbon emissions.

3) RESULTS FOR ONE-WEEK OF SIMULATION

35We extended further the evaluation the MPC over a period of one-week as detailed in the next paragraphs.

36a: CURRENT DEMAND Figure 11 showcases the current consumption for different control cases over a one-week simulation.Observing the graphs, the uncontrolled scenario has noticeable and pronounced peak current values.In contrast, the MPC-controlled graph displays a significant reduction in these peaks.This phenomenon, known as peak shaving, is evident in the MPC method where the highest current spikes are visibly lower than in the uncontrolled situation.Throughout 7-day period, the MPC consistently mitigates high consumption periods, leading to a smoother current profile with fewer extreme variations.This not only enhances system reliability and efficiency but also alleviates potential strain on electrical infrastructure.

37For a quantitative comparison, Table 8 illustrates the current demand over a week for both uncontrolled and MPC-controlled scenarios.For the uncontrolled case, the demand persists over the limit for 2820 minutes with a peak of 487 A. When utilizing MPC, the demand duration drops to 1030 minutes, marking a 63% reduction.Additionally, the peak demand decreases to 380 A, which is a 22% reduction from the uncontrolled peak.These substantial reductions emphasize the effectiveness of MPC in optimizing current demand over time, suggesting potential benefits in system efficiency, infrastructure longevity, and cost savings.

b: PHASE UNBALANCE

38From Figure 12, the distinction between the uncontrolled and MPC-controlled scenarios regarding the PUI is evident.The uncontrolled scenario displays greater volatility with pronounced spikes in PUI.In contrast, the MPC-controlled situation shows a more stable pattern with reduced PUI surges.Further insights from Table 8 reinforce this observation, where the mean PUI value for the uncontrolled case is 58%.With the implementation of MPC, there's a remarkable reduction, bringing the mean PUI value down to 19%.This translates to a significant 68% reduction in PUI, emphasizing the effectiveness of MPC in reducing current unbalance.

39Figure 13 offers a comparative view of the VUF between the uncontrolled and MPC-controlled scenarios.The VUF for the uncontrolled setting is more erratic and often hits the VUF standard limit (according to the International Electrotechincal Commission (IEC) [21]), indicating higher voltage unbalance.On the other hand, the MPC-controlled scenario remains consistently below this limit, signifying improved voltage balance.Table 8 provides numerical substantiation: the uncontrolled scenario's mean VUF value stands at 0.594%, which decreases to 0.329% under MPC.This results in a 45% reduction in the average VUF.Moreover, the maximum VUF value drops from 1.98% in the uncontrolled state to 1.07% with MPC, marking a 46% reduction.This data underscores the efficiency of MPC in mitigating voltage unbalance.

c: VOLTAGE DROP

40In Figure 14, the voltage variations over a week for both uncontrolled and MPC-controlled scenarios at bus_c4 are depicted.The uncontrolled setup demonstrates more pronounced voltage fluctuations with several significant dips reaching the minimum standard line (0.95 pu for LV grids according to the [21]), while the MPC-controlled scenario maintains a more consistent voltage closer to the standard value.Quantitatively, Table 8 indicates that the uncontrolled system experienced out-of-standard voltage drops for 4220 minutes with a minimum voltage of 0.897 pu.In comparison, the MPC-controlled setup reduced this to 3340 minutes and exhibited a higher minimum voltage of 0.913 pu.This translates to a 21% improvement in the duration of voltage drops with a minimum value of 0.913 pu using MPC control, underlining its efficiency in ensuring a more stable power system.

d: LOSSES

41The implementation of the MPC showcased a significant enhancement in system efficiency, as evidenced by the reduction in total active line losses as depicted in Table 8.Compared to the uncontrolled case, MPC led to a 20% decrease in losses, translating to 114 kWh saved over a week.Furthermore, when considering the environmental implications, this reduction represents a notable decrease in carbon footprint.Specifically, the energy savings equate to a reduction of 50 kgCO 2 emphasizing the dual benefits of improved system performance and environmental conservation achieved with the MPC.

IV. CONCLUSION AND PERSPECTIVES

42In this research paper, we developed an online grid-level MPC incorporating ML in its prediction mechanism, specifically designed for the efficient management of a large-scale charging infrastructure.This MPC was meticulously aimed at reducing the impacts of EV charging on the grid by notably reducing phase unbalance and overloading.Through numerous experiments, we fine-tuned the MPC parameters to reduce computation time and leveraging open-source tools like OpenDSS for grid modeling, TensorFlow for ML model development, and Pymoo for optimization in order to facilitate embedding of the whole control system.The prediction facet of the MPC underwent a rigorous comparison of various models, with the precision further enhanced by SSA.Impressively, the results of this MPC closely matched those of the offline/no forecast optimization presented in the prior work [15], for a simulation day experiencing the utmost phase unbalance.With respect to phase unbalance metrics, there was a decline in the PUI mean value by 71% and 69% under no forecast and MPC control scenarios respectively.The VUF mean value saw reductions of 27% and 22%, with peak values dropping by 58% and 53% for the two respective cases.Both setups managed to maintain peak demand within set bounds, and we observed enhancements in other grid impacts areas, including a voltage drop to 0.94 pu and 0.93 pu for no forecast and MPC scenarios respectively.Additionally, lines' losses decreased by 24% and 16% under no forecast and MPC control.Expanding the MPC assessment over a week-long simulation revealed even more profound results.The duration of peak demand shrunk by 63%, the PUI mean value was cut by 68%, the VUF mean value decreased by 45%, and the minimum voltage unbalance surged from 0.897 pu to 0.913 pu, with the overall duration of out-ofstandard drops being curtailed by 21%.Furthermore, a 20% reduction in lines' losses translated to a carbon footprint reduction of 50 kgCO2 in just a week.Advancing this work, we recommend integrating more objective functions into the MPC to capture operational costs and user satisfaction metrics, ensuring broader stakeholder (grid operators, EV charging operators, etc.) appeal.Incorporating REs into the mini-grid can introduce greater control flexibility, and there remains vast potential in refining prediction models via sophisticated signal processing techniques.

FIGURE 1 .

43FIGURE 1.General structure of the considered MPC.

FIGURE 2 .

44FIGURE 2. ENSTAB charging infrastructure.

FIGURE 3 .FIGURE

45FIGURE 3. EV charging time table from ACN data, only used CP are represented.

FIGURE 5 .

46FIGURE 5. Results of the total current prediction models.

FIGURE 6 .TABLE 5 .

47FIGURE 6. Number of sessions prediction results per bus.TABLE 5. Error metrics of different control horizon of the MPC.

FIGURE 7 .

48FIGURE 7. Total current consumption for different control horizon the MPC.

FIGURE 8 .

49FIGURE 8. Convergence plot of the used optimization algorithms for different timestamps.

FIGURE 9 .TABLE 7 .

50FIGURE 9. Currents consumption for different control cases: (a) Uncontrolled; (b) No forecast (offline); (c) MPC.

51Figure 10 illustrates voltage drop results for bus_ca4 over a day across three scenarios: Uncontrolled, No forecast (offline), and MPC.The uncontrolled situation displays pronounced voltage fluctuations, especially between 04:00 and 12:00.In contrast, both the no forecast and MPC methods

FIGURE 10 .

52FIGURE 10.Voltage drop results for each control case at bus_ca4: (a) Uncontrolled; (b) No forecast (offline); (c) MPC.

FIGURE 11 .

53FIGURE 11.Currents consumption for different cases for one-week: (a) Uncontrolled; (b) MPC.

FIGURE 12 .

54FIGURE 12. Power Unbalance Index (PUI) results for one-week.

FIGURE 13 .

55FIGURE 13.Voltage Unbalance Factor (VUF) results for one-week.

FIGURE 14 .

56FIGURE 14. Voltage drop results at bus_ca4 for one-week: (a) Uncontrolled; (b) MPC.

TABLE 1 .

57Literature review of MPC-based energy management system for EV charging infrastructures.

TABLE 2 .

58List of of the used optimization algorithms from Pymoo.

TABLE 3 .

59Models' fine-tuned architecture.

TABLE 4 .

60Accuracy measurements of the total current prediction models.

TABLE 6 .

61Computation time in minutes of the used optimization algorithm for different timestamps.

TABLE 8 .

62Results summary of one-week simulation for each control case.

참고문헌 18건

  1. Introduction to Model Predictive Control Advanced textbooks in control and signal processing · 2007 10.1007/978-0-85729-398-5_1
  2. A Computationally Efficient Evolutionary Algorithm for Real-Parameter Optimization Evolutionary Computation · The MIT Press · 2002 10.1162/106365602760972767
  3. A review of computer tools for modeling electric vehicle energy requirements and their impact on power distribution networks Applied Energy · Elsevier BV · 2016 10.1016/j.apenergy.2016.03.100
  4. Model predictive control power management strategies for HEVs: A review Journal of Power Sources · Elsevier BV · 2016 10.1016/j.jpowsour.2016.11.106
  5. Standing Still for a Bright Future. Current Molecular Medicine · Bentham Science Publishers · 2018 10.2174/1566524018666180611074856
  6. ACN-Data 2019 10.1145/3307772.3328313
  7. Demand-Side Management and Electric Vehicle Integration Advances in industrial control · Springer Nature · 2019 10.1007/978-3-030-24570-2_6
  8. Pymoo: Multi-Objective Optimization in Python IEEE Access · Institute of Electrical and Electronics Engineers · 2020 10.1109/access.2020.2990567
  9. MPC-based approach for online coordination of EVs Considering EV usage uncertainty International Journal of Electrical Power & Energy Systems · Elsevier BV · 2021 10.1016/j.ijepes.2021.106931
  10. Adaptive Charging Networks: A Framework for Smart Electric Vehicle Charging IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2021 10.1109/tsg.2021.3074437
  11. MPC-Based Decentralized Voltage Control in Power Distribution Systems With EV and PV Coordination IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2022 10.1109/tsg.2022.3156115
  12. Impact Analysis and Optimization of EV Charging Loads on the LV Grid: A Case Study of Workplace Parking in Tunisia Energies · Multidisciplinary Digital Publishing Institute · 2022 10.3390/en15197127
  13. Coordinated Planning of Electric Vehicle Charging Infrastructure and Renewables in Power Grids IEEE Open Access Journal of Power and Energy · Institute of Electrical and Electronics Engineers · 2023 10.1109/oajpe.2023.3245993
  14. Integrating model predictive control and deep learning for the management of an EV charging station Mathematics and Computers in Simulation · Elsevier BV · 2023 10.1016/j.matcom.2023.04.016
  15. Hybrid Machine Learning Forecasting for Online MPC of Work Place Electric Vehicle Charging IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2023 10.1109/tsg.2023.3296014
  16. Adaptive DMPC-Based Frequency and Voltage Control for Microgrid Deploying a Novel EV-Based Virtual Energy Router IEEE Transactions on Transportation Electrification · Institute of Electrical and Electronics Engineers · 2023 10.1109/tte.2023.3319109
  17. Synergistic Two-Stage Optimization for Multi-Objective Energy Management Strategy of Integrated Photovoltage-Storage Charging Stations 2023 10.2139/ssrn.4590195
  18. Optimization algorithm associated with local and coordinated controls of distributed energy resources to meet technical and economic criteria Electric Power Systems Research · Elsevier BV · 2023 10.1016/j.epsr.2023.109880