New Dispatching Paradigm in Power Systems Including EV Charging Stations and Dispersed Generation: A Real Test Case

Electric Vehicles (EVs) are becoming one of the main answers to the decarbonization of the transport sector and Renewable Energy Sources (RES) to the decarbonization of the electricity production sector. Nevertheless, their impact on the electric grids cannot be neglected. New paradigms for the management of the grids where they are connected, which are typically distribution grids in Medium Voltage (MV) and Low Voltage (LV), are necessary. A reform of dispatching rules, including the management of distribution grids and the resources there connected, is in progress in Europe. In this paper, a new paradigm linked to the design of reform is proposed and then tested, in reference to a real distribution grid, operated by the main Italian Distribution System Operator (DSO), e-distribuzione. First, in reference to suitable future scenarios of spread of RES-based power plants and EVs charging stations (EVCS), using Power Flow (PF) models, a check of the operation of the distribution grid, in reference to the usual rules of management, is made. Second, a new dispatching model, involving DSO and the resources connected to its grids, is tested, using an Optimal Power Flow (OPF) algorithm. Results show that the new paradigm of dispatching can effectively be useful for preventing some operation problems of the distribution grids.


Introduction
Stopping climate change requires a revolution in the way we produce and consume energy. On the production side, the most important step is to reduce the generation from carbon and other fossil fuel to near-zero, and to increase the amount of the Renewable Energy Sources (RES). On the consumption side, the revolution requires an improvement of the efficiency and in the electrification of the energy demand. In the transport sector, these two objectives can be reached thanks to the spread of Electric Vehicles (EVs), whose Charging Stations (EVCS) power is enhancing (up to 250 kW) to allow a faster recharge [1][2][3][4]. All these changes affects the operation of the power systems, at transmission grids level in High Voltage (HV) and distribution grids level in Medium Voltage (MV) and Low Voltage (LV) [5,6]. The issues are different in the two stages of the power system: most of the RES-based power plants are connected to the distribution grids (Dispersed Generation, DG) and all the EVCS are connected to the distribution grids, thus, the first impact is on the distribution level. However, at the same time, the DG, typically RES-based, also has indirect impacts on the transmission level. some problems related to the operation of the transmission grids, due to the DG, are: -Reduction of the equivalent load on the HV grid, with reactive power management problems in light-load hours and thus high voltage problem; -Reduction or turning off of conventional power plants generation, reducing the reserves for the control of the whole power system, and in particular causing a reduction of the inertia and of the spinning reserve and thus frequency control issues, -Inverse power flows on the primary substations in some hours, -Dispatching reserves and rules for controlling the frequency, inappropriate for the reliability of the grid, increasing costs of the dispatching service for the Transmission System Operators (TSOs).
On the other hand, some problems related to the operation of the distribution grid, due to DG and EVCS are: Congestions on some branches, -Voltage drops and critical voltage control, -Inverse power flows on some lines through the primary substations, -Increasing of the power losses, -Power quality issues.
Many of the listed issues are due to the fact that the RES-based DG and EVCS are still managed with a "fit and forget" approach: the amount of electricity available in production or needed in consumption is put into or delivered by the system, without any limits. This type of approach is no longer feasible, especially when the rate of DG and EVs become high, as is the case in Europe.
A solution of most of the listed issues could be an active management of distribution grids and of the sources, there connected, in charge to the Distributor System Operators (DSOs), similar to the management done by the TSOs with the HV grids. For all these reasons, a reform of the electrical dispatching is in progress in Europe, including Italy [7]. The common objective of the review process in all the European Countries is to test new ways for getting the necessary resources to guarantee the reliability of the whole power system, through a new form of dispatching service. It also includes taking in new entities, such as DG, MV and LV flexible end-users (such as EVCS) and their combinations, and thus involving in the dispatching functions the DSOs.
In literature, many recent works are present on the impact on the transmission and distribution grids of RES-based DG and EVCS. Some paper are dedicated only to the impacts and possible management solution for the RES-based DG on the distribution grids [8][9][10][11]. Others are related only to the influence and possible control strategies of EVCS, in distribution grids, according to a Vehicle-to-Grid approach, in reference to a smart grid environment [11][12][13][14][15][16][17][18][19][20][21]. Other papers are dedicated to analyze the combination of the effect of the two (DG and EVCS) and of their suitable management in the distribution grids operation and planning [22][23][24][25]. Few papers deal with the problems related both to the distribution and transmission grids, linked to the DG and EVCS [26,27].
In this context, the originality of the present work is to propose and test a new dispatching model on a real distribution system, in line with the reform that is in progress in Europe and in Italy [7], that implies a smart management of EVCSs, coordinated with DG, mainly RES-based. Analyses and simulations are done on the new model in reference to a real distribution system, in reference to future scenarios (2030), owned and operated by the most important DSO in Italy, e-distribuzione.
The work is so organized. Section 2 includes a short description of new dispatching models proposed by the reform in progress. The main features of the real grid object of the analysis are in Section 3. Section 4 shows the methodologies and the assumptions for the simulations. Section 5 describes and discusses the obtained results. In Section 6, conclusions are drawn.

Dispatching Models in the European Reform
The Italian TSO (TERNA) is moving forward in the dispatching reform guided by the Italian Authority for electricity (ARERA) in accordance with the European policies and rules [7]. In 2013, the debate concerning new dispatch models started. The investigation was through three possible models managing the dispatching sources that exploit RES-based generators, which can be summarized as follows: -Model 1, called "Extended Central Dispatching": all the sources connected to the transmission and distribution grids, including generators and flexible end-users, must provide dispatching services to the TSO, through the ancillary service market, and only local system services to the DSO for solving grid problems at distribution level, with a direct call. -Model 2, called "DSO Local Dispatching": the TSO can purchase system services from traditional generation power plants, RES-based power plants or flexible end-users connected to the High Voltage (HV) grids, and directly from DSO, through the ancillary service market. The DSO itself can indeed purchase dispatching services or local system services, from the DG and flexible end-users, connected to its medium voltage (MV) and low voltage (LV) grids, through a new ancillary service market at distribution level. -Model 3, called "Planned Profile Exchange at HV/MV Electrical Substation (ESS)": all the sources connected to the transmission grids, including generators and flexible end-users, must provide dispatching services to the TSO. The DSO is responsible only for the planned energy exchange in a single primary ESS, or in a zone that includes several primary ESS, but it does not provide any dispatching service to the TSO. This profile is guaranteed by DSO, using the DG and flexible end-users, connected to its MV and LV grids; they can be also called for system services on the distribution grids with a direct call by DSO.
Nowadays the reforms are heading toward Model 1, where the TSO can directly draw new dispatching sources from entities connected to the distribution system. The requests of the TSO do not consider the issues that may arise in the distribution grids, such as congestions, under-voltage and over-voltage phenomena and so on; thus, the DSOs are not only suffering the unavoidable spread of DG, but also an external control, which may lead to further problems. The control of the DG and of the flexible loads, by the DSO over its system, could be the best solution to avoid technical issues (Model 2 or 3). In the meantime, to guarantee a predictable exchange profile at primary ESS, reducing the global dispatching cost could be easy in this case for the DSO and could be useful for TSO (Model 3). Obviously, this can be done in a smart grid, where suitable communication [15] and control technologies are available between the DSO and the dispersed resources. This is the reason why the most important Italian DSO, e-distribuzione, is investigating the opportunity to apply Model 2 or 3 instead of Model 1, which is currently tested by the Italian TSO.

E-Distribuzione Test Case
The study has been carried out on a real distribution grid belonging to e-distribuzione, which is the most important DSO in Italy, and is involved in many studies on the impact of EVCS and DG on distribution grids [28][29][30][31][32]. The main features of the distribution grid are summarized in Figure 1. The system is located in Southern Italy and it is subtended to a primary Electrical Sub-station (ESS) with a 25 MVA power transformer and includes four lines. The main data on the lines are summarized in Table 1. All the MV generators are Photovoltaic (PV) systems with a total peak power of 8.76 MW. The powers and the lines to which they are connected are detailed in Table 2. Big consumers connected directly to MV lines are detailed in Table 3 with their available power and delivery line.  The system is located in Southern Italy and it is subtended to a primary Electrical Sub-station (ESS) with a 25 MVA power transformer and includes four lines. The main data on the lines are summarized in Table 1. All the MV generators are Photovoltaic (PV) systems with a total peak power of 8.76 MW. The powers and the lines to which they are connected are detailed in Table 2. Table 2. MV PV Generators. G1  7983  2  G2  48  3  G3  1250  3  G4  60  3 Big consumers connected directly to MV lines are detailed in Table 3 with their available power and delivery line.

MV Generation Plants Power [kW] Line
For each passive customer (industrial and residential) in MV, e-distribuzione has provided data about the active and reactive power profile in time, every 15 min, in reference to the four seasons and the two typical days of the week (workdays and weekends). The LV loads and generators are represented, in their respective secondary ESS, as aggregate profiles of active and reactive power, because the information about the LV network are not given. The production profile of the PV systems have been calculated in reference to the irradiation values in the analyzed area through System Advisor Model (SAM) software [33,34]. In addition, e-distribuzione provides the technical features of the MV grid components.
All these data, useful for the simulations, are not reported here, both for lack of space and privacy policies.

Models for Simulations
The system has been implemented in a MATLAB environment and simulated through MATPOWER Power Flow (PF) and Optimal Power Flow (OPF) algorithms [35,36]. Twelve simulations have been analyzed according to season and the day of the week was considered. The PF and OPF run every 15 min. The simulations take into account only the active powers as control variables, because it is assumed to be a dispatching model that deals only with the control of the active power of the sources involved with a different objective, according to the reform proposals in progress in Europe and in Italy.
A first PF analysis in the present scenario was performed, to check the operation of the grid in the present and without any type of dispatching action implemented. The results show that the peak demand is reached during the summer evening. Nevertheless, the grid constraints, such as voltage and current limits, are widely respected all year long and the grid turns out to be discharged and highly suitable for new sources integration.

Assumptions for Simulations
An evaluation was carried out about possible future scenarios in 2030 considering the targets imposed by the European Commission and Italian Authority [1-3]. The future scenarios have been chosen based on the experience on the field of e-distribuzione authors and their expertise coming out by the management and operation of the Italian distribution grid [28]. It is well known that the forecasts are dependent on many different factors, such as investments, policies and politics of the selected nation. For these reasons, three different scenarios have been deduced according to the speed of the growth, as shown in Table 4. Since 31 GW of PV power has to be installed at distribution level to reach 51 GW, for the LV size, the installed power of domestic PV plants should at least double and in the fast growth scenario, it should triple. Thus, the variation will be considered within 100 and 200%. Concerning the PV installed at MV, the current plants are left as they are, while new PV plants are supposed to rise in the proximity of the MV customers, affecting between 50% and 90% of them. Most of the studies highlight a sudden boom in the sale of EV between 2020 and 2025, when the technology would be mature to be worldwide adopted. Unfortunately, nowadays, Italy holds one of the last positions in the European ranking of EV readiness, hence, the forecasts are discouraging; even in the best scenario the percentage goal to contain the emission is not achieved. The Italian percentages of EV share in 2030 according to e-distribuzione fluctuate between 10 and 15%.
The integrated EVCSs are assumed to be: The number of every kind of EVCS is proportional to the EVs share and the number of vehicles circulating in the area, but it is obtained following different methodologies and considering a battery capacity of 80 kWh. It is worth to note that the study is focused on how the distribution grid could be affected by the increase of installed PV power, EVCSs and their management. Thus, any kind of technical information, such as kind of socket connection, details of the recharge and battery properties, is avoided, because they do not concern this dissertation.
From the DSO point of view, the EVCS could be seen as a flexible load. Indeed, the charging stations can not only withdraw energy from the grid, as is pretty much common today, but they will be able to inject power, as is shown in many pilot projects, with so-called Vehicle to Grid (V2G) technology [13][14][15][16][17][18][19][20][21]. In this framework, an assumption for simulations is to consider that 25% of the batteries are not accessible, because they need to be charged.

OPF Objetive Functions
In reference to these scenarios and assumptions, different OPF analyses have been performed in reference to different objective function. In particular, to minimize the losses, to get a peak shaving function and to get a voltage drop containment.
The higher the power crossing the primary ESS, the higher are the losses in the system, and consequently, the operation cost. This is the reason why the DSOs are often concerned about the minimization of the active power flow in the primary ESS. The peak shaving concept lies on the assumption that some loads or generator can be shifted in time to avoid high losses on the grid. Any storage available in the grid could be a source to fulfil this need, since it can inject and withdraw energy whenever it is needed, respecting the capacity and maximum power constraints. The batteries of the EV connected to the distribution grid can be a useful storage for this task. In particular, the peak shaving corresponds to an energy injection (or withdraw in case of negative peak) that has to be withdrawn (or injected) within the day to allow the daily cycle of an EV battery. The proposed EV battery cycle considers that the EV drivers change the range setting of the lower limit of the State of Charge (SOC) to 50%. Furthermore, the hypothetic daily trip (9% of discharge) is divided into the route from home to office and vice versa (Figure 2). The energy injected to the grid has to be the 82% of the energy withdrawn during the day to have a perfect charging cycle. The energy spent during the route is seen as a loss from the grid point of view, but it is in fact the energy that makes the EVs move, thus, the most useful from the driver's point of view. Two algorithms have been carried on with two different primary goals: to reduce the evening peak and to reduce the reverse power flow. These two purposes cannot be completely decoupled from each other; indeed, as an EV battery is going to be discharge in the evening, it will unavoidably recharge during the day, flatting the negative peak and vice versa. The goal of the analysis is to evaluate the power, the energy and the percentage of EVs involved guaranteeing a given peak shaving service. This evaluation of peak shaving potential is based on thresholds that limit the positive active power, which can flow through the primary ESS; once this limit is broken, the algorithm is set to exploit the charging station to balance the grid. The evening peak set point is 4.7 MW, because it allows a realistic exploitation of the EVs batteries without requiring more power than the available one. The minimum active power threshold is set to -2.7 MW.
As the voltage drop is remarkable during summer evening, the home stations are programmed to inject power to the grid when violation occurs. An important assumption is made: the stations belong to the DSO or the EVs users are inclined to accept less power availability, the available power indeed can be modified to provide local services, only if there is a will from the battery side. The percentage of the availability of the battery to be charged or discharged and the presence of the vehicles have been considered equal to 45% of the total installed power. This analysis aims to verify whether the defined percentage of dispatchable power can guarantee the containment of the voltage drop within ±6.3%.

PF Analysis
A first PF analysis has been made in reference to the future scenarios, for checking the performance of the grid, without any dispatching model implemented. The results are here reported in reference to the case more stressing, which is the one for the fast growth scenario in spring and summer. The impact of increased PV systems, home stations and pole stations on the grid in terms of active power at the MV bus-bar is shown, for the fast growth scenario, in Figure 3a for the spring season and in Figure 3b for the summer season, compared to the real profile of nowadays. It is evident that the presence of the EVCS has as results an increasing of the amount of active power at MV busbar, only during evening hours, linked to the evening use of the home stations. During the noon hours, the prevalent effect is of increasing of the negative active power at MV bus-bar (up to 5 MW), due to the higher production by new PV plants. The energy injected to the grid has to be the 82% of the energy withdrawn during the day to have a perfect charging cycle. The energy spent during the route is seen as a loss from the grid point of view, but it is in fact the energy that makes the EVs move, thus, the most useful from the driver's point of view. Two algorithms have been carried on with two different primary goals: to reduce the evening peak and to reduce the reverse power flow. These two purposes cannot be completely decoupled from each other; indeed, as an EV battery is going to be discharge in the evening, it will unavoidably recharge during the day, flatting the negative peak and vice versa. The goal of the analysis is to evaluate the power, the energy and the percentage of EVs involved guaranteeing a given peak shaving service. This evaluation of peak shaving potential is based on thresholds that limit the positive active power, which can flow through the primary ESS; once this limit is broken, the algorithm is set to exploit the charging station to balance the grid. The evening peak set point is 4.7 MW, because it allows a realistic exploitation of the EVs batteries without requiring more power than the available one. The minimum active power threshold is set to -2.7 MW.
As the voltage drop is remarkable during summer evening, the home stations are programmed to inject power to the grid when violation occurs. An important assumption is made: the stations belong to the DSO or the EVs users are inclined to accept less power availability, the available power indeed can be modified to provide local services, only if there is a will from the battery side. The percentage of the availability of the battery to be charged or discharged and the presence of the vehicles have been considered equal to 45% of the total installed power. This analysis aims to verify whether the defined percentage of dispatchable power can guarantee the containment of the voltage drop within ±6.3%.

PF Analysis
A first PF analysis has been made in reference to the future scenarios, for checking the performance of the grid, without any dispatching model implemented. The results are here reported in reference to the case more stressing, which is the one for the fast growth scenario in spring and summer. The impact of increased PV systems, home stations and pole stations on the grid in terms of active power at the MV bus-bar is shown, for the fast growth scenario, in Figure 3a for the spring season and in Figure 3b for the summer season, compared to the real profile of nowadays. It is evident that the presence of the EVCS has as results an increasing of the amount of active power at MV bus-bar, only during evening hours, linked to the evening use of the home stations. During the noon hours, the prevalent effect is of increasing of the negative active power at MV bus-bar (up to 5 MW), due to the higher production by new PV plants.   From the simulation results, the voltage was also checked: a drop of 6.71% was tested during summer, but it was confined within 5% during the rest of the year. Nevertheless, the grid still did not experience any congestion and it is highly suitable for further installations.

OPF Analysis In Case Of Evening Peak Shaving Service
The most interesting scenario analyzed is the most stressful, that is, the fast growth one during a summer weekday. A threshold assumed to be of 4.7 MW implicates an energy injection of 760 kWh, which stands for an exploitation of 29 home stations more than the foreseen ones. The peak power indeed reaches 800 kW ( Figure 5), which means a contemporary recharge of about 111 EVs. The recharges consider the energy spent for the daily trip and they occur during the rest of the day, preferably during the time of reverse power flow. The 111 vehicles are 60% of the total EVs fleet, but 79% of the available EVs.  Figure 4 shows the trend of the active power in the primary ESS adding also the super-fast EVCS, which could require up to 750 kW, during spring season (a) and summer season (b). The effect is the same described for the case in Figure 3.   From the simulation results, the voltage was also checked: a drop of 6.71% was tested during summer, but it was confined within 5% during the rest of the year. Nevertheless, the grid still did not experience any congestion and it is highly suitable for further installations.

OPF Analysis In Case Of Evening Peak Shaving Service
The most interesting scenario analyzed is the most stressful, that is, the fast growth one during a summer weekday. A threshold assumed to be of 4.7 MW implicates an energy injection of 760 kWh, which stands for an exploitation of 29 home stations more than the foreseen ones. The peak power indeed reaches 800 kW ( Figure 5), which means a contemporary recharge of about 111 EVs. The recharges consider the energy spent for the daily trip and they occur during the rest of the day, preferably during the time of reverse power flow. The 111 vehicles are 60% of the total EVs fleet, but 79% of the available EVs. From the simulation results, the voltage was also checked: a drop of 6.71% was tested during summer, but it was confined within 5% during the rest of the year. Nevertheless, the grid still did not experience any congestion and it is highly suitable for further installations.

OPF Analysis In Case Of Evening Peak Shaving Service
The most interesting scenario analyzed is the most stressful, that is, the fast growth one during a summer weekday. A threshold assumed to be of 4.7 MW implicates an energy injection of 760 kWh, which stands for an exploitation of 29 home stations more than the foreseen ones. The peak power indeed reaches 800 kW ( Figure 5), which means a contemporary recharge of about 111 EVs. The recharges consider the energy spent for the daily trip and they occur during the rest of the day, preferably during the time of reverse power flow. The 111 vehicles are 60% of the total EVs fleet, but 79% of the available EVs. Energies 2020, 13, x FOR PEER REVIEW 9 of 13 (a) (b) Figure 5. Active power at the MV side of the primary ESS and power injected by the EV home stations for the evening peak shaving (a); power available by the home stations (b).

OPF Analysis In Case Of Reverse Power Flow Shaving
From the energy point of view, the system will need to charge 22 EVs more to increase the energy demand of 880 kWh. On the other hand, 949 kW of peak power ( Figure 6) requires 21 EVCS more, with the strong assumption that they are used at the same time. In this case, the peak power dictates the right spread of EVs which is equal to 49%. Nevertheless, this percentage is not actually a needed condition for the right functioning of the system, it should need just 42 EVs plugged at the same time. The recharge implies the discharge of part of the battery during the evening; this helps to smooth out the peak power and the voltage.  Table 5 shows the results of the peak shaving analysis: the power and energy required by the DSO vary according to the goal set. The EV drivers' awareness is calculated as the number of EV drivers that allow the grid to use their own battery over the total number of EV drivers in the area. The easier objective to implement appears to be the noon negative peak shaving, which requires only 22% of drivers' awareness. Nevertheless, this solution implies that installing 21 EVCS is too many compared to the circulating fleet (420 more EVs should be bought).
The noon shaving goal instead could be reach without any economic effort; it simply depends on the EVS drivers' availability, which should reach a quite high percentage.

OPF Analysis In Case Of Reverse Power Flow Shaving
From the energy point of view, the system will need to charge 22 EVs more to increase the energy demand of 880 kWh. On the other hand, 949 kW of peak power ( Figure 6) requires 21 EVCS more, with the strong assumption that they are used at the same time. In this case, the peak power dictates the right spread of EVs which is equal to 49%. Nevertheless, this percentage is not actually a needed condition for the right functioning of the system, it should need just 42 EVs plugged at the same time. The recharge implies the discharge of part of the battery during the evening; this helps to smooth out the peak power and the voltage.

OPF Analysis In Case Of Reverse Power Flow Shaving
From the energy point of view, the system will need to charge 22 EVs more to increase the energy demand of 880 kWh. On the other hand, 949 kW of peak power ( Figure 6) requires 21 EVCS more, with the strong assumption that they are used at the same time. In this case, the peak power dictates the right spread of EVs which is equal to 49%. Nevertheless, this percentage is not actually a needed condition for the right functioning of the system, it should need just 42 EVs plugged at the same time. The recharge implies the discharge of part of the battery during the evening; this helps to smooth out the peak power and the voltage.  Table 5 shows the results of the peak shaving analysis: the power and energy required by the DSO vary according to the goal set. The EV drivers' awareness is calculated as the number of EV drivers that allow the grid to use their own battery over the total number of EV drivers in the area. The easier objective to implement appears to be the noon negative peak shaving, which requires only 22% of drivers' awareness. Nevertheless, this solution implies that installing 21 EVCS is too many compared to the circulating fleet (420 more EVs should be bought).
The noon shaving goal instead could be reach without any economic effort; it simply depends on the EVS drivers' availability, which should reach a quite high percentage.  Table 5 shows the results of the peak shaving analysis: the power and energy required by the DSO vary according to the goal set. The EV drivers' awareness is calculated as the number of EV drivers that allow the grid to use their own battery over the total number of EV drivers in the area. The easier objective to implement appears to be the noon negative peak shaving, which requires only 22% of drivers' awareness. Nevertheless, this solution implies that installing 21 EVCS is too many compared to the circulating fleet (420 more EVs should be bought). The noon shaving goal instead could be reach without any economic effort; it simply depends on the EVS drivers' availability, which should reach a quite high percentage.

OPF Analysis In Case Of Voltage Drop Containment
The active power through the primary ESS has not changed a lot, except for the evening peak between 8 pm and 10 pm, when the home stations inject active power to compensate the voltage violation (Figure 7). The home stations are indeed the only source that can be exploited because it is the only one available during those hours.

OPF Analysis In Case Of Voltage Drop Containment
The active power through the primary ESS has not changed a lot, except for the evening peak between 8 pm and 10 pm, when the home stations inject active power to compensate the voltage violation ( Figure 7). The home stations are indeed the only source that can be exploited because it is the only one available during those hours. The total power requested by the grid is 273 kW, thus, 57% of the total dispatchable power. The violation is highly contained within the threshold; this scenario requires only 37 available EVs batteries for a total of 160 kWh. The energy needed is much lower than the one that the involved EVs can provide; thus, the reduction of energy in each car will be almost derisory.

Conclusions
A new paradigm for the management of distribution grids, with big amount of EVCS and RESbased DG, is investigated in reference to a real distribution grid, belonging to the main Italian DSO, e-distribuzione. First, in reference to future scenarios of spread of RES-based power plants and EVCS, some PF analyses have been made to check the performance of the distribution grid in reference to the usual operation. Second, considering a new dispatching model involving DSO and EVCS, the opportunity to provide different local and system services are tested, using OPF algorithms.
The impact of EVCS and DG power growth, in 2030, is modelled and simulated in MATLAB environment, for three future scenarios, according to the intensity of the diffusion. After running a first PF simulation, the network detected a high peak power, given by the evening loads and a negative peak power provided by the DG plants. Thus, with OPF algorithms, the flexible management of the installed EVCS for providing services to the DSO was tested. The first algorithm was intended to cut off the voltage violations that occur if the voltage limits are at ±6.3%, as local service. The OPF algorithm tends to maximize the available power at the EVCS and acts only if a violation occurs. The study proved that it is possible to successfully contain the voltage drop within 6.3%, assuming an EVs availability of 45%. Another OPF algorithm had the goal to restrict the active The total power requested by the grid is 273 kW, thus, 57% of the total dispatchable power. The violation is highly contained within the threshold; this scenario requires only 37 available EVs batteries for a total of 160 kWh. The energy needed is much lower than the one that the involved EVs can provide; thus, the reduction of energy in each car will be almost derisory.

Conclusions
A new paradigm for the management of distribution grids, with big amount of EVCS and RES-based DG, is investigated in reference to a real distribution grid, belonging to the main Italian DSO, e-distribuzione. First, in reference to future scenarios of spread of RES-based power plants and EVCS, some PF analyses have been made to check the performance of the distribution grid in reference to the usual operation. Second, considering a new dispatching model involving DSO and EVCS, the opportunity to provide different local and system services are tested, using OPF algorithms.
The impact of EVCS and DG power growth, in 2030, is modelled and simulated in MATLAB environment, for three future scenarios, according to the intensity of the diffusion. After running a first PF simulation, the network detected a high peak power, given by the evening loads and a negative peak power provided by the DG plants. Thus, with OPF algorithms, the flexible management of the installed EVCS for providing services to the DSO was tested. The first algorithm was intended to cut off the voltage violations that occur if the voltage limits are at ±6.3%, as local service. The OPF algorithm tends to maximize the available power at the EVCS and acts only if a violation occurs. The study proved that it is possible to successfully contain the voltage drop within 6.3%, assuming an EVs availability of 45%. Another OPF algorithm had the goal to restrict the active power flow in the primary ESS within an upper and lower limit. This is effectively done to lessen the grid losses and provides a given value of maximum input/output power to the transmission grid, as system service. The tests have shown that the availability of EVs drivers to provide this kind of services is fundamental rather than high spread of EVs. In general, all the results show that the proposed paradigm of dispatching involving DSO and their resources (EVCS and DG) can effectively improve the distribution grid performance, to prevent its operation problems (such as under-voltages or congestions) and to support the whole power system management with system services.