Grid-aware Scheduling and Control of Electric Vehicle Charging Stations for Dispatching Active Distribution Networks. Part-II: Intra-day and Experimental Validation (2024)

Rahul K. Gupta*{}^{*}start_FLOATSUPERSCRIPT * end_FLOATSUPERSCRIPT, Sherif Fahmy§§{}^{\lx@sectionsign}start_FLOATSUPERSCRIPT § end_FLOATSUPERSCRIPT, Max Chevron§§{}^{\lx@sectionsign}start_FLOATSUPERSCRIPT § end_FLOATSUPERSCRIPT, Enea Figini§§{}^{\lx@sectionsign}start_FLOATSUPERSCRIPT § end_FLOATSUPERSCRIPT, Mario Paolone§§{}^{\lx@sectionsign}start_FLOATSUPERSCRIPT § end_FLOATSUPERSCRIPT
This project has received funding in the framework of the joint programming initiative ERA-Net Smart Energy Systems’ focus initiatives Smart Grids Plus and Integrated, Regional Energy Systems, with support from the European Union’s Horizon 2020 research and innovation program under grant agreements No 646039 and 775970. (Corresponding author: Rahul K. Gupta.)*{}^{*}start_FLOATSUPERSCRIPT * end_FLOATSUPERSCRIPTSchool of Electrical and Computer Engineering, Georgia Institute of Technology, Atlanta, 30308, USA (e-mail: rahul.gupta@gatech.edu).§§{}^{\lx@sectionsign}start_FLOATSUPERSCRIPT § end_FLOATSUPERSCRIPTDistributed Electrical Systems Laboratory, École Polytechnique Fédérale de Lausanne, 1015 Lausanne, Switzerland (e-mail: {sherif.fahmy, max.chevron, enea.figini, mario.paolone}@epfl.ch).

Abstract

In Part-I, we presented an optimal day-ahead scheduling scheme for dispatching active distribution networks accounting for the flexibility provided by electric vehicle charging stations (EVCSs) and other controllable resources such as battery energy storage systems (BESSs). Part-II presents the intra-day control layer for tracking the dispatch plan computed from the day-ahead scheduling stage. The control problem is formulated as model predictive control (MPC) with an objective to track the dispatch plan setpoint every 5minutes, while actuated every 30seconds. MPC accounts for the uncertainty of the power injections from stochastic resources (such as demand and generation from photovoltaic – PV plants) by short-term forecasts. MPC also accounts for the grid’s operational constraints (i.e., the limits on the nodal voltages and the line power-flows) by a linearized optimal power flow (LOPF) model based on the power-flow sensitivity coefficients, and for the operational constraints of the controllable resources (i.e., BESSs and EVCSs). The proposed framework is experimentally validated on a real-life ADN at the EPFL’s Distributed Electrical Systems Laboratory and is composed of a medium voltage (MV) bus connected to three low voltage distribution networks. It hosts two controllable EVCSs (172kWp and 32kWp), multiple PV plants (aggregated generation of 42kWp), uncontrollable demand from office buildings (20kWp), and two controllable BESSs (150kW/300kWh and 25kW/25kWh).

Index Terms:

Real-time model predictive control, Electric Vehicle Charging Station, Linearized grid model, Dispatching.

I Introduction

I-A Background

Real-time control of Electric Vehicle Charging Stations (EVCSs) has been widely advocated for supporting power grid operations such as primary and secondary frequency control [1, 2], voltage support [3], three-phase demand and voltage balancing in [4, 5], bidirectional power/energy balancing in form of short-term storage via Vehicle to Grid (V2G) control [6, 7], etc.This work is interested in using EVCS flexibility for dispatching services which consist of tracking a pre-defined power schedule at the grid connection point (GCP) of an active distribution network (ADN).The advantages of such dispatching schemes refer to supporting the bulk transmission system power and energy imbalances at the local scale and solving local distribution grid operational issues [8, 9, 10].In particular, we refer to the Part-I paper, where a dispatching framework using EVCS flexibility was introduced and an optimal day-ahead scheduling scheme (to optimize a dispatch plan) was presented while accounting for the flexibility from EVCSs and other controllable resources such as battery energy storage system (BESS). However, due to uncertainty on the day-ahead generation and demand, it is necessary to have an intra-day real-time controller that can track the day-ahead schedule accurately, using flexible resources by regulating their power injections.In this context, the objective of this Part-II paper is to develop a real-time control algorithm for tracking dispatch plan at the ADN’s GCP by regulating power injections from EVCSs and BESSs. Aside from the dispatch tracking objective, the controller also maximizes EV user satisfaction while minimizing the battery wear of every EV and fairly allocating the power required to charge multiple EVs.

I-B Related Work

Different control formulations have been proposed in the literature for EVCS control. For example, in [11], an agent-based online optimization of EVCS operation was used for the grid congestion management. A heuristic controller was proposed in [12, 13] for efficient energy management, where the EVCS power was regulated using measurements of the power injection and the state-of-charge. In [14, 15], a lookup-table-based controller was deployed, in which the control setpoints follow a pre-scheduled profile. In [16, 17], a reinforcement learning-based data-driven controller was proposed. All these schemes did not incorporate any time-dependent constraints that due to the inherent energy storage characteristics of EVs must be considered in the control problem.Model predictive control (MPC)-based schemes are widely used for EVCS control [3, 18, 19, 20] to account for the time-dependent constraints of EV storage capacity. In [21], MPC was used for energy management of the EV demand with an objective to maximize EV user satisfaction. In [22, 23], MPC-based control was used for peak-shaving and load leveling. In this context, we formulate our real-time controller as an MPC problem with an objective to track the dispatch plan at each timestep (5minutes). The MPC is solved every 30seconds, accounting for the dispatch error that occurred during previous time steps, and eventually nullifying it by the end of the current 5-minutes dispatch horizon.

Furthermore, most of the existing literature on EVCS control is limited to numerical validation and lacks practical relevance with respect to real-life implementation. Very few works have performed extensive experimental real-life validation of the EVCS control due to the potential technical difficulties associated with it. In this context, this paper also performs an experimental validation of the proposed MPC-based control of EVCS on a real-life ADN. The experimental validation is performed for multiple continuous days to demonstrate that the EVCS flexibility can be reliably used for dispatching ADNs.

I-C Proposed work and contributions

In summary, the main goal of this paper is to develop and experimentally validate an MPC-based real-time control scheme that leverages flexibility from EVCS and other controllable resources to track a pre-defined power profile at the grid connection point (GCP) of an ADN. The pre-defined power profile is computed by day-ahead formulation discussed in Part-I paper. The key contributions are listed below.

  1. 1.

    We develop a real-time MPC for tracking the dispatch plan while accounting for the flexibility of EVCS and BESS and the uncertainty of the uncontrollable demand and generation. Compared to the MPC formulations in [24, 25], the proposed scheme models and accounts for the flexibility of EVCSs.

  2. 2.

    We experimentally validate the proposed RT-MPC on a real-life ADN hosting multiple controllable units (two EVCS and BESS) and uncontrollable demand and PV plants. We demonstrate the reliability and continuity of the proposed MPC scheme by carrying out the experiment for multiple consecutive days.

The structure of the paper is as follows. In SectionII, we report the problem statement. SectionIII describes the methods for the real-time MPC scheme. SectionIV reports the experimental validation of the proposed MPC scheme and finally, SectionV concludes the work.

II Problem Statement

We consider an ADN with a generic topology (meshed or radial) hosting several EVCSs and other heterogeneous distributed energy resources (DERs) such as BESS, uncontrollable photovoltaic (PV) plants, and demand. The objective is to track a pre-determined power schedule (the dispatch plan) at the GCP of the ADN using the flexibility from the EVCSs and BESS. We propose a real-time model predictive control (RT-MPC)-based approach, which accounts for the short-term forecast of the uncontrollable injections and models of the controllable resources and tracks the dispatch plan accurately at a user-defined timescale.The proposed scheme is experimentally validated on a real-life ADN interfaced with two EVCSs, two BESSs, loads, and multiple distributed PV generation plants. The RT-MPC consists of several building blocks. They are schematically shown in Fig.1 and described below.

Grid-aware Scheduling and Control of Electric Vehicle Charging Stations for Dispatching Active Distribution Networks. Part-II: Intra-day and Experimental Validation (1)
  • Short-term forecasting: provides predictions of the active and reactive power injections of the stochastic resources that are used in the real-time controller. These forecasts are updated every second for the MPC horizon. The scheme is described in Sec.III-A.

  • Real-time state estimator (RTSE): provides the most recent state of the grid (i.e., the nodal voltage and lines current phasors). These inputs are used in the RT-MPC and also in short-term forecasts. The RTSE is fed by a network of PMUs providing highly sampled voltage and line current measurements. The scheme is described in Sec.IV-B.

  • Real-time model predictive control: computes the optimal active and reactive power setpoints for the controllable resources (i.e., the EVCS and BESS). It solves a constrained optimization problem with the objective to track the day-ahead dispatch plan while satisfying the constraints of the grid and those of the controllable resources. It is described in Sec.III-B.

  • Actuation: it receives the computed setpoints from the RT-MPC layer, verifies its feasibility based on the nominal ratings of the converter, and sends it to the controllable resources for the actuation.

The link between each block is schematically shown in Fig.1. The grid and the weather measurements feed the RTSE, the forecaster, and the RT-MPC. Finally, RT-MPC sends the power setpoints to the actuation layer.

III Methods for Real-time Operation

The two important components of the real-time operation are the short-term forecasting of the stochastic resources and the real-time MPC problem. Each is described in the following subsections.

III-A Short-term forecasting

The short-term uncertainty of the uncontrollable power injections such as the demand and PV generation is modeled by dedicated forecasts. Although the forecasting methods described are not the focus of the presented work, we describe them here for the sake of completeness.

III-A1 Uncontrollable Demand

To generate demand forecasts, we rely on a two-step scheme. First, we use the day-ahead forecasts (as described in Sec.III-A-2, Part-I paper) for the current time step. The day-ahead forecast is up-sampled by linear interpolation from 5 minutes (day-ahead time sampling) to 30 seconds (real-time time sampling).In the second step, we use a persistent111The persistent forecast policy relies on real-time measurements available from PMUs. As these measurements are available almost in real-time, such a forecasting policy is capable to predict the immediate future demand with good accuracy. forecasting strategy, in which the first timestep of the forecast is replaced by the recent power measurements (using the grid states from RTSE). The active and reactive power forecasts are denoted by 𝐩^tloadsubscriptsuperscript^𝐩load𝑡\mathbf{\widehat{p}}^{\text{load}}_{t}over^ start_ARG bold_p end_ARG start_POSTSUPERSCRIPT load end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_t end_POSTSUBSCRIPT and 𝐪^tloadsubscriptsuperscript^𝐪load𝑡\mathbf{\widehat{q}}^{\text{load}}_{t}over^ start_ARG bold_q end_ARG start_POSTSUPERSCRIPT load end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_t end_POSTSUBSCRIPT, respectively.

III-A2 PV Generation

To generate the PV forecasts, we rely on the measurements of the Global Horizontal Irradiance (GHI) and air temperature integrated with the knowledge of the PV plants configuration. It uses a similar PV model [26] as described in Sec.III-A-3 of the Part-I paper.Furthermore, we use persistent forecasting (i.e., replacing the first timestep forecast by the measurement itself). The active and reactive power forecasts obtained are denoted by 𝐩^tpvsubscriptsuperscript^𝐩pv𝑡\mathbf{\widehat{p}}^{\text{pv}}_{t}over^ start_ARG bold_p end_ARG start_POSTSUPERSCRIPT pv end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_t end_POSTSUBSCRIPT and 𝐪^tpvsubscriptsuperscript^𝐪pv𝑡\mathbf{\widehat{q}}^{\text{pv}}_{t}over^ start_ARG bold_q end_ARG start_POSTSUPERSCRIPT pv end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_t end_POSTSUBSCRIPT, respectively.

III-A3 EV

forecast relies on the data input by EV consumers and the data sent by EVCS software [27]. For each charging session, the EV user provides the state-of-charge (SoC) at the arrival time, the expected stay duration, the preferred SoC target, and the capacity of the EV battery in power and energy. The EVCS software sends peak power capacity for each time step.For the MPC horizon, we use persistent forecasting with fast refresh-rate measurements and update the forecasts at each time step. The EV forecast consists of predictions on arrival time and the SoC target is defined later.

In the following, we describe how these forecasts are used within the RT-MPC problem.

III-B Real-time Model Predictive Control

The objective of the RT-MPC is to control the power setpoints of the controllable resources to track the day-ahead dispatch plan every 5 minutes for the whole day.Before, describing the problem formulation, we define the following notations.

  • The dispatch setpoint to track is sampled at 5-minute resolution222It is consistent with day-ahead electricity market time resolution. and is denoted by pydispsubscriptsuperscript𝑝𝑑𝑖𝑠𝑝𝑦p^{disp}_{y}italic_p start_POSTSUPERSCRIPT italic_d italic_i italic_s italic_p end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_y end_POSTSUBSCRIPT, where the 5-minutes indices are denoted by y=1,,N1𝑦1𝑁1y=1,\dots,N-1italic_y = 1 , … , italic_N - 1, N=288𝑁288N=288italic_N = 288 for 24 hours in a day.

  • The time resolution of the real-time control is 30-seconds; the index for real-time control is denoted by k=1,,2880𝑘12880k=1,\dots,2880italic_k = 1 , … , 2880 (i.e., 10 time indices per 5-minutes dispatch period).The first and the last 30-second333It is decided based on the time taken to solve RT-MPC problem and communication overheads. indices during the 5-minute interval are denoted, respectively, by k¯¯𝑘\underline{k}under¯ start_ARG italic_k end_ARG and k¯¯𝑘\bar{k}over¯ start_ARG italic_k end_ARG (i.e., k¯=k10×10¯𝑘𝑘1010\underline{k}={\lfloor{\frac{k}{10}}\rfloor}\times 10under¯ start_ARG italic_k end_ARG = ⌊ divide start_ARG italic_k end_ARG start_ARG 10 end_ARG ⌋ × 10 and k¯=k¯+101¯𝑘¯𝑘101\bar{k}=\underline{k}+10-1over¯ start_ARG italic_k end_ARG = under¯ start_ARG italic_k end_ARG + 10 - 1).

  • The dispatch setpoint to be tracked at any time index k𝑘kitalic_k is

    p¯kdisp=pk10disp,subscriptsuperscript¯𝑝𝑑𝑖𝑠𝑝𝑘subscriptsuperscript𝑝𝑑𝑖𝑠𝑝𝑘10\displaystyle\bar{p}^{disp}_{k}=p^{disp}_{\lfloor{\frac{k}{10}}\rfloor},over¯ start_ARG italic_p end_ARG start_POSTSUPERSCRIPT italic_d italic_i italic_s italic_p end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT = italic_p start_POSTSUPERSCRIPT italic_d italic_i italic_s italic_p end_POSTSUPERSCRIPT start_POSTSUBSCRIPT ⌊ divide start_ARG italic_k end_ARG start_ARG 10 end_ARG ⌋ end_POSTSUBSCRIPT ,(1)

    where .\lfloor{.}\rfloor⌊ . ⌋ refers to the floor function.

  • The power measurements at the GCP, denoted by p0,kmeassuperscriptsubscript𝑝0𝑘𝑚𝑒𝑎𝑠p_{0,k}^{meas}italic_p start_POSTSUBSCRIPT 0 , italic_k end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_m italic_e italic_a italic_s end_POSTSUPERSCRIPT, are obtained andthe dispatch-energy error at time k𝑘kitalic_k is computed by summing up the (i) uncovered-energy errors from time index k¯¯𝑘\underline{k}under¯ start_ARG italic_k end_ARG to k1𝑘1k-1italic_k - 1,

    ϵ^k=30(k+1k¯)3600j=k¯k1(p¯jdispp0,jmeas)subscript^italic-ϵ𝑘30𝑘1¯𝑘3600superscriptsubscript𝑗¯𝑘𝑘1subscriptsuperscript¯𝑝𝑑𝑖𝑠𝑝𝑗subscriptsuperscript𝑝𝑚𝑒𝑎𝑠0𝑗\displaystyle\hat{\epsilon}_{k}=\frac{30(k+1-\underline{k})}{3600}\sum_{j=%\underline{k}}^{k-1}(\bar{p}^{disp}_{j}-{p}^{meas}_{0,j})over^ start_ARG italic_ϵ end_ARG start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT = divide start_ARG 30 ( italic_k + 1 - under¯ start_ARG italic_k end_ARG ) end_ARG start_ARG 3600 end_ARG ∑ start_POSTSUBSCRIPT italic_j = under¯ start_ARG italic_k end_ARG end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_k - 1 end_POSTSUPERSCRIPT ( over¯ start_ARG italic_p end_ARG start_POSTSUPERSCRIPT italic_d italic_i italic_s italic_p end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT - italic_p start_POSTSUPERSCRIPT italic_m italic_e italic_a italic_s end_POSTSUPERSCRIPT start_POSTSUBSCRIPT 0 , italic_j end_POSTSUBSCRIPT )(2)

    and(ii) the anticipated error from k𝑘kitalic_k to k¯¯𝑘\bar{k}over¯ start_ARG italic_k end_ARG given as

    ϵk=30(k¯k)3600j=kk¯(p¯jdispp0,j).subscriptitalic-ϵ𝑘30¯𝑘𝑘3600superscriptsubscript𝑗𝑘¯𝑘subscriptsuperscript¯𝑝𝑑𝑖𝑠𝑝𝑗subscript𝑝0𝑗\displaystyle\epsilon_{k}=\frac{30(\bar{k}-k)}{3600}\sum_{j=k}^{\bar{k}}(\bar{%p}^{disp}_{j}-{p}_{0,j}).italic_ϵ start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT = divide start_ARG 30 ( over¯ start_ARG italic_k end_ARG - italic_k ) end_ARG start_ARG 3600 end_ARG ∑ start_POSTSUBSCRIPT italic_j = italic_k end_POSTSUBSCRIPT start_POSTSUPERSCRIPT over¯ start_ARG italic_k end_ARG end_POSTSUPERSCRIPT ( over¯ start_ARG italic_p end_ARG start_POSTSUPERSCRIPT italic_d italic_i italic_s italic_p end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT - italic_p start_POSTSUBSCRIPT 0 , italic_j end_POSTSUBSCRIPT ) .(3)

    Both energy-related errors ϵksubscriptitalic-ϵ𝑘\epsilon_{k}italic_ϵ start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT and ϵ^ksubscript^italic-ϵ𝑘\hat{\epsilon}_{k}over^ start_ARG italic_ϵ end_ARG start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT are schematically shown in Fig.2.The implemented power at the GCP shown in light green color differs from the dispatch setpoint (shown in grey color) due to the inherent nature of uncertainty on the demand and generation, which is quantified by ϵ^ksubscript^italic-ϵ𝑘\hat{\epsilon}_{k}over^ start_ARG italic_ϵ end_ARG start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT in (2) to be compensated in the left-over MPC horizon period. A schematic representation of the timeahead setpoints computed by the MPC (until the end of the MPC horizon) is shown in red and expressed using decision variables by ϵksubscriptitalic-ϵ𝑘\epsilon_{k}italic_ϵ start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT in (3). MPC optimizes EVCS and BESS setpoints and indirectly optimizes GCP power p0,jsubscript𝑝0𝑗p_{0,j}italic_p start_POSTSUBSCRIPT 0 , italic_j end_POSTSUBSCRIPT such that the sum ϵk+ϵ^ksubscriptitalic-ϵ𝑘subscript^italic-ϵ𝑘\epsilon_{k}+\hat{\epsilon}_{k}italic_ϵ start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT + over^ start_ARG italic_ϵ end_ARG start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT tend to reduce to zero by the end of the MPC horizon period.

Grid-aware Scheduling and Control of Electric Vehicle Charging Stations for Dispatching Active Distribution Networks. Part-II: Intra-day and Experimental Validation (2)

The grid objective at a time index k𝑘kitalic_k can be defined as minimizing the energy error incurred over a 5-minute horizon length with power setpoints actuated every 30seconds (i.e, the dispatch energy error incurred at the GCP from current timestep to the end of the 5 min period).

fkdisp=ϵk+ϵ^ksubscriptsuperscript𝑓𝑑𝑖𝑠𝑝𝑘subscriptitalic-ϵ𝑘subscript^italic-ϵ𝑘\displaystyle f^{disp}_{k}=\epsilon_{k}+\hat{\epsilon}_{k}italic_f start_POSTSUPERSCRIPT italic_d italic_i italic_s italic_p end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT = italic_ϵ start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT + over^ start_ARG italic_ϵ end_ARG start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT(4)

The MPC problem considers the constraints of the grid and that of the controllable resources. In the following subsections, we describe the grid constraints and controllable resource models.

III-B1 Grid constraints

Similar to the day-ahead stage (Part-I), the grid constraints modeled by a linearized power flow grid model. They are given below.

𝐯¯𝐀k𝐯[𝐩k𝐪k]+𝐛k𝐯𝐯¯¯𝐯superscriptsubscript𝐀𝑘𝐯matrixsubscript𝐩𝑘subscript𝐪𝑘superscriptsubscript𝐛𝑘𝐯¯𝐯\displaystyle\underline{\mathbf{v}}\leq\mathbf{A}_{k}^{\mathbf{v}}\begin{%bmatrix}\mathbf{p}_{k}\\\mathbf{q}_{k}\end{bmatrix}+\mathbf{b}_{k}^{\mathbf{v}}\leq\bar{\mathbf{v}}under¯ start_ARG bold_v end_ARG ≤ bold_A start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT start_POSTSUPERSCRIPT bold_v end_POSTSUPERSCRIPT [ start_ARG start_ROW start_CELL bold_p start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT end_CELL end_ROW start_ROW start_CELL bold_q start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT end_CELL end_ROW end_ARG ] + bold_b start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT start_POSTSUPERSCRIPT bold_v end_POSTSUPERSCRIPT ≤ over¯ start_ARG bold_v end_ARG(5c)
𝟎𝐀k𝐢[𝐩k𝐪k]+𝐛k𝐢𝐢¯0superscriptsubscript𝐀𝑘𝐢matrixsubscript𝐩𝑘subscript𝐪𝑘superscriptsubscript𝐛𝑘𝐢¯𝐢\displaystyle\mathbf{0}\leq\mathbf{A}_{k}^{\mathbf{i}}\begin{bmatrix}\mathbf{p%}_{k}\\\mathbf{q}_{k}\end{bmatrix}+\mathbf{b}_{k}^{\mathbf{i}}\leq\bar{\mathbf{i}}bold_0 ≤ bold_A start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT start_POSTSUPERSCRIPT bold_i end_POSTSUPERSCRIPT [ start_ARG start_ROW start_CELL bold_p start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT end_CELL end_ROW start_ROW start_CELL bold_q start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT end_CELL end_ROW end_ARG ] + bold_b start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT start_POSTSUPERSCRIPT bold_i end_POSTSUPERSCRIPT ≤ over¯ start_ARG bold_i end_ARG(5f)
[p0,kq0,k]=𝐀k0[𝐩k𝐪k]+𝐛k0;(p0,k)2+(q0,k)2Smax2.formulae-sequencematrixsubscript𝑝0𝑘subscript𝑞0𝑘superscriptsubscript𝐀𝑘0matrixsubscript𝐩𝑘subscript𝐪𝑘superscriptsubscript𝐛𝑘0superscriptsubscript𝑝0𝑘2superscriptsubscript𝑞0𝑘2superscriptsubscript𝑆max2\displaystyle\begin{bmatrix}p_{0,k}\\q_{0,k}\end{bmatrix}=\mathbf{A}_{k}^{0}\begin{bmatrix}\mathbf{p}_{k}\\\mathbf{q}_{k}\end{bmatrix}+\mathbf{b}_{k}^{0};~{}(p_{0,k})^{2}+(q_{0,k})^{2}%\leq S_{\text{max}}^{2}.[ start_ARG start_ROW start_CELL italic_p start_POSTSUBSCRIPT 0 , italic_k end_POSTSUBSCRIPT end_CELL end_ROW start_ROW start_CELL italic_q start_POSTSUBSCRIPT 0 , italic_k end_POSTSUBSCRIPT end_CELL end_ROW end_ARG ] = bold_A start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 0 end_POSTSUPERSCRIPT [ start_ARG start_ROW start_CELL bold_p start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT end_CELL end_ROW start_ROW start_CELL bold_q start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT end_CELL end_ROW end_ARG ] + bold_b start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 0 end_POSTSUPERSCRIPT ; ( italic_p start_POSTSUBSCRIPT 0 , italic_k end_POSTSUBSCRIPT ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT + ( italic_q start_POSTSUBSCRIPT 0 , italic_k end_POSTSUBSCRIPT ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ≤ italic_S start_POSTSUBSCRIPT max end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT .(5k)
Eq. (5c) constrains the nodal voltages (𝐯(nb1)𝐯superscriptsubscript𝑛𝑏1\mathbf{v}\in\mathds{R}^{(n_{b}-1)}bold_v ∈ blackboard_R start_POSTSUPERSCRIPT ( italic_n start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT - 1 ) end_POSTSUPERSCRIPT, nbsubscript𝑛𝑏n_{b}italic_n start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT being number of nodes in the grid), by bounding them to upper and lower limits [𝐯¯𝐯¯]delimited-[]¯𝐯¯𝐯[\underline{\mathbf{v}}~{}\bar{\mathbf{v}}][ under¯ start_ARG bold_v end_ARG over¯ start_ARG bold_v end_ARG ]. Eq.(5f) expresses the lines current magnitudes (𝐢nl𝐢superscriptsubscript𝑛𝑙\mathbf{i}\in\mathds{R}^{n_{l}}bold_i ∈ blackboard_R start_POSTSUPERSCRIPT italic_n start_POSTSUBSCRIPT italic_l end_POSTSUBSCRIPT end_POSTSUPERSCRIPT, nlsubscript𝑛𝑙n_{l}italic_n start_POSTSUBSCRIPT italic_l end_POSTSUBSCRIPT being the number of lines) and bounds them to their respective ampacities 𝐢¯¯𝐢\bar{\mathbf{i}}over¯ start_ARG bold_i end_ARG. Eq.5k expresses the GCP power and bounds it to the transformer capacity Smaxsubscript𝑆maxS_{\text{max}}italic_S start_POSTSUBSCRIPT max end_POSTSUBSCRIPT.Note that 𝐩(nb1)𝐩superscriptsubscript𝑛𝑏1\mathbf{p}\in\mathds{R}^{(n_{b}-1)}bold_p ∈ blackboard_R start_POSTSUPERSCRIPT ( italic_n start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT - 1 ) end_POSTSUPERSCRIPT and 𝐪(nb1)𝐪superscriptsubscript𝑛𝑏1\mathbf{q}\in\mathds{R}^{(n_{b}-1)}bold_q ∈ blackboard_R start_POSTSUPERSCRIPT ( italic_n start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT - 1 ) end_POSTSUPERSCRIPT are the three-phase total nodal active and reactive controllable injections for all nodes except the slack node. 𝐀𝐯(nb1)×2(nb1)superscript𝐀𝐯superscriptsubscript𝑛𝑏12subscript𝑛𝑏1\mathbf{A}^{\mathbf{v}}\in\mathds{R}^{(n_{b}-1)\times 2(n_{b}-1)}bold_A start_POSTSUPERSCRIPT bold_v end_POSTSUPERSCRIPT ∈ blackboard_R start_POSTSUPERSCRIPT ( italic_n start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT - 1 ) × 2 ( italic_n start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT - 1 ) end_POSTSUPERSCRIPT and 𝐛𝐯(nb1)superscript𝐛𝐯superscriptsubscript𝑛𝑏1\mathbf{b}^{\mathbf{v}}\in\mathds{R}^{(n_{b}-1)}bold_b start_POSTSUPERSCRIPT bold_v end_POSTSUPERSCRIPT ∈ blackboard_R start_POSTSUPERSCRIPT ( italic_n start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT - 1 ) end_POSTSUPERSCRIPT, 𝐀𝐢nl×2(nb1)superscript𝐀𝐢superscriptsubscript𝑛𝑙2subscript𝑛𝑏1\mathbf{A}^{\mathbf{i}}\in\mathds{R}^{n_{l}\times 2(n_{b}-1)}bold_A start_POSTSUPERSCRIPT bold_i end_POSTSUPERSCRIPT ∈ blackboard_R start_POSTSUPERSCRIPT italic_n start_POSTSUBSCRIPT italic_l end_POSTSUBSCRIPT × 2 ( italic_n start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT - 1 ) end_POSTSUPERSCRIPT and 𝐛𝐢nlsuperscript𝐛𝐢superscriptsubscript𝑛𝑙\mathbf{b}^{\mathbf{i}}\in\mathds{R}^{n_{l}}bold_b start_POSTSUPERSCRIPT bold_i end_POSTSUPERSCRIPT ∈ blackboard_R start_POSTSUPERSCRIPT italic_n start_POSTSUBSCRIPT italic_l end_POSTSUBSCRIPT end_POSTSUPERSCRIPT are the coefficients derived from the voltage magnitude sensitivity coefficients and operating point (as described in [28]), 𝐀02×2(nb1)superscript𝐀0superscript22subscript𝑛𝑏1\mathbf{A}^{0}\in\mathds{R}^{2\times 2(n_{b}-1)}bold_A start_POSTSUPERSCRIPT 0 end_POSTSUPERSCRIPT ∈ blackboard_R start_POSTSUPERSCRIPT 2 × 2 ( italic_n start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT - 1 ) end_POSTSUPERSCRIPT and 𝐛02superscript𝐛0superscript2\mathbf{b}^{0}\in\mathds{R}^{2}bold_b start_POSTSUPERSCRIPT 0 end_POSTSUPERSCRIPT ∈ blackboard_R start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT being the coefficients corresponding to the GCP power.The power injections in (III-B1) consist of controllable and uncontrollable powers at the nodes for time index k𝑘kitalic_k containing the contributions of all the resources. It is worth noting that it may contain several resources per node as well. It is given as
𝐩k=𝐩^kload𝐩^kpv+𝐩kevcs+𝐩kbesssubscript𝐩𝑘subscriptsuperscript^𝐩load𝑘subscriptsuperscript^𝐩pv𝑘subscriptsuperscript𝐩evcs𝑘subscriptsuperscript𝐩bess𝑘\displaystyle\mathbf{p}_{k}=\mathbf{\widehat{p}}^{\text{load}}_{k}-\mathbf{%\widehat{p}}^{\text{pv}}_{k}+\mathbf{p}^{\text{evcs}}_{k}+\mathbf{p}^{\text{%bess}}_{k}bold_p start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT = over^ start_ARG bold_p end_ARG start_POSTSUPERSCRIPT load end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT - over^ start_ARG bold_p end_ARG start_POSTSUPERSCRIPT pv end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT + bold_p start_POSTSUPERSCRIPT evcs end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT + bold_p start_POSTSUPERSCRIPT bess end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT(5l)
𝐪k=𝐪^kload𝐪^kpv+𝐪kevcs+𝐪kbesssubscript𝐪𝑘subscriptsuperscript^𝐪load𝑘subscriptsuperscript^𝐪pv𝑘subscriptsuperscript𝐪evcs𝑘subscriptsuperscript𝐪bess𝑘\displaystyle\mathbf{q}_{k}=\mathbf{\widehat{q}}^{\text{load}}_{k}-\mathbf{%\widehat{q}}^{\text{pv}}_{k}+\mathbf{q}^{\text{evcs}}_{k}+\mathbf{q}^{\text{%bess}}_{k}bold_q start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT = over^ start_ARG bold_q end_ARG start_POSTSUPERSCRIPT load end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT - over^ start_ARG bold_q end_ARG start_POSTSUPERSCRIPT pv end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT + bold_q start_POSTSUPERSCRIPT evcs end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT + bold_q start_POSTSUPERSCRIPT bess end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT(5m)

where 𝐩^kload/𝐪^kloadsubscriptsuperscript^𝐩load𝑘subscriptsuperscript^𝐪load𝑘\mathbf{\widehat{p}}^{\text{load}}_{k}/\mathbf{\widehat{q}}^{\text{load}}_{k}over^ start_ARG bold_p end_ARG start_POSTSUPERSCRIPT load end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT / over^ start_ARG bold_q end_ARG start_POSTSUPERSCRIPT load end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT, 𝐩^kpv/𝐪^kpvsubscriptsuperscript^𝐩pv𝑘subscriptsuperscript^𝐪pv𝑘\mathbf{\widehat{p}}^{\text{pv}}_{k}/\mathbf{\widehat{q}}^{\text{pv}}_{k}over^ start_ARG bold_p end_ARG start_POSTSUPERSCRIPT pv end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT / over^ start_ARG bold_q end_ARG start_POSTSUPERSCRIPT pv end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT, 𝐩kbess/𝐪kbesssubscriptsuperscript𝐩bess𝑘subscriptsuperscript𝐪bess𝑘\mathbf{p}^{\text{bess}}_{k}/\mathbf{q}^{\text{bess}}_{k}bold_p start_POSTSUPERSCRIPT bess end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT / bold_q start_POSTSUPERSCRIPT bess end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT and 𝐩kevcs/𝐪kevcssubscriptsuperscript𝐩evcs𝑘subscriptsuperscript𝐪evcs𝑘\mathbf{p}^{\text{evcs}}_{k}/\mathbf{q}^{\text{evcs}}_{k}bold_p start_POSTSUPERSCRIPT evcs end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT / bold_q start_POSTSUPERSCRIPT evcs end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT are the nodal active/reactive power injections corresponding to load, PV generation, BESS and EVCS, respectively.

III-B2 EVCS objectives and constraints

Let the EVCS be located at indices i𝒩ev𝑖superscript𝒩𝑒𝑣i\in\mathcal{N}^{ev}italic_i ∈ caligraphic_N start_POSTSUPERSCRIPT italic_e italic_v end_POSTSUPERSCRIPT where 𝒩evsuperscript𝒩𝑒𝑣\mathcal{N}^{ev}caligraphic_N start_POSTSUPERSCRIPT italic_e italic_v end_POSTSUPERSCRIPT denotes the set of node indices where EVCSs are installed. Let each EVCS has multiple charging plugs indexed by l=1,,Li𝑙1subscript𝐿𝑖l=1,\dots,L_{i}italic_l = 1 , … , italic_L start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT.Similar to the day-ahead formulation, the EVCS cost function has multiple objectives: the first term minimizes the worst-case difference between the SoC target and SoC that can be achieved at the end of the MPC horizon, the second term minimizes the EV battery wearing between subsequent time-steps [29] (i.e., |pk+1,l,ievcspk,l,ievcs|superscriptsubscript𝑝𝑘1𝑙𝑖evcssuperscriptsubscript𝑝𝑘𝑙𝑖evcs\left|p_{k+1,l,i}^{\text{evcs}}-p_{k,l,i}^{\text{evcs}}\right|| italic_p start_POSTSUBSCRIPT italic_k + 1 , italic_l , italic_i end_POSTSUBSCRIPT start_POSTSUPERSCRIPT evcs end_POSTSUPERSCRIPT - italic_p start_POSTSUBSCRIPT italic_k , italic_l , italic_i end_POSTSUBSCRIPT start_POSTSUPERSCRIPT evcs end_POSTSUPERSCRIPT |, where pk,l,ievcssuperscriptsubscript𝑝𝑘𝑙𝑖evcsp_{k,l,i}^{\text{evcs}}italic_p start_POSTSUBSCRIPT italic_k , italic_l , italic_i end_POSTSUBSCRIPT start_POSTSUPERSCRIPT evcs end_POSTSUPERSCRIPT is the power demand at indices k,l,i𝑘𝑙𝑖k,l,iitalic_k , italic_l , italic_i).The EVCS objective at time index k𝑘kitalic_k is given by

fkevcs=3600(δt)Lii𝒩evl=1Limax{(SoCl,i,k¯TargetSoCl,i,k¯evcs),0}+1(k¯k)Lii𝒩evl=1Lik=k+1k¯|pk+1,l,ievcspk,l,ievcs|subscriptsuperscript𝑓𝑒𝑣𝑐𝑠𝑘absentlimit-from3600𝛿𝑡subscript𝐿𝑖subscript𝑖superscript𝒩𝑒𝑣superscriptsubscript𝑙1subscript𝐿𝑖subscriptsuperscriptSoCTarget𝑙𝑖¯𝑘subscriptsuperscriptSoCevcs𝑙𝑖¯𝑘0missing-subexpression1¯𝑘𝑘subscript𝐿𝑖subscript𝑖superscript𝒩𝑒𝑣superscriptsubscript𝑙1subscript𝐿𝑖superscriptsubscript𝑘𝑘1¯𝑘superscriptsubscript𝑝𝑘1𝑙𝑖evcssuperscriptsubscript𝑝𝑘𝑙𝑖evcs\displaystyle\begin{aligned} f^{evcs}_{k}=&\frac{3600}{(\delta{t})L_{i}}\sum_{%i\in\mathcal{N}^{ev}}\sum\limits_{l=1}^{L_{i}}{\max\left\{{\Big{(}\text{SoC}^{%\text{Target}}_{l,i,\bar{k}}}-\text{SoC}^{\text{evcs}}_{l,i,\bar{k}}\Big{)},0%\right\}}+\\&\frac{1}{(\bar{k}-k)L_{i}}\sum_{i\in\mathcal{N}^{ev}}\sum\limits_{l=1}^{L_{i}%}\sum\limits_{k=k+1}^{\bar{k}}\left|p_{k+1,l,i}^{\text{evcs}}-p_{k,l,i}^{\text%{evcs}}\right|\end{aligned}start_ROW start_CELL italic_f start_POSTSUPERSCRIPT italic_e italic_v italic_c italic_s end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT = end_CELL start_CELL divide start_ARG 3600 end_ARG start_ARG ( italic_δ italic_t ) italic_L start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_ARG ∑ start_POSTSUBSCRIPT italic_i ∈ caligraphic_N start_POSTSUPERSCRIPT italic_e italic_v end_POSTSUPERSCRIPT end_POSTSUBSCRIPT ∑ start_POSTSUBSCRIPT italic_l = 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_L start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_POSTSUPERSCRIPT roman_max { ( SoC start_POSTSUPERSCRIPT Target end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_l , italic_i , over¯ start_ARG italic_k end_ARG end_POSTSUBSCRIPT - SoC start_POSTSUPERSCRIPT evcs end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_l , italic_i , over¯ start_ARG italic_k end_ARG end_POSTSUBSCRIPT ) , 0 } + end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL divide start_ARG 1 end_ARG start_ARG ( over¯ start_ARG italic_k end_ARG - italic_k ) italic_L start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_ARG ∑ start_POSTSUBSCRIPT italic_i ∈ caligraphic_N start_POSTSUPERSCRIPT italic_e italic_v end_POSTSUPERSCRIPT end_POSTSUBSCRIPT ∑ start_POSTSUBSCRIPT italic_l = 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_L start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_POSTSUPERSCRIPT ∑ start_POSTSUBSCRIPT italic_k = italic_k + 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT over¯ start_ARG italic_k end_ARG end_POSTSUPERSCRIPT | italic_p start_POSTSUBSCRIPT italic_k + 1 , italic_l , italic_i end_POSTSUBSCRIPT start_POSTSUPERSCRIPT evcs end_POSTSUPERSCRIPT - italic_p start_POSTSUBSCRIPT italic_k , italic_l , italic_i end_POSTSUBSCRIPT start_POSTSUPERSCRIPT evcs end_POSTSUPERSCRIPT | end_CELL end_ROW(6)

where δt𝛿𝑡\delta titalic_δ italic_t is the sampling time (i.e., 30sec).

Since the RT-MPC is solved with short MPC horizon of 5minutes, the SoC target needs to be updated for the end of 5minutes.This is done by interpolation using the current SoC, target SoC, and departure time. SoC target time index k𝑘kitalic_k is given by

SoCl,i,k¯Target=SoCl,i,k1evcs, meas+(SoCl,iTargetSoCl,i,k1evcs, meas)k¯kkfksubscriptsuperscriptSoCTarget𝑙𝑖¯𝑘subscriptsuperscriptSoCevcs, meas𝑙𝑖𝑘1subscriptsuperscriptSoCTarget𝑙𝑖subscriptsuperscriptSoCevcs, meas𝑙𝑖𝑘1¯𝑘𝑘subscript𝑘𝑓𝑘\displaystyle\text{SoC}^{\text{Target}}_{l,i,\bar{k}}=\text{SoC}^{\text{evcs, %meas}}_{l,i,k-1}+(\text{SoC}^{\text{Target}}_{l,i}-\text{SoC}^{\text{evcs, %meas}}_{l,i,k-1})\frac{\bar{k}-k}{k_{f}-k}SoC start_POSTSUPERSCRIPT Target end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_l , italic_i , over¯ start_ARG italic_k end_ARG end_POSTSUBSCRIPT = SoC start_POSTSUPERSCRIPT evcs, meas end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_l , italic_i , italic_k - 1 end_POSTSUBSCRIPT + ( SoC start_POSTSUPERSCRIPT Target end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_l , italic_i end_POSTSUBSCRIPT - SoC start_POSTSUPERSCRIPT evcs, meas end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_l , italic_i , italic_k - 1 end_POSTSUBSCRIPT ) divide start_ARG over¯ start_ARG italic_k end_ARG - italic_k end_ARG start_ARG italic_k start_POSTSUBSCRIPT italic_f end_POSTSUBSCRIPT - italic_k end_ARG(7)

where SoCl,i,k1evcs, meassubscriptsuperscriptSoCevcs, meas𝑙𝑖𝑘1\text{SoC}^{\text{evcs, meas}}_{l,i,k-1}SoC start_POSTSUPERSCRIPT evcs, meas end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_l , italic_i , italic_k - 1 end_POSTSUBSCRIPT is the measured SoC at time index k1𝑘1k-1italic_k - 1, SoCl,i,k¯TargetsubscriptsuperscriptSoCTarget𝑙𝑖¯𝑘\text{SoC}^{\text{Target}}_{l,i,\bar{k}}SoC start_POSTSUPERSCRIPT Target end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_l , italic_i , over¯ start_ARG italic_k end_ARG end_POSTSUBSCRIPT the target SoC for time index k𝑘kitalic_k, llimit-from𝑙l-italic_l -th plug, ilimit-from𝑖i-italic_i -th EVCS and the departure time index kfsubscript𝑘𝑓k_{f}italic_k start_POSTSUBSCRIPT italic_f end_POSTSUBSCRIPT.

The EVCS constraints consist in limiting on the EV state-of-charge (SoCkevcssubscriptsuperscriptSoCevcs𝑘\text{SoC}^{\text{evcs}}_{k}SoC start_POSTSUPERSCRIPT evcs end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT) and are expressed as

0SoCk,l,ievcs=SoCk1,l,ievcspk,l,ievcs(δt)El,imax10subscriptsuperscriptSoCevcs𝑘𝑙𝑖subscriptsuperscriptSoCevcs𝑘1𝑙𝑖superscriptsubscript𝑝𝑘𝑙𝑖evcs𝛿𝑡superscriptsubscript𝐸𝑙𝑖max1\displaystyle 0\leq\text{SoC}^{\text{evcs}}_{k,l,i}=\text{SoC}^{\text{evcs}}_{%k-1,l,i}-\frac{p_{k,l,i}^{\text{evcs}}(\delta t)}{E_{l,i}^{\text{max}}}\leq 10 ≤ SoC start_POSTSUPERSCRIPT evcs end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k , italic_l , italic_i end_POSTSUBSCRIPT = SoC start_POSTSUPERSCRIPT evcs end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k - 1 , italic_l , italic_i end_POSTSUBSCRIPT - divide start_ARG italic_p start_POSTSUBSCRIPT italic_k , italic_l , italic_i end_POSTSUBSCRIPT start_POSTSUPERSCRIPT evcs end_POSTSUPERSCRIPT ( italic_δ italic_t ) end_ARG start_ARG italic_E start_POSTSUBSCRIPT italic_l , italic_i end_POSTSUBSCRIPT start_POSTSUPERSCRIPT max end_POSTSUPERSCRIPT end_ARG ≤ 1(8a)
where El,imaxsuperscriptsubscript𝐸𝑙𝑖max{E_{l,i}^{\text{max}}}italic_E start_POSTSUBSCRIPT italic_l , italic_i end_POSTSUBSCRIPT start_POSTSUPERSCRIPT max end_POSTSUPERSCRIPT is the energy capacity for EV connected to plug l𝑙litalic_l and node i𝑖iitalic_i.Another constraint limits the EVCS active power by the charger’s minimum and maximum admissible444The minimum and maximum admissible setpoint per plug is sent by the charger to the MPC controller. setpoint given by pk,l,ievcs,minsubscriptsuperscript𝑝evcsmin𝑘𝑙𝑖p^{\text{evcs},\text{min}}_{k,l,i}italic_p start_POSTSUPERSCRIPT evcs , min end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k , italic_l , italic_i end_POSTSUBSCRIPT and pk,l,ievcs,maxsubscriptsuperscript𝑝evcsmax𝑘𝑙𝑖p^{\text{evcs},\text{max}}_{k,l,i}italic_p start_POSTSUPERSCRIPT evcs , max end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k , italic_l , italic_i end_POSTSUBSCRIPT, respectively.
μk,l,ipk,l,ievcs,minpk,l,ievcsμk,l,ipk,l,ievcs,maxsubscript𝜇𝑘𝑙𝑖subscriptsuperscript𝑝evcsmin𝑘𝑙𝑖superscriptsubscript𝑝𝑘𝑙𝑖evcssubscript𝜇𝑘𝑙𝑖subscriptsuperscript𝑝evcsmax𝑘𝑙𝑖\displaystyle\mu_{k,l,i}~{}p^{\text{evcs},\text{min}}_{k,l,i}\leq p_{k,l,i}^{%\text{evcs}}\leq\mu_{k,l,i}~{}p^{\text{evcs},\text{max}}_{k,l,i}italic_μ start_POSTSUBSCRIPT italic_k , italic_l , italic_i end_POSTSUBSCRIPT italic_p start_POSTSUPERSCRIPT evcs , min end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k , italic_l , italic_i end_POSTSUBSCRIPT ≤ italic_p start_POSTSUBSCRIPT italic_k , italic_l , italic_i end_POSTSUBSCRIPT start_POSTSUPERSCRIPT evcs end_POSTSUPERSCRIPT ≤ italic_μ start_POSTSUBSCRIPT italic_k , italic_l , italic_i end_POSTSUBSCRIPT italic_p start_POSTSUPERSCRIPT evcs , max end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k , italic_l , italic_i end_POSTSUBSCRIPT(8b)

where μk,l,isubscript𝜇𝑘𝑙𝑖\mu_{k,l,i}italic_μ start_POSTSUBSCRIPT italic_k , italic_l , italic_i end_POSTSUBSCRIPT is a known boolean expressing whether, or not, an EV is connected to plug l=1,,Li𝑙1subscript𝐿𝑖l=1,...,L_{i}italic_l = 1 , … , italic_L start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT. The reactive power from the EVCS is uncontrollable and null (i.e., qk,l,ievcs=0,k,l,isuperscriptsubscript𝑞𝑘𝑙𝑖evcs0for-all𝑘𝑙𝑖q_{k,l,i}^{\text{evcs}}=0,\forall k,l,iitalic_q start_POSTSUBSCRIPT italic_k , italic_l , italic_i end_POSTSUBSCRIPT start_POSTSUPERSCRIPT evcs end_POSTSUPERSCRIPT = 0 , ∀ italic_k , italic_l , italic_i).

III-B3 BESS Objectives and Constraints

The BESS is one of the controllable resources in the proposed dispatching framework. It can provide both active and reactive power regulation during real-time operation. Let pk,ibess,qk,ibesssubscriptsuperscript𝑝bess𝑘𝑖subscriptsuperscript𝑞bess𝑘𝑖p^{\text{bess}}_{k,i},q^{\text{bess}}_{k,i}italic_p start_POSTSUPERSCRIPT bess end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k , italic_i end_POSTSUBSCRIPT , italic_q start_POSTSUPERSCRIPT bess end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k , italic_i end_POSTSUBSCRIPT be the battery’s active and reactive power at time k𝑘kitalic_k and node i𝒩bess𝑖superscript𝒩𝑏𝑒𝑠𝑠i\in\mathcal{N}^{bess}italic_i ∈ caligraphic_N start_POSTSUPERSCRIPT italic_b italic_e italic_s italic_s end_POSTSUPERSCRIPT where 𝒩besssuperscript𝒩𝑏𝑒𝑠𝑠\mathcal{N}^{bess}caligraphic_N start_POSTSUPERSCRIPT italic_b italic_e italic_s italic_s end_POSTSUPERSCRIPT is the set of node indices where BESSs are installed.

For each BESS, the objective is to minimize its usage (i.e., absolute injections |pk,ibess|subscriptsuperscript𝑝bess𝑘𝑖|p^{\text{bess}}_{k,i}|| italic_p start_POSTSUPERSCRIPT bess end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k , italic_i end_POSTSUBSCRIPT |), to mitigate its cycling related aging. The objective is

fkbess=i𝒩bessk=kk¯|pk,ibess|subscriptsuperscript𝑓𝑏𝑒𝑠𝑠𝑘subscript𝑖superscript𝒩𝑏𝑒𝑠𝑠superscriptsubscript𝑘𝑘¯𝑘subscriptsuperscript𝑝bess𝑘𝑖\displaystyle f^{bess}_{k}=\sum_{i\in\mathcal{N}^{bess}}\sum_{k=k}^{\bar{k}}|p%^{\text{bess}}_{k,i}|italic_f start_POSTSUPERSCRIPT italic_b italic_e italic_s italic_s end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT = ∑ start_POSTSUBSCRIPT italic_i ∈ caligraphic_N start_POSTSUPERSCRIPT italic_b italic_e italic_s italic_s end_POSTSUPERSCRIPT end_POSTSUBSCRIPT ∑ start_POSTSUBSCRIPT italic_k = italic_k end_POSTSUBSCRIPT start_POSTSUPERSCRIPT over¯ start_ARG italic_k end_ARG end_POSTSUPERSCRIPT | italic_p start_POSTSUPERSCRIPT bess end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k , italic_i end_POSTSUBSCRIPT |(9)

It considers the constraints on the state-of-charge i.e., SoCk,ibesssubscriptsuperscriptSoCbess𝑘𝑖\text{SoC}^{\text{bess}}_{k,i}SoC start_POSTSUPERSCRIPT bess end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k , italic_i end_POSTSUBSCRIPT of each battery (i𝒩bess𝑖superscript𝒩𝑏𝑒𝑠𝑠i\in\mathcal{N}^{bess}italic_i ∈ caligraphic_N start_POSTSUPERSCRIPT italic_b italic_e italic_s italic_s end_POSTSUPERSCRIPT) is constrained by SoC limits [SoC¯ibess,SoC¯ibesssubscriptsuperscript¯SoCbess𝑖subscriptsuperscript¯SoCbess𝑖\underline{\text{SoC}}^{\text{bess}}_{i},~{}\overline{\text{SoC}}^{\text{bess}%}_{i}under¯ start_ARG SoC end_ARG start_POSTSUPERSCRIPT bess end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT , over¯ start_ARG SoC end_ARG start_POSTSUPERSCRIPT bess end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT], SoC¯ibess/SoC¯ibesssubscriptsuperscript¯SoCbess𝑖subscriptsuperscript¯SoCbess𝑖{\underline{\text{SoC}}^{\text{bess}}_{i}}/{\overline{\text{SoC}}^{\text{bess}%}_{i}}under¯ start_ARG SoC end_ARG start_POSTSUPERSCRIPT bess end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT / over¯ start_ARG SoC end_ARG start_POSTSUPERSCRIPT bess end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT are the minimum/maximum SoC bounds of battery i𝑖iitalic_i

SoC¯ibessSoCk,ibess=SoCk1,ibesspk,ibess(δt)Eibess, maxSoC¯ibess.subscriptsuperscript¯SoCbess𝑖subscriptsuperscriptSoCbess𝑘𝑖subscriptsuperscriptSoCbess𝑘1𝑖subscriptsuperscript𝑝bess𝑘𝑖𝛿𝑡subscriptsuperscript𝐸bess, max𝑖subscriptsuperscript¯SoCbess𝑖\displaystyle{\underline{\text{SoC}}^{\text{bess}}_{i}}\leq\text{SoC}^{\text{%bess}}_{k,i}=\text{SoC}^{\text{bess}}_{k-1,i}-\frac{p^{\text{bess}}_{k,i}(%\delta t)}{E^{\text{bess, max}}_{i}}\leq{\overline{\text{SoC}}^{\text{bess}}_{%i}}.under¯ start_ARG SoC end_ARG start_POSTSUPERSCRIPT bess end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ≤ SoC start_POSTSUPERSCRIPT bess end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k , italic_i end_POSTSUBSCRIPT = SoC start_POSTSUPERSCRIPT bess end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k - 1 , italic_i end_POSTSUBSCRIPT - divide start_ARG italic_p start_POSTSUPERSCRIPT bess end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k , italic_i end_POSTSUBSCRIPT ( italic_δ italic_t ) end_ARG start_ARG italic_E start_POSTSUPERSCRIPT bess, max end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_ARG ≤ over¯ start_ARG SoC end_ARG start_POSTSUPERSCRIPT bess end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT .(10a)
where Eibess, maxsubscriptsuperscript𝐸bess, max𝑖E^{\text{bess, max}}_{i}italic_E start_POSTSUPERSCRIPT bess, max end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT represent EV energy capacity.Moreover, the active and reactive power are bounded by converter ratings
(pk,ibess)2+(qk,ibess)2(Sibess,max)2superscriptsubscriptsuperscript𝑝bess𝑘𝑖2superscriptsubscriptsuperscript𝑞bess𝑘𝑖2superscriptsubscriptsuperscript𝑆bess,max𝑖2\displaystyle(p^{\text{bess}}_{k,i})^{2}+(q^{\text{bess}}_{k,i})^{2}\leq({S}^{%\text{bess,max}}_{i})^{2}( italic_p start_POSTSUPERSCRIPT bess end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k , italic_i end_POSTSUBSCRIPT ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT + ( italic_q start_POSTSUPERSCRIPT bess end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k , italic_i end_POSTSUBSCRIPT ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ≤ ( italic_S start_POSTSUPERSCRIPT bess,max end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT(10b)

where Sibess,maxsubscriptsuperscript𝑆bess,max𝑖{S}^{\text{bess,max}}_{i}italic_S start_POSTSUPERSCRIPT bess,max end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT is the rated power of the converter associated to the i-th battery. The circle constraint in (10b) is approximated by a set of piece-wise linear constraints as in [30].

III-B4 Final MPC Formulation

The final MPC problem at time index k𝑘kitalic_k is formulated as

minimize𝐩kevcs,𝐩kbessfkdisp+fkevcs+fkbesssuperscriptsubscript𝐩𝑘evcssuperscriptsubscript𝐩𝑘bessminimizesubscriptsuperscript𝑓𝑑𝑖𝑠𝑝𝑘subscriptsuperscript𝑓𝑒𝑣𝑐𝑠𝑘subscriptsuperscript𝑓𝑏𝑒𝑠𝑠𝑘\displaystyle\underset{\mathbf{p}_{k}^{\text{evcs}},\mathbf{p}_{k}^{\text{bess%}}}{\text{minimize}}~{}f^{disp}_{k}+f^{evcs}_{k}+f^{bess}_{k}start_UNDERACCENT bold_p start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT start_POSTSUPERSCRIPT evcs end_POSTSUPERSCRIPT , bold_p start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT start_POSTSUPERSCRIPT bess end_POSTSUPERSCRIPT end_UNDERACCENT start_ARG minimize end_ARG italic_f start_POSTSUPERSCRIPT italic_d italic_i italic_s italic_p end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT + italic_f start_POSTSUPERSCRIPT italic_e italic_v italic_c italic_s end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT + italic_f start_POSTSUPERSCRIPT italic_b italic_e italic_s italic_s end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT(11a)
subject to(III-B1),(III-B2),(III-B3).subject toitalic-(III-B1italic-)italic-(III-B2italic-)italic-(III-B3italic-)\displaystyle\text{subject to}~{}~{}~{}~{}\eqref{eq:grid_cons},\eqref{eq:evcs_%cons},\eqref{eq:bess_cons}.subject to italic_( italic_) , italic_( italic_) , italic_( italic_) .(11b)

As it can be observed, the problem is linear, thanks to the linearized grid model and piece-wise linear approximation of the capability curves (5k) and (10b). Therefore, the problem can be solved efficiently by any LP solver.

It may appear that the RT-MPC formulation in (III-B4) is similar to the day-ahead problem from the Part-I paper. However, the key difference are listed below:

  • The RT-MPC formulation is designed to achieve real-time tracking of the dispatch schedule decided by the day-ahead stage. It is formulated as model predictive control to account for the real-time variations of the prosumption, whereas the day-ahead stage is formulated as scenario-based stochastic optimization scheme.

  • The RT-MPC optimization problem is much faster to solve (below 30 seconds), whereas the day-ahead formulation can take a few hours to solve.

IV Experimental Validation

In this section, we present the experimental validation of the described RT-MPC on a real-life ADN. In particular, we first describe the hardware setup, the monitoring, and communication infrastructure, and then present the experimental validation results for different day types.

IV-A Experimental Infrastructure

The experimental validation is performed on the setup described in Part-I of the paper, shown in Fig.3. The detailed description of the resources and the grid is included in Part-I of the paper.

For the experimental validation of the RT-MPC, we consider two BESS and two EVCS as controllable resources. Other resources such as PV plants and buildings are treated as uncontrollable. Each resource used in the experiment is described below.

Grid-aware Scheduling and Control of Electric Vehicle Charging Stations for Dispatching Active Distribution Networks. Part-II: Intra-day and Experimental Validation (3)
Grid-aware Scheduling and Control of Electric Vehicle Charging Stations for Dispatching Active Distribution Networks. Part-II: Intra-day and Experimental Validation (4)
Grid-aware Scheduling and Control of Electric Vehicle Charging Stations for Dispatching Active Distribution Networks. Part-II: Intra-day and Experimental Validation (5)
Grid-aware Scheduling and Control of Electric Vehicle Charging Stations for Dispatching Active Distribution Networks. Part-II: Intra-day and Experimental Validation (6)
Grid-aware Scheduling and Control of Electric Vehicle Charging Stations for Dispatching Active Distribution Networks. Part-II: Intra-day and Experimental Validation (7)
Grid-aware Scheduling and Control of Electric Vehicle Charging Stations for Dispatching Active Distribution Networks. Part-II: Intra-day and Experimental Validation (8)
  • BESS: the ADN hosts two different BESS with capacities of 25kW/25KWh (BESS1) and 150kW/300kWh (BESS2). Both BESS are based on the Lithium Titanate Oxide (LTO) and are rated for 15,000 cycles (of 1C/1C charge/discharge rates and 100% depth of discharge). BESS1 consists of 13 modules, and BESS2 consists of 9 parallel racks where each rack consists of 15 modules. Each module is composed by 20s3p cells. A view of BESS1 and BESS 2 is shown in Fig.4b and 4a.

  • EVCS: the ADN hosts two different charging stations EVCS1 and EVCS2 as shown in Fig.5. EVCS1 is a level-3 DC fast charging station and has a peak power capacity of 172kW. It hosts 5 plugs but only 2 plugs can be operational at the same time. EVCS2 is a level-2 AC charger with a 32 kWp capacity. It hosts 3 plugs, but only 2 plugs can be operational at the same time. The capacity per plug is reported in TableI. EVCS plugs, depending on their type, use different communication protocols. For example, the CHAdeMO plugs use the DCMS protocol from EvTec [27]. Type-2 plugs use IEC-61852 [31].

    ResourcesLabelsRatings
    Electric VehicleEVCS11 ×\times× Type-2 Plug - 43kWp
    Charging Station(5plugs)1 ×\times× Type-2 Plug - 22kWp
    Level-32 ×\times× CCS DC Plug - 150kWp
    1 ×\times× CHAdeMO Plug - 150kWp
    EVCS22 ×\times× Type-2 Plug - 22kWp
    (3plugs)1 ×\times× CHAdeMO Plug - 10kWp
    Level-3

    Furthermore, as explained in Sec. III-C of [32, 33], power-to-current lookup tables are needed to enable explicit active power control of level-2 plugs. Recall that level-2 plugs are controlled through an analog pulsed signal that dictates to the EV the RMS value of the maximum per-phase current it can consume. As a result, power-to-current lookup tables were precomputed.For more details on the characterization of the current-power lookup table, the reader can refer to [33].

  • PV: The grid hosts 3 different PV plants, PV1 and PV2 are rooftop PV rated at 13kWp and 16kWp, respectively. PV3 is on a building facade and is rated at 13.2kWp. All these power generation assets are considered uncontrollable in the experiment and are operated at their maximum power potential (i.e., at the MPPT). The three PV plants are shown in Fig.6.

  • Demand: it refers to the electricity demand corresponding to the building shown in Fig.6. The consumption is split over two transformers: L1-ELLA (i.e., first load) and L2-ELLB (i.e., second load) associated to transformers A and B, respectively and rated at 20kW and 5kW, respectively.

IV-B Situational Awareness Infrastructure

The experimental setup is equipped with a dedicated monitoring and communication infrastructure enabling real-time state estimation (RTSE), and information of the resources state such as BESS SoC, current setpoints, EVCS power etc. In the following, we briefly describe them.

IV-B1 Communication Infrastructure, Centralized Server and Data-Logging

ADN sensing and connected resources communicate over a dedicated IPv4 communication network.Fig.7 shows the schematic of the communication network. It connects different workstations (WS1-WS6) hosting the RTSE, data server, day-ahead dispatcher, RT-MPC and the actuator. WS1 collects the PMU packets and hosts a phasor data concentrator (PDC) [34]; the data is then used to estimate the state of the power grid in real-time each 20ms. A discrete Kalman filter-based state estimator processes the measurements [35] and provides the estimates of the voltage and current phasors of all the nodes and lines with a total latency of less than 80ms with respect to the UTC-GPS time tag of the PMU measurements. Details on the RTSE can be found in [35, 36]. WS2 implements a SQL-based (influxdb 555https://www.influxdata.com) database to log all the time-series during the experiments. WS3 computes the day-ahead forecasts and dispatch plan (formulation reported in Part-I paper). WS4 runs the real-time MPC, and computes short-term forecasts for different resources. WS5 and WS6 run the BESS and EVCS softwares, respectively to implement the power setpoints computed by the RT-MPC.The workstations, the PMUs and meteobox are connected by a switch.

Grid-aware Scheduling and Control of Electric Vehicle Charging Stations for Dispatching Active Distribution Networks. Part-II: Intra-day and Experimental Validation (9)

IV-B2 Time-tagged measurement infrastructure

As discussed before, the network is monitored by several PMUs that provide real-time information of the grid states (coupled to a RTSE) and a meteobox that provides real-time information on GHI and air temperature. These measurements are also stored in the data-server as historical measurements, which are used for day-ahead and short-term forecasting. The measurement units are briefly described below.

  • PMU(s): are used to provide time-synchronised and time-tagged measurements at 50 frames per second. An example of the installed PMU is shown in Fig.8a. The PMUs are implemented on National Instrument Compact RIO consisting of a GPS module and current/voltage acquisition modules. More details on the specification of the components are in [37]

  • Meteobox: is installed to get measurements of GHI, air- and PV-panel- temperatures. It provides real-time measurements with a sampling rate of 1sec (including communication latency). Fig8b shows the meteobox installed on the site; each meteobox consists of a pyranometer (to sense the GHI), two temperature sensors, and a power supply. More details on the specification can be found in [38].

Grid-aware Scheduling and Control of Electric Vehicle Charging Stations for Dispatching Active Distribution Networks. Part-II: Intra-day and Experimental Validation (10)
Grid-aware Scheduling and Control of Electric Vehicle Charging Stations for Dispatching Active Distribution Networks. Part-II: Intra-day and Experimental Validation (11)

IV-C Dataflow

Fig.9 shows the sequence of operations and communication flows during the real-time stage.The real-time stage starts at 00:00 local time. First, we retrieve the current power dispatch setpoint p¯kdispsuperscriptsubscript¯𝑝𝑘𝑑𝑖𝑠𝑝\bar{p}_{k}^{disp}over¯ start_ARG italic_p end_ARG start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_d italic_i italic_s italic_p end_POSTSUPERSCRIPT. Then, the grid measurements are obtained and used to infer the actual system state (used to formulate the LOPF). It then updates the resources states (such of BESS and EV SoC). Then, the short-term forecasts of the uncontrollable resources are updated. All these information is then used for solving RT-MPC in (III-B4). The optimized power setpoints are then sent to EVCS and BESS actuators. This cycle is repeated every 30sec until 23:59:30 local time.

Grid-aware Scheduling and Control of Electric Vehicle Charging Stations for Dispatching Active Distribution Networks. Part-II: Intra-day and Experimental Validation (12)
Grid-aware Scheduling and Control of Electric Vehicle Charging Stations for Dispatching Active Distribution Networks. Part-II: Intra-day and Experimental Validation (13)
Grid-aware Scheduling and Control of Electric Vehicle Charging Stations for Dispatching Active Distribution Networks. Part-II: Intra-day and Experimental Validation (14)
Grid-aware Scheduling and Control of Electric Vehicle Charging Stations for Dispatching Active Distribution Networks. Part-II: Intra-day and Experimental Validation (15)
Grid-aware Scheduling and Control of Electric Vehicle Charging Stations for Dispatching Active Distribution Networks. Part-II: Intra-day and Experimental Validation (16)
Grid-aware Scheduling and Control of Electric Vehicle Charging Stations for Dispatching Active Distribution Networks. Part-II: Intra-day and Experimental Validation (17)

IV-D Experimental results

The experimental validation was performed for several days during the week. For the sake of brevity, we present results for two notable days of experiments. The days are characterised by different weather conditions and number of EV charging sessions. The results are presented when there is no control of both BESS and EVCS, referred to as “without control” and when BESS and EVCS are both controlled, referred to as “with control”.

IV-D1 Day 1

It corresponds to a weekday and is characterised by cloudy irradiance conditions. The day shows intermittent PV production and has several EV charging sessions.

Figure10 and 11 show the experimental results obtained for day-1. Figure10a shows the dispatch plan in shaded green (from day-ahead formulation described in Part-I) and realized power at the GCP with and without666Since each experiment day is unique with respect to the solar irradiance, number and energy demand of EV charging sessions, it is impossible to redo the same experiments in “without control” mode. Therefore, we obtain the plot “without control” by removing the contribution of the BESS and re-running the AC load flow with the rest of the injections. control (as shown in black and red color, respectively).Figure10b shows the power injections and the SoC from the controllable battery BESS1. Figure 10c-10d shows the EV demand (with control) and the EV SoC of the connected cars at the EVCS1 and EVCS2, respectively. In these figures, the target SoC is shown in red, and the SoC is shown in black. Figure 10e shows the uncontrollable demand (at nodes B20 and B21) and Fig.10f shows the PV generation (at nodes B14 and B16).

One can observe from Figure 10a, that the dispatch plan is tracked with high fidelity thanks to the power injected from the controllable BESS and curtailment actions from EVCSs. From the plot, it can also be observed that the variation in the generation at the PV plants is well compensated by the battery storage. In Figure 10b, the BESS SoC stays within the imposed SoC constraint of 20% to 90%. Figure10c-10d shows the target SoC of the EVs, and in most of cases, EV users meet their target SoC.

Grid-aware Scheduling and Control of Electric Vehicle Charging Stations for Dispatching Active Distribution Networks. Part-II: Intra-day and Experimental Validation (18)
MPCDay 1Day 2
RMSEAEEMAERMSEAEEMAE
(kW)(kWh)(kW)(kW)(kWh)(kW)
No Control28.7137.9441.719.191.9327.4
RT-MPC0.75.98.50.52.91.5
(EVCS+BESS)
Grid-aware Scheduling and Control of Electric Vehicle Charging Stations for Dispatching Active Distribution Networks. Part-II: Intra-day and Experimental Validation (19)
Grid-aware Scheduling and Control of Electric Vehicle Charging Stations for Dispatching Active Distribution Networks. Part-II: Intra-day and Experimental Validation (20)
Grid-aware Scheduling and Control of Electric Vehicle Charging Stations for Dispatching Active Distribution Networks. Part-II: Intra-day and Experimental Validation (21)
Grid-aware Scheduling and Control of Electric Vehicle Charging Stations for Dispatching Active Distribution Networks. Part-II: Intra-day and Experimental Validation (22)
Grid-aware Scheduling and Control of Electric Vehicle Charging Stations for Dispatching Active Distribution Networks. Part-II: Intra-day and Experimental Validation (23)
Grid-aware Scheduling and Control of Electric Vehicle Charging Stations for Dispatching Active Distribution Networks. Part-II: Intra-day and Experimental Validation (24)
Grid-aware Scheduling and Control of Electric Vehicle Charging Stations for Dispatching Active Distribution Networks. Part-II: Intra-day and Experimental Validation (25)
Grid-aware Scheduling and Control of Electric Vehicle Charging Stations for Dispatching Active Distribution Networks. Part-II: Intra-day and Experimental Validation (26)

Table II shows different metrics to quantify the dispatch error with and without control. It shows the RMSE error, max absolute error (MAE), and Absolute Energy Error (AEE) of the dispatch over the day. AEE is defined as the absolute sum of the dispatch tracking error over the whole day. From the comparison, it is clear that the RT control manages to track with high accuracy, exhibiting low RMSE and MAE. The real-time control manages to reduce error metrics more than tenfold. Moreover, RMSE, AEE and MAE are reduced by 2.4%, 4.2% and 1.9% respectively, compared to without control, proving the effectiveness of the proposed scheme.

We also show the cumulative distribution function (CDF) of the dispatch tracking error (averaged over the dispatch period of 5 minutes) with and without real-time control in Fig.11. As it can be observed, the dispatch error with control is always concentrated around zero.

IV-D2 Day 2

It corresponds to a weekend day and is characterized by rainy weather conditions, so it exhibits low irradiance, leading to low PV generation and relatively low demand compared to the weekday. It also has less EV charging sessions.

Again, we show the active power realization at the GCP with and without control. It is shown in Figure12a. One can observe that the dispatch plan is tracked well, thanks to the power regulation provided by the controllable batteries, as shown in Figure12b, and the curtailment action of EVCS1 as shown in Figure12c.As this day corresponds to a rainy day (resulting in less PV generation), the peak power of the dispatch plan is higher than the one on day 1. On this day, there are no sessions on the EVCS2 (therefore, the graph is not shown). Indeed, that charging station belongs to the office’s private space, which is unoccupied during the weekend. There are some charging sessions on the EVCS1 but less than on day 1 (due to weekend day). All sessions met their targets.

Furthermore, Figure13 shows the CDF of the dispatch error with and without control and it can be concluded that the real-time control achieves a very good accuracy in the dispatch tracking. The same can be observed by the metrics shown in TableII, where it is observed that the RMSE, AEE and MAE are reduced to 2.6%, 3.2% and 0.5%, respectively, compared to without control.

IV-D3 Multi-day

To demonstrate the effectiveness of the dispatching scheme, we ran the control of the BESS for four contiguous days shown in Fig.14. Figure14a shows the dispatch plan and the measured GCP power withand without the control scheme. In Fig.14b, we show the SoC evolution of BESS1 during the four days. The power at the GCP follows the dispatch plan and keeps the BESS SoC within comfortable bounds so that dispatching is facilitated on the next day.

V Conclusion

Part-II of the paper presented the intra-day stage of the dispatching framework proposed in the Part-I paper. More specifically, it proposed and experimentally validated a real-time model predictive control for tracking a pre-defined power profile, the dispatch plan, at the grid connection point of an ADN by controlling flexible resources. The MPC control scheme is designed to control flexible resources such as EVCS and BESS to provide the mismatch between the dispatch plan and realization during the day. The dispatch plan is provided by the day-ahead scheduling formulation from Part-I. The MPC accounted for the grid constraints via a linearized power flow to obtain a tractable formulation. It considered the stochasticity of the uncontrollable generation and demand via short-term forecasting schemes.

The MPC scheme was experimentally validated on a real-life ADN at the EPFL’s Distributed Electrical Systems Laboratory, which hosts two EVCSs and two BESSs as flexible resources and heterogeneous uncontrollable resources such as PV plants and office buildings. The RT-MPC was designed to run every 30 seconds with 5minutes MPC horizon time to track the dispatch plan on a 5-minutes time resolution.

The experimental validation carried out for several contiguous days proved the effectiveness of the MPC algorithm. The elaborated results presented for two distinct days showed good dispatch tracking accuracy. It has been observed that the metrics on dispatch tracking error such as root-mean-square-error, absolute energy error and maximum absolute error are reduced by factors ranging 38-41, 23-32, and 52-218, respectively by using the proposed MPC control scheme.

References

  • [1]J.Zhong, L.He, C.Li, Y.Cao, J.Wang, B.Fang, L.Zeng, and G.Xiao,“Coordinated control for large-scale ev charging facilities and energystorage devices participating in frequency regulation,” AppliedEnergy, vol. 123, pp. 253–262, 2014.
  • [2]A.Janjic, L.Velimirovic, M.Stankovic, and A.Petrusic, “Commercial electricvehicle fleet scheduling for secondary frequency control,” ElectricPower Systems Research, vol. 147, pp. 31–41, 2017.
  • [3]S.Bansal, M.N. Zeilinger, and C.J. Tomlin, “Plug-and-play model predictivecontrol for electric vehicle charging and voltage control in smart grids,”in 53rd IEEE Conference on Decision and Control.IEEE, 2014, pp. 5894–5900.
  • [4]S.Weckx and J.Driesen, “Load balancing with ev chargers and pv inverters inunbalanced distribution grids,” IEEE Transactions on SustainableEnergy, vol.6, no.2, pp. 635–643, 2015.
  • [5]S.Fahmy, R.Gupta, and M.Paolone, “Grid-aware distributed control ofelectric vehicle charging stations in active distribution grids,”Electric Power Systems Research, vol. 189, p. 106697, 2020.
  • [6]H.Liu, Z.Hu, Y.Song, J.Wang, and X.Xie, “Vehicle-to-grid control forsupplementary frequency regulation considering charging demands,” IEEETransactions on Power Systems, vol.30, no.6, pp. 3110–3119, 2014.
  • [7]J.C. Hernández, F.Sanchez-Sutil, P.Vidal, and C.Rus-Casas, “Primaryfrequency control and dynamic grid support for vehicle-to-grid intransmission systems,” International Journal of Electrical Power &Energy Systems, vol. 100, pp. 152–166, 2018.
  • [8]A.Nottrott, J.Kleissl, and B.Washom, “Energy dispatch schedule optimizationand cost benefit analysis for grid-connected, photovoltaic-battery storagesystems,” Renewable Energy, vol.55, pp. 230–240, 2013.
  • [9]E.Reihani, S.Sepasi, L.R. Roose, and M.Matsuura, “Energy management at thedistribution grid using a battery energy storage system (bess),”IJEPES, vol.77, pp. 337–344, 2016.
  • [10]M.Bozorg, F.Sossan, J.-Y. LeBoudec, and M.Paolone, “Influencing the bulkpower system reserve by dispatching power distribution networks using localenergy storage,” Electric Power Systems Research, vol. 163, pp.270–279, 2018.
  • [11]J.Hu, H.Morais, M.Lind, and H.W. Bindner, “Multi-agent based modeling forelectric vehicle integration in a distribution network operation,”Electric Power Systems Research, vol. 136, pp. 341–351, 2016.
  • [12]W.Qi, Z.Xu, Z.-J.M. Shen, Z.Hu, and Y.Song, “Hierarchical coordinatedcontrol of plug-in electric vehicles charging in multifamily dwellings,”IEEE Transactions on Smart Grid, vol.5, no.3, pp. 1465–1474, 2014.
  • [13]A.Imran, G.Hafeez, I.Khan, M.Usman, Z.Shafiq, A.B. Qazi, A.Khalid, andK.-D. Thoben, “Heuristic-based programable controller for efficient energymanagement under renewable energy sources and energy storage system in smartgrid,” IEEE Access, vol.8, pp. 139 587–139 608, 2020.
  • [14]A.Al-Obaidi, H.Khani, H.E. Farag, and M.Mohamed, “Bidirectional smartcharging of electric vehicles considering user preferences, peer to peerenergy trade, and provision of grid ancillary services,” InternationalJournal of Electrical Power & Energy Systems, vol. 124, p. 106353, 2021.
  • [15]R.Wang and S.M. Lukic, “Dynamic programming technique in hybrid electricvehicle optimization,” in 2012 IEEE international electric vehicleconference.IEEE, 2012, pp. 1–8.
  • [16]F.Tuchnitz, N.Ebell, J.Schlund, and M.Pruckner, “Development andevaluation of a smart charging strategy for an electric vehicle fleet basedon reinforcement learning,” Applied Energy, vol. 285, p. 116382,2021.
  • [17]M.Dabbaghjamanesh, A.Moeini, and A.Kavousi-Fard, “Reinforcementlearning-based load forecasting of electric vehicle charging station usingq-learning technique,” IEEE Transactions on Industrial Informatics,vol.17, no.6, pp. 4229–4237, 2020.
  • [18]A.DiGiorgio, F.Liberati, and S.Canale, “Electric vehicles charging controlin a smart grid: A model predictive control approach,” ControlEngineering Practice, vol.22, pp. 147–162, 2014.
  • [19]W.Tang and Y.J. Zhang, “A model predictive control approach forlow-complexity electric vehicle charging scheduling: Optimality andscalability,” IEEE transactions on power systems, vol.32, no.2, pp.1050–1063, 2016.
  • [20]L.Wang, A.Dubey, A.H. Gebremedhin, A.K. Srivastava, and N.Schulz,“Mpc-based decentralized voltage control in power distribution systems withev and pv coordination,” IEEE Transactions on Smart Grid, vol.13,no.4, pp. 2908–2919, 2022.
  • [21]F.Zhou, Y.Li, W.Wang, and C.Pan, “Integrated energy management of a smartcommunity with electric vehicle charging using scenario based stochasticmodel predictive control,” Energy and Buildings, vol. 260, p. 111916,2022.
  • [22]G.VanKriekinge, C.DeCauwer, N.Sapountzoglou, T.Coosemans, andM.Messagie, “Peak shaving and cost minimization using model predictivecontrol for uni-and bi-directional charging of electric vehicles,”Energy reports, vol.7, pp. 8760–8771, 2021.
  • [23]Y.Li, M.Han, Z.Yang, and G.Li, “Coordinating flexible demand response andrenewable uncertainties for scheduling of community integrated energy systemswith an electric vehicle charging station: A bi-level approach,” IEEETransactions on Sustainable Energy, vol.12, no.4, pp. 2321–2331, 2021.
  • [24]R.Gupta, F.Sossan, and M.Paolone, “Grid-aware distributed model predictivecontrol of heterogeneous resources in a distribution network: Theory andexperimental validation,” IEEE Transactions on Energy Conversion,vol.36, no.2, pp. 1392–1402, 2020.
  • [25]R.Gupta, A.Zecchino, J.-H. Yi, and M.Paolone, “Reliable dispatch of activedistribution networks via a two-layer grid-aware model predictive control:Theory and experimental validation,” IEEE Open Access Journal of Powerand Energy, 2022.
  • [26]F.Sossan, E.Scolari, R.Gupta, and M.Paolone, “Solar irradiance estimationsfor modeling the variability of photovoltaic generation and assessingviolations of grid constraints: A comparison between satellite andpyranometers measurements with load flow simulations,” Journal ofRenewable and Sustainable Energy, vol.11, no.5, p. 056103, 2019.
  • [27]EvTec, “espresso&charge - 6in1,”https://www.evtec.ch/download_file/view/356, accessed last: 2022-09-01.
  • [28]R.K. Gupta, “Methods for grid-aware operation and planning of activedistribution networks,” p. 247, 2023. [Online]. Available:http://infoscience.epfl.ch/record/299705
  • [29]L.Yao, W.H. Lim, and T.S. Tsai, “A real-time charging scheme for demandresponse in electric vehicle parking station,” IEEE Transactions onSmart Grid, vol.8, no.1, pp. 52–62, 2016.
  • [30]M.Nick, R.Cherkaoui, and M.Paolone, “Optimal allocation of dispersed energystorage systems in active distribution networks for energy balance and gridsupport,” IEEE Transactions on Power Systems, vol.29, no.5, pp.2300–2310, 2014.
  • [31]International Electrotechnical Commission, “Iec 61851-1: 2017-02 “electricvehicle conductive charging system—part 1: General requirements,”International Electrotechnical Commission:, Geneva, Switzerland, Tech. Rep.,2017.
  • [32]R.Rudnik, J.-Y. LeBoudec, S.Fahmy, and M.Paolone, “Experimental validationof the real-time control of an electric-vehicle charging station,” in2021 IEEE Madrid PowerTech.IEEE, 2021, pp. 1–6.
  • [33]S.A.S. Fahmy, “Efficient methods for the operation of active distributionnetworks in unsymmetric and uncertain states,” EPFL, Tech. Rep., 2022.
  • [34]“Guide for phasor data concentrator requirements for power system protection,control, and monitoring,” IEEE Std. C37.244-2013, pp. 1–65.
  • [35]A.M. e.a. Kettner, “Sequential discrete kalman filter for real-time stateestimation in power distribution systems: Theory and implementation,”IEEE Trans. Inst. Meas., vol.66, no.9, pp. 2358–2370, 2017.
  • [36]L.Zanni etal., “Pmu-based linear state estimation of lausannesubtransmission network: Experimental validation,” EPSR, vol. 189,2020.
  • [37]L.E. ReyesChamorro, “Real-time control framework for active distributionnetworks theoretical definition and experimental validation,” EPFL, Tech.Rep., 2016.
  • [38]E.Scolari, “Modelling and forecasting of photovoltaic generation formicrogrid applications: from theory to validation,” EPFL, Tech. Rep., 2019.
Grid-aware Scheduling and Control of Electric Vehicle Charging Stations for Dispatching Active Distribution Networks. Part-II: Intra-day and Experimental Validation (2024)
Top Articles
Latest Posts
Article information

Author: Tish Haag

Last Updated:

Views: 5738

Rating: 4.7 / 5 (47 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Tish Haag

Birthday: 1999-11-18

Address: 30256 Tara Expressway, Kutchburgh, VT 92892-0078

Phone: +4215847628708

Job: Internal Consulting Engineer

Hobby: Roller skating, Roller skating, Kayaking, Flying, Graffiti, Ghost hunting, scrapbook

Introduction: My name is Tish Haag, I am a excited, delightful, curious, beautiful, agreeable, enchanting, fancy person who loves writing and wants to share my knowledge and understanding with you.