Next Article in Journal
Time-Series Interval Forecasting with Dual-Output Monte Carlo Dropout: A Case Study on Durian Exports
Previous Article in Journal
A Markov Switching Autoregressive Model with Time-Varying Parameters
Previous Article in Special Issue
An Alternative Proof of Minimum Trace Reconciliation
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Impact of PV and EV Forecasting in the Operation of a Microgrid

Department of Energy, Politecnico di Milano, 20156 Milan, Italy
*
Author to whom correspondence should be addressed.
Forecasting 2024, 6(3), 591-615; https://doi.org/10.3390/forecast6030032
Submission received: 14 June 2024 / Revised: 12 July 2024 / Accepted: 28 July 2024 / Published: 31 July 2024
(This article belongs to the Special Issue Feature Papers of Forecasting 2024)

Abstract

:
The electrification of the transport sector together with large renewable energy deployment requires powerful tools to efficiently use energy assets and infrastructure. In this framework, the forecast of electric vehicle demand and solar photovoltaic (PV) generation plays a fundamental role. This paper studies the impact of forecast accuracy on total electric cost of a simulated electric vehicles (EVs) charging station coupled with true solar PV and stationary battery energy storage. The optimal energy management system is based on the rolling horizon approach implemented in with a mixed integer linear program which takes as input the EV load forecast using long short-term memory (LSTM) neural network and persistence approaches and PV production forecast using a physical hybrid artificial neural network. The energy management system is firstly deployed and validated on an existing multi-good microgrid by achieving a discrepancy of state variables below 10% with respect to offline simulations. Then, eight weeks of simulations from each of the four seasons show that the accuracy of the forecast can increase operational costs by 10% equally distributed between the PV and EV forecasts. Finally, the accuracy of the combined PV and EV forecast matters more than single accuracies: LSTM outperforms persistence to predict the EV load (−30% root mean squared error), though when combined with PV forecast it has higher error (+15%) with corresponding higher operational costs (up to 5%).

1. Introduction

The transportation sector is a major polluter, as it accounted for 28.51% of the total greenhouse gas emissions in 2021 in Europe [1]. The evolution of current transportation fleets to electric vehicles (EVs) (10% of the road vehicle fleet is expected by 2030 [2]) will accelerate the green transition and decarbonization of Europe. This rapid increase in EV adoption will considerably affect electric grids since a large charging network is required, with a special focus on optimal planning and operation of public charging stations (CSs). Therefore, it is essential to monitor and regulate the charging process, to exploit renewable energy sources (RESs) locally, and, where needed, to include stationary storage. Implementing novel emerging technologies for the optimization of the charging process is crucial for exploiting RESs, especially solar photovoltaic (PV) production [3], and stabilizing the grid [4]. EVs charging stations powered by the grid, PV, and a battery energy storage system (BESS) are analyzed by the scientific community from the placement [5], sizing [6], implementation [7], and energy scheduling [8] points of view, among others. From this perspective, CS integration is being investigated under the lens of microgrids (MGs) [9]. In the scientific literature on MGs, several works stressed the importance of optimizing MG operation [10], as well as the relevance of using accurate forecasting methods in the optimization of MG energy management [11,12]. Forecasting and optimization techniques are also being developed considering the achievements in managing uncertainties in MGs [13].
Load forecasting plays a significant role in demand-side management (DSM) [14,15,16], where it serves as a crucial element in balancing load demand and power production.
EV load forecasting methods are categorized into traditional statistical models and artificial intelligence models [17]. Traditional models include time series analysis, autoregressive integrated moving average (ARIMA), regression analysis, Kalman filtering, and statistical methods, while artificial intelligence methods encompass artificial neural network (ANN), support vector machine, and deep learning (DL) models. Initially, statistical models were preferred due to limited EV charging data, necessitating the creation of realistic scenarios through computational algorithms [18]. However, with the greater availability of electric vehicle supply equipment (EVSE) load data, the focus has shifted to data-driven approaches, particularly ANNs, in EV power load forecasting research [19,20]. In [21], a review of EV scheduling, clustering, and forecasting, the authors report that artificial intelligence models have been the preferred approach for many researchers, as they perform better than other probabilistic models.
Long short-term memory (LSTM) recurrent neural networks (RNNs) appear to be exceptionally proficient in predicting load across diverse time series problems [22]. In [23], an LSTM model combined with feature engineering empirical mode decomposition (EMD) is benchmarked against seasonal autoregressive integrated moving average (SARIMA) obtaining a skill score up to 73% relative to 7-day persistence. The literature consistently demonstrates the superior performance of LSTM networks in the field of EVs charging forecasts. Hence, based on these findings, we have selected the LSTM model as the cornerstone of our work due to its demonstrated effectiveness and suitability for the task at hand.
Moving to the EVs charging optimization, the operation of CSs relying on PV and BESS was performed with several different methods and goals. Selected approaches generally aim to achieve cost minimization [24] or profit maximization [25] according to the use case, but also enhanced grid support through self-consumption [26] and charging scheduling [27] the effectiveness of pre-calculated schedules can be compromised by uncertainties in the arrival and departure times of EVs and fluctuations in energy demand. Therefore, real-time operation algorithms must have robustness with respect to load as well as forecast uncertainties, as described in the previous subsection.
Regarding optimization methods, probabilistic approaches are robust and reliable in uncertain environments but suffer from heavy computational time [28]. This drawback is partially solved by robust optimization (RO) [29]. Model predictive control (MPC) is extensively used for robustness and reliability obtained through the receding horizon approach but also suffers from high computational time. Therefore, MPC is often used as the later stage in a multi-stage formulation to amend the decision made by an earlier algorithm in real time. Other relevant methods are metaheuristics algorithms and fuzzy logic optimization [30,31].
Deterministic models, and mixed-integer linear programming (MILP) in particular, are still the most widely adopted because they can identify the global optimal solution given convexity and a continuously differentiable cost function, with computational time compatible with industrial applications. MILP models are used both in real-time operation [32] or in day-ahead scheduling as a first stage that can then be adapted in real time through an operation layer [33]. Indeed, a multiple-stage optimization considers the uncertain behavior of the PV production and EV demand providing an improved solution for real-time energy management.
While stochastic and robust optimization approaches offer a more accurate and modelically correct way to handle uncertainties, their computational complexity often makes them impractical for real-time optimization. These approaches require solving extensive scenario-based models or worst-case formulations, leading to significantly longer solution times. Therefore, despite their robustness, they are not feasible for applications needing immediate decision-making. MILP, on the other hand, strikes a balance between accuracy and computational efficiency, making it suitable for real-time applications where timely decisions are crucial.
In this context, the predict-then-optimize (PTO) framework is still the most widely adopted to optimize this kind of systems. The PTO integrates prediction and optimization processes to enhance decision-making under uncertainty. In this framework, the prediction phase involves using statistical or machine learning models to forecast future uncertain parameters, such as demand, prices, or weather conditions. These forecasts are then input into an optimization model, which aims to find the best decision that minimizes cost or maximizes profit, given the predicted values. The key interaction between these two processes lies in how the predictions inform the optimization model. Accurate predictions lead to more effective optimization, as the optimization process relies on these forecasts to construct a solution that is robust against the predicted uncertainties. This interplay ensures that the optimization model is adaptive and responsive to future scenarios, thus enhancing the overall performance of the decision-making process.
Despite works on energy management system (EMS) validation and testing conducted in several universities and research centers (Public University of Navarre [34], Aalborg University [35], Center for Renewable Energy Sources and Saving (Athens) [36,37], and in Catalonia Institute for Energy Research [38]), there is still a lack of literature on the impact of prediction errors on microgrid operations, both in simulations and experimental facilities.
The scope of this work is to evaluate the impact of EV forecasting in the optimization framework, meaning that in addition to forecast skill these methods affect the operation of the microgrid from a technical and economic point of view. This paper evaluates how different EV forecast methods affect a sequential decision-making process, which is the outcome of a two-stage optimization tool. This study is performed on a physical MG located in Politecnico di Milano, Department of Energy [39], in addition to offline computer simulations.
This work is a novel contribution because the literature has yet to adequately cover how forecasting errors affect operational costs in a true functioning microgrid. While the predict-then-optimize approach is widely recognized, only a few studies have thoroughly examined its practical limitations. Notably, it is not well understood how the accuracy of load and solar forecasts influences the operational costs for a dynamic pricing electric tariff downstream of the optimizer and control equipment. Only a few papers have explored the error impact of different electric vehicle (EV) forecasting techniques within a hierarchical predictive control strategy aimed at optimizing microgrid operations. Finally, a significant distinction of this study compared to others is its real-time experimental validation and long-term simulation using highly accurate data from MG2Lab. For instance, a significant gap in the literature is the use of true building-scale microgrids in testing. In [40], a microgrid EMS is designed and implemented in a small bench-top testbed and further implanted at a commercial building with a maximum 300 kW load; however, all of the DERs are hardware-in-the-loop simulated by power converters rather than by true batteries and solar PV modules. The results are therefore much more credible than just a software simulation but lack some of the characteristics and uncertainty when controlling true Li-ion electrochemical cells and true silicon PV cells. Attempting to cover these gaps, the paper presents a comprehensive analysis of EV forecasting techniques error impacts, a comparative analysis and experimental validation between two methodologies (LSTM and persistence), and a long numerical analysis based on historical data.
The remainder of the article is structured as follows. Section 2 presents the optimization and forecasting methodologies employed in the energy management system of the proposed case study, described in Section 3. In Section 4, the model implementation is explained, as well as how the experimental testing facility is used. Section 5 includes the relevant results of this work, which is summarized and concluded in Section 6.

2. Methodology

2.1. Optimal Dispatch

The microgrid employs a two-layer EMS, previously described in [41], based on a rolling horizon (RH) approach where the first layer of the EMS is run every 15 min. The first layer determines the optimal dispatch of the BESS over the next 24 h, taking as input the forecast of both the EV load and PV generation, to minimize the operational cost of the system. The optimizer always takes into account technical constraints. However, as power unbalances inevitably arise due to forecast errors it is necessary to adopt a second layer to correct these unbalances in real time.
The first layer adopts an MILP formulation where variables model different power flows within the system (e.g., PV production, import/export from/to the grid, charge/discharge of the BESS). The optimal operation of the microgrid over the optimization horizon is evaluated by minimizing the total operational costs:
O F = m i n t     T 1 Φ t O p e x
where:
Φ t O p e x = c t p u r c h · P t g r i d , p u r c h · d t 1 r t s e l l · P t g r i d , s e l l · d t 1 + e s E S c e s T P · P e s ,   t d i s c h · d t 1 + ρ d e v · S O E t d e v + c c u r t · N D n d , t c u r t · d t 1 + c U D · U D t · d t 1
The main components of the aforementioned and following equations are explicitly stated in the Appendix A.
Meanwhile, the total operational cost Φ t O p e x associated to each timestep t is given by the sum of four main components:
  • c t p u r c h · P t g r i d , p u r c h · d t 1 r t s e l l · P t g r i d , s e l l · d t 1 represents the cost and revenue (negative cost) coming from the withdrawal and injection of power from/into the grid;
  • e s E S c e s T P · P e s ,   t d i s c h · d t 1 + ρ d e v · S O E t d e v is the sum of the BESSs’ throughput-based O&M cost, and penalty cost associated with their state of energy (SOE) deviations;
c c u r t · N D n d , t c u r t · d t 1 + c U D · U D t · d t 1 are penalty costs for curtailment of RES generation and unmet demand.
Forecasted PV production is an input to the EMS and can be curtailed if necessary. The BESSs are modeled on an energy basis with self-discharge efficiency, and separate charge/discharge efficiencies which are a function of battery power, that are evaluated through piecewise linear interpolation. To avoid damage, constraints are imposed to limit the state of charge (SOC) between lower and upper bounds and the maximum power that can be charged/discharged by the BESS. In addition, there is a constraint to ensure a balanced SOC between the two BESSs. Interaction with the electrical grid is constrained by setting a maximum value on the power that can be imported/exported by the microgrid. Details about the mathematical formulation of the constraints and detailed nomenclature can be found in Appendix A: Energy Management System.
The second layer is a heuristic approach taking as input BESS and grid setpoints determined by the first layer as well as discrepancies between the PV and EV load forecasts and the actual values. Depending on the signs and magnitude of these errors, the microgrid can be either in “power excess”, where the inbound power flows are higher than the outbound ones, or in “power deficit”. The logic adopted is to keep the first layer setpoint of power exchanged with the electrical grid. First, either the unmet demand or PV curtailment is reduced in the case of “power excess” and “power deficit”, respectively. If that this is not enough, or if unmet demand and PV curtailment set by the first layer are equal to zero, the BESSs intervene to reduce the power balance. When the BESSs cannot correct the unbalances then the setpoint of the power exchanged with the grid is modified. Lastly, in the extreme case of unbalance even after all the previous points, either PV curtailment or unmet demand is increased in the case of “power excess” and “power deficit”, respectively.

2.2. EV Forecasting

2.2.1. LSTM with Attention

The EV charging power forecast is performed by an LSTM encoder–decoder with attention, inspired by Bahdanau [42]. The mathematical formulation of the LSTM and attention mechanism is described in Appendix B: EV Charging Forecaster. Each encoder and decoder is a single-layer LSTM of 24 hidden units, a value chosen by hyperparameter optimization. Training is performed with the Adam optimizer and early stopping to limit overfitting. The input vector is the most recent 3 days of EV charging power measurements and time-keeping variables such as day of week and time of day. The output vector is the next three days of charging power values. Power is always a 15 min interval average power time series. The training data subset is the EV charging load data in Section 4.2, less than 8 weeks—from each winter, spring, summer, and autumn—which are used for the test data subset. The model is trained using an early stopping criterion which monitors the validation loss, calculated on the final 20% of the training subset.

2.2.2. Persistence

The benchmark forecast model is naive persistence, which estimates any timestep t as equal to the past timestep t l , where l is the lag value or the number of timesteps in the past. In a modified version sometimes called seasonal persistence, the lag value l is chosen to match an appropriate seasonality in the data, often daily or weekly for electric consumption. In the present case study, the EV charging data present a strong weekly seasonality; therefore, the value of lag is chosen equal to 672 steps (7 days). The timestep t is forecasted with the measurement from t 7 d or t 168 if the time series interval is 1 h. This is described in Equation (3), where y f o r e c a s t is the forecasted value and y t r u e the measured one.
y f o r e c a s t t = y t r u e t l
While it is possible to use persistence for a day-ahead solar PV forecast, the benchmark would not be very useful. Weather conditions in many climates, including the humid subtropical designation of the solar plant in this study, can change dramatically between consecutive days, so even very poorly trained solar PV forecast models could outperform 1-day persistence. Persistence is more common for solar nowcasting where the time horizon is 1 to 60 min.

2.3. PV Forecasting

The solar PV forecast is a hybrid physical–regression method developed and validated on the Multi-Good MicroGrid Laboratory (MG2Lab) microgrid in [43]. The model outputs a day-ahead solar production time series at 15 min intervals. The model inputs are a numerical weather forecast for the location, physical plant specifications from the PV modules, and the most recent day of solar production time series. The model provides the solar production forecast based on numerical weather prediction for the week ahead at the considered locations and clear-sky radiation (CSR) of the plane of arrival to the array. The numerical weather forecast is from the European Center for Medium-Range Forecasts [44] and it is provided by a private company. The PV forecasting tool uses the global horizontal irradiance (GHI), air temperature, wind direction and speed, precipitation, humidity, and pressure. The list of the employed data is added in the following Table 1. A share of 80% of the whole dataset is used for the training and the remaining 20% for the validation.
The CSR model is based on reference evaluation of solar transmittance, 2 bands (REST2) that considers more variables than similar atmospheric models and is validated by the literature as one of the best-performing CSR models [45]. Finally, the GHI must be tilted to the plant-of-arrival of the solar plant, given its azimuth and tilt angles.
The ANN is trained daily on the previous day’s measured values in a supervised learning fashion, such that the weights and biases are optimized to produce a series of past outputs given past inputs. The ANN is retrained once per day to learn short-term patterns, such as a weather forecast which is consistently under estimating temperature.

2.4. Predict-Then-Optimize Approach

In this work, the predict-then-optimize framework, which integrates forecasting models and optimization techniques, has been adopted to enhance decision-making under uncertainty while maintaining computational tractability for implementation in an experimental facility. In this context, forecasts of EV load and PV generation, as described in Section 2.2 and Section 2.3, are used as inputs for the optimization process.
In particular, the EMS employs a rolling horizon (RH) approach where the first layer (where the optimization phase is performed) utilizes these forecasts within an MILP formulation to evaluate the optimal operation of the microgrid, including PV production, grid interactions, and BESS operations. The MILP model ensures that the first layer of the EMS can find a globally optimal solution under the given forecasted conditions, balancing the operational costs defined in Section 2.1. The real-time adjustments are then handled by the second layer, which corrects any discrepancies arising from forecast errors, thereby maintaining system balance and operational efficiency.

3. Error Metrics

Statistical error metrics are necessary for training forecasting models and provide a summary of forecast performance to compare to other works in the literature. In the equations below, y is always a time series of true measurements or forecasted values and n is the length of the series.
  • Root mean squared error (RMSE) is the square root of the mean squared error (MSE), making the units of RMSE the same as the data for a helpful comparison. Since it is closely related to the MSE which is used to train the LSTM, RMSE will also closely reflect how well a model was trained;
    R M S E = 1 n ( y t r u e y f o r e c a s t ) 2
  • Mean absolute error (MAE) is also reported here because it is common in the literature and very intuitive, giving equal weight to large and small errors;
    M A E = 1 n | y t r u e y f o r e c a s t |
  • Symmetric mean absolute percentage error (SMAPE) is somewhat contested in the literature and there is no one single definition. However, the following definition is adequate because in this application there is no practical or theoretical problem with negative SMAPE values. Since all SMAPE definitions have terms in the denominator it is necessary to omit from the metric timesteps when the sum of y t r u e and y e s t i m a t e d is zero.
    S M A P E = 100 n | y t r u e y f o r e c a s t | 0.5 ( y t r u e + y f o r e c a s t )

4. Experimental Setup and Case Study

This section presents the case study investigated in this work as well as the testing facility, located at Politecnico di Milano (Milan, Italy), where the experimental activities have been carried out. The MG2Lab setup available in the Department of Energy of Politecnico di Milano integrates different distributed energy resources like solar PV, combined heat and power, BESS, and hydrogen storage. Details about the microgrid, which can be operated both grid-connected or grid-islanded, can be found in [43].

4.1. Experimental Facility and Model Implementation

The selected MG2Lab’s components, as well as the structure of the EMS used for managing operation of the components, are presented in Figure 1.
Specifically, the setup comprises the following units:
  • Grid connection: limited to 100 kW, used for withdrawing or injecting power from/to the distribution grid;
  • Non-dispatchable RES: two PV arrays, both installed on the building roofs of 23 and 25 kWp;
  • Storage: two lithium-ion BESSs (BESS1 and BESS2) of 70 and 67.5 kWh, with a C-rate (C-rate is the rate of time in which the BESS takes to charge or discharge) equal to one and a minimum and maximum SOC equal to 35% and 85%, respectively. This results in an overall storage capacity of 68.75 kWh;
  • Load: simulated using a back-to-back (B2B) converter, which is a programmable load following the setpoints of an EV load dataset, scaled to a 25 kW maximum power.
The EMS consists of three different modules, namely the load forecaster, PV forecaster, and optimizer. These are implemented in Python and deployed on the microgrid PC, which communicate with each other through a MySQL database used for storing/handling data. The load forecaster module contains two different forecasting models, LSTM and persistence. The LSTM is implemented in TensorFlow, which is an open-source library by Google used to build and deploy machine learning models [46]. The LSTM and persistence models run every hour providing a load forecast for the following 1.5 days. The solar forecasting module utilizes the physical hybrid artificial neural network (PHANN) model described in [47] and implemented using TensorFlow. It runs twice a day following weather forecast updates and provides the PV forecast for the following seven days. The optimizer module is divided into the first and second layers, where the first layer is implemented in the Python-based open-source optimization library Pyomo [48]. It runs every 15 min considering an optimization horizon of 24 h. On the other hand, the second layer is used for real-time power balancing and therefore it is implemented using a programmable logic controller (PLC) with a frequency of 100 milliseconds. It communicates with the MySQL database to obtain the setpoints provided by the first layer and both the forecasted and measured values of the load and PV to perform the power balancing function. Additionally, a human–machine interface (HMI) is used to monitor the status of the microgrid and provide real-time measurements for the preliminary analysis of the results.

4.2. Case Study Description

The case study represents an EV charging station powered by the grid, PV, and BESS. The EV load is based on the records from the JPL (Jet Propulsion Laboratory) database from the adaptive charging network (ACN) [49]. This site has 52 EVSEs and is only accessible by employees, making it a good representation of a typical workplace schedule. The power curve of all 52 EVSEs is aggregated to reconstruct the whole charging station demand. However, only a subset of all the available data is considered suitable for the case study due to the anomalies associated with the COVID-19 pandemic. The considered set includes the sessions from 3 December 2018 to 4 January 2020. To accommodate the charging station demand within the MG2Lab capabilities, the aggregated load power is scaled to a maximum of 25 kW.
The cost of purchasing the electricity from the grid is assumed to be twice the Italian national unified price (Prezzo Unico Nazionale, PUN) to account for transmission and other costs, while the revenue from selling electricity to the national grid is set equal to the zonal price (Prezzo Zonale, PZ) of the North region. These costs are taken from the Italian electricity market [50] for the year 2023.
In Table 2, values and profiles of the typical weekly EV load and prices are provided.
Both online and offline simulations are carried out to support the methods developed in this work. Online simulations means that the EMS and forecasting are implemented in the MG2Lab experimental facility under real conditions, while offline simulations are computer-based using real data as input.
Online simulations aim to demonstrate that the developed models, including the different PV and EV forecasting methods, can be deployed in real system operation. The online simulations were run for two weeks on the MG2Lab microgrid with either the persistence or LSTM models to predict the EV load. In both weeks, the same EV load was programmed for consistency. On the contrary, the PV production and forecast were from the true irradiance at the MG2Lab. Measurements from the online experiment are then used for running offline simulations with both forecasters for comparison and validation of the approach. A summary of the considered weeks is reported in Table 3.
Offline simulations indicate the influence of EV load forecasts in different conditions by comparing the different forecasters over eight weeks, two from each season of the year. Simulations are carried out integrating the PV and EV load forecasts resulting from the JPL EV dataset and the measurements at MG2Lab’s PV field consistent with the season (i.e., for winter, two weeks of actual PV production in winter 2023 from the MG2Lab’s PV field and two winter weeks from the JPL database for EV load simulation are taken). The offline simulator, for each season, also considers different EV forecasting methods (see Table 2): persistence and LSTM forecast methods are considered. In addition, to have a benchmark case, a perfect forecast for both PV and EV is introduced, referred to as hourly mean lookahead (HML), where the perfect forecast predicts the exact average of PV and load measurements over 15 min. As the error metrics are based on forecasted data (averaged over 15 min) and measured data (discretized in 1 min intervals), statistical error metrics can never be zero even for the HML forecast, unless all measurements within the same 15 min interval are exactly equal to their average value. The case with the HML forecast for both PV and EV represents a lower bound for the simulations.
In this way, the offline simulations, besides showing the accuracy of each separate forecaster, show the combined statistical accuracy of PV and EV forecasting methods, the EV station operational costs, and quantify the impact of the forecast accuracy with respect to the ideal case.
Since the EMS adopts a rolling horizon approach, the residual SOC of the BESSs at the end of the simulation could not be imposed a priori; therefore, as different combinations of PV and load forecasts can lead to different final storage SOC, the difference between initial and final storage content is then accounted as an equivalent energy import from the grid, and it is valued at the minimum value of the import price over the entire simulation period.
For each case study, the following results have been reported:
  • Statistical performances of PV;
  • Load;
  • Total net electrical forecast defined as
    ε t o t = P V ^ f o r P V m e a s L o a d ^ f o r L o a d m e a s
  • Total operating costs;
  • Operational schedule of the system.

5. Results

In this section, the numerical and experimental results of the comparison of the different EV load forecasts implemented in the deterministic EMS approaches are presented.

5.1. Online Simulations

Measurements of the experimental campaign with the LSTM forecast are reported in Figure 2 (the case with persistence is not reported for brevity). The results are shown to demonstrate that results between the EMS operating in the microgrid with all the physical components and the simulations are consistent. Therefore, simulation results performed offline can be considered representative of the real operation of a microgrid.
Some general considerations can be noted while comparing the experimental results with the corresponding offline simulations:
  • On weekdays, when the electrical load is high, the microgrid imports electric energy at night when the electricity price is lower to charge the batteries, which are then discharged during the day in the absence of photovoltaic production;
  • Minor differences between the two figures occur and are related to the parasitic losses of the battery power supply systems and other equipment in the laboratory where the microgrid operates (mainly during night-time). The battery charging process measured in the experimental campaign is spread over more hours compared to the results of the simulation. Nevertheless, the quantities of electrical energy are nearly identical and the effect on the simulation results is negligible.
The overall energy and economic results for the different approaches tested in the microgrid are summarized in Table 4. Despite the identical load data used for each online week, there are small differences between simulations and experiments as the B2B converter requires a small amount of Gaussian noise added to the programmed load profile.
Finally, the operational costs of the offline simulations are in agreement with the experimental facility (i.e., Experimental), with differences below 10%. Considering that several systems and controllers present in the microgrid cannot be reasonably simulated offline, these results validate the proposed approach which can then be extended to the yearly simulations.

5.2. Offline Simulations

Once the MG2Lab approach was validated, offline simulations were conducted to assess the impact of the considered PV and EV forecasting methodologies by extending the analysis over a wider period. Results for two weeks in spring are presented, followed by the overall performance of the other three weeks.

Spring Case

For the spring season, the statistical performance indexes of the PV, load, and net load (combination of load and PV) forecasts are reported in Table 5.
As it is possible to notice, LSTM outperforms persistence in all the statistical performance parameters. However, when coupled with the PHANN day-ahead PV forecast, it results in a higher net electrical load forecast error among all the predictors. This first result suggests the importance of considering accuracy indexes accounting for the overall forecast and not focusing on each forecaster separately. Similarly, the calibration and development of the forecast tools shall account for the whole system and not only the specific good predicted.
Results of the offline simulations for a spring week (out of the two considered) are reported in Figure 3. The operational scheduling for both methods is quite similar across the different days of the week, except for some minor quantitative differences in the net electricity imported from the grid, which appears to be slightly lower in the persistence case.
However, the major difference can be seen on 7 April: in the operational scheduling with persistence, the EMS imports electricity from the grid only in the first hours of the day to meet the load, then the BESSs are discharged in the following hours. The operational scheduling of the LSTM (right) is different, as the EMS imports electricity from the grid throughout the day without discharging the BESSs, resulting in higher operational costs, as summarized in Table 6.
As the PV forecasts used to perform these simulations were the same for both case studies, the higher import from the grid during the EMS–LSTM operations was only related to the accuracy of the net electrical load forecasts. This difference, which results in higher operational costs, can be attributed to two main factors:
  • Purchase and sale prices fluctuate throughout the 24 h cycle, with this dynamic being particularly pronounced during the spring season. In fact, as it is possible to see from the table above, the EMS with persistence imports electricity at an average price of 0.257 €/kWh and exports to the grid at 0.15 €/kWh, while the average price for the EMS with LSTM is 0.292 €/kWh with a similar value when exporting. This is because the overall LSTM errors may be lower in absolute value compared to those of persistence, but they are more pronounced during the hours of the day when electricity prices are significantly higher (for purchases), therefore resulting in a more relevant impact;
  • The accuracy of the net load forecasts is not the algebraic result of PV and EV forecasts: errors can amplify or reduce depending on the particular case. For instance, in the persistence case, errors in PV and load forecasts may exhibit opposite signs, potentially mitigating the overall inaccuracies of the individual forecasters. In fact, when considering a perfect HML PV forecast, the EMS with LSTM demonstrates slightly lower operational costs.
Overall, the optimal case for the considered two spring weeks occurs for LSTM when coupled with the HML PV forecast, while persistence performs better when coupled with the PHANN PV forecast. This is another indication of the necessity to incorporate system management costs into the error function of forecasting algorithms, to reduce the errors associated with expensive balancing costs.

6. Overall Results

Below are the overall forecast accuracy and the economic operation results, respectively, for all the seasons, as summarized in Table 7.
Looking at the tables, the following conclusions can be drawn:
  • There is a good correspondence between the overall net electric errors and the economic results. The higher the accuracy of the combined forecast error the worse the operational cost; LSTM performs better when the HML PV forecast is assumed, while it is worse than persistent when the PHANN PV forecast is adopted;
  • The impact of EV and PV forecasts is pretty similar on the economic results when compared to the ideal case: in both cases, the difference in operating costs between using perfect and actual forecasts is around 5%;
  • The combination of PV and EV forecasts might lead to discrepancies up to 10% with respect to the ideal case.
Overall, these results suggest that the accuracy of a stand-alone forecast model is not relevant when it works in combination with other forecasters. Moreover, forecasters which have higher accuracy are outperformed by others when the accuracy of the prediction is time-relevant as this is for energy systems with varying electricity prices. Therefore, it is important to correctly predict the load or PV production when electricity prices are high and this aspect should be accounted for when training the forecast methods.

7. Conclusions

Currently, the predict-then-optimize approach remains one of the most widely adopted techniques for operational optimization in multi-energy systems. Although some conceptual limitations of this approach have been noted in the literature, few papers have attempted to investigate the impact of both load and solar forecast accuracy on the operational cost of an existing microgrid.
In this study, a detailed analysis has been conducted of the error impact of various EV forecasting techniques within a hierarchical predictive control strategy to optimize an EVs charging station microgrid operation. The analysis presented herein comprised an experimental part, during which two methodologies under investigation (LSTM and persistence) were tested within the experimental facility of the MG2Lab. Additionally, a simulation study was conducted extending the numerical analysis over a longer period, considering historical data collected in the laboratory in 2023.
The first relevant result of the study was the validated operation of a multi-good microgrid using both PHANN PV and LSTM EV load prediction combined with an EMS operated to minimize the operational costs. This confirmed that the methods developed are of interest for the quantitative results but can also be deployed in real systems.
Quantitative results showed that the accuracy of the combined forecast models matters: higher combined accuracy resulted in higher performance of the EMS with better operational results.
In addition, the accuracies of the different forecasters do not individually correlate with final performance. It was shown that LSTM has the highest accuracy in predicting the EV load; however, the EMS operating with the LSTM EV forecast can have the poorest performance when coupled with the PHANN PV forecast. Besides the interactions, LSTM is less accurate than persistence when electricity prices are high, resulting in higher operational costs.
Future works will focus on the development of new customized loss functions to train and evaluate forecasting models. These will depart from generic statistical performance metrics, aiming instead to capture downstream decision-maker dynamics, thereby providing forecasts that are optimized for the selected application. Initial investigations suggest this will result in a more integrated and cost-effective synergy between forecasting and optimization procedures.

Author Contributions

Conceptualization, G.M. and E.O.; methodology, G.M., E.O. and S.L.; software, A.F., D.G., S.M., R.S. and M.J.W.; validation, A.F., D.G., S.M., R.S. and M.J.W.; formal analysis, A.F., D.G., S.M., R.R. and M.J.W.; investigation, G.M.; writing—original draft preparation, G.M., A.F., D.G., S.M., M.S., F.S. and M.J.W.; writing—review and editing, E.O.; visualization, A.F., D.G., S.M., R.R. and M.J.W.; supervision, G.M. and E.O.; project administration, S.L.; funding acquisition, G.M. and S.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The raw data supporting the conclusions of this article will be made available by the authors on request.

Acknowledgments

This study was carried out within the MOST—Sustainable Mobility Center and received funding from the European Union Next-GenerationEU (PIANO NAZIONALE DI RIPRESA E RESILIENZA (PNRR)—MISSIONE 4 COMPONENTE 2, INVESTIMENTO 1.4—D.D. 1033 17/06/2022, CN00000023). This manuscript reflects only the authors’ views and opinions, neither the European Union nor the European Commission can be considered responsible for them.

Conflicts of Interest

The authors declare no conflicts of interest.

Nomenclature

Symbols
c c u r t Curtailment cost [€/kWh]
c t p u r c h Electricity   purchase   price   at   timestep   t [€/kWh]
c e s T P Throughput O&M cost of the energy storage technology
c U D Unmet demand cost [€/kWh]
d t 1 Timestep duration of the EMS I layer [hours]
l Lag
L o a d ^ f o r Load forecast
L o a d m e a s Load measurements
N D n d , t c u r t Average   timestep   curtailed   power   [ kW ]   of   non - dispatchable   generator   n d   at   t
O F Objective function
P e s ,   t d i s c h Average   timestep   discharge   power   exchange   [ kW ]   of   the   energy   storage   technology   e s   at   t
P t g r i d , p u r c h Average   timestep   power   [ kW ]   purchased   from   the   grid   at   t
P t g r i d , s e l l Average   timestep   power   [ kW ]   injected   to   the   grid   at   t
P V ^ f o r PV forecast
P V m e a s PV measurements
r t s e l l Electricity   selling   price   at   timestep   t [€/kWh]
S O E t d e v SOE   deviation   [ kWh ]   among   energy   storage   technologies   at   the   end   timestep   t
t Timestep
U D t Average   timestep   unmet   demand   [ kW ]   at   t
y t r u e Vector of true values
y f o r e c a s t Vector of forecasted values
Greek symbols
ε t o t Total net electrical forecast
ρ d e v Penalty factor for the SOE deviation between energy storage technologies
Φ t O p e x Total   operational   cost   at   timestep   t
Acronyms
ACNAdaptive charging network
ANNArtificial neural network
ARIMAAutoregressive integrated moving average
B2BBack-to-back
BESSBattery energy storage system
CSCharging station
CSRClear-sky radiation
DLDeep learning
DSMDemand-side management
EDEncoder–decoder
EMDEmpirical mode decomposition
EMSEnergy management system
EVElectric vehicle
EVSEElectric vehicle supply equipment
GHIGlobal horizontal irradiance
HMIHuman–machine interface
HMLHourly mean lookahead
JPLJet Propulsion Laboratory
LSTMLong short-term memory
MAEMean absolute error
MGMicrogrid
MILPMixed-integer linear programming
MPCModel predictive control
PUNPrezzo Unico Nazionale
PHANNPhysical hybrid artificial neural network
PLCProgrammable logic controller
PVPhotovoltaic
PZPrezzo Zonale
RESRenewable energy sources
REST2Reference evaluation of solar transmittance, 2 bands
RHRolling horizon
RMSERoot mean squared error
RNNRecurrent neural network
RORobust optimization
SARIMASeasonal autoregressive integrated moving average
SMAPESymmetric mean absolute percentage error
SOCState of charge
SOEState of energy

Appendix A. Energy Management System

Sets
E S Set of energy storage units
N D Set of non-dispatchable generators
T 1 Set of 1st layer timesteps
T 2 Set of 2nd layer timesteps
Continuous variables
P e s ,   t c h Average   timestep   charge   power   exchange   [ kW ]   of   the   energy   storage   technology   e s E S   at   time   t T ,     R +
P e s ,   t d i s c h Average   timestep   discharge   power   exchange   [ kW ]   of   the   energy   storage   technology   e s E S   at   time   t T ,     R +
P e s ,   t n e t Average   timestep   net   power   exchange   [ kW ]   of   the   energy   storage   technology   e s E S   at   time   t T ,     R +
P t g r i d , n e t Average   timestep   net   grid   exchange   power   [ kW ]   at   time   t T ,     R +
P t g r i d , p u r c h Average   timestep   power   [ kW ]   purchased   from   the   grid   at   time   t T ,     R +
P t g r i d , s e l l Average   timestep   power   [ kW ]   injected   to   the   grid   at   time   t T ,     R +
N D n d , t c u r t Average   timestep   curtailed   power   [ kW ]   of   non - dispatchable   generator   n d N D ,   at   time   t T ,     R +
N D n d , t o u t Average   timestep   produced   power   [ kW ]   of   non - dispatchable   generator   n d N D ,   at   time   t T ,     R +
S O E e s ,   t State   of   energy   [ kWh ]   of   the   energy   storage   technology   e s E S   at   the   end   timestep   t T ,     R +
S O E t d e v SOE   deviation   [ kWh ]   among   energy   storage   technologies   at   the   end   timestep   t T ,     R +
U D t Average   timestep   unmet   demand   [ kW ]   at   time   t T ,   R +
Parameters
c c u r t Curtailment cost [€/kWh]
c e s T P Throughput   O & M   cos t   of   the   energy   storage   technology   e s E S [€/kWh]
c t p u r c h Electricity   purchase   price   at   timestep   t [€/kWh]
c U D Unmet demand cost [€/kWh]
d t 1 Timestep duration of the EMS I layer [hours]
d t 2 Timestep duration of the EMS II layer [hours]
L o a d t f o r e 24 h-profile of the average timestep residential consumption forecast [kW]
P e s m a x ,   c h Maximum   average   timestep   charge   power   exchange   [ kW ]   of   the   energy   storage   technology   e s E S
P e s m a x ,   d i s c h Maximum   average   timestep   discharge   power   exchange   [ kW ]   of   the   energy   storage   technology   e s E S
P p u r c h ,   m a x Maximum average timestep purchase power [kW] from the grid
P s e l l ,   m a x Maximum average timestep selling power [kW] from the grid
P V t f o r e 24 h-profile of the average timestep PV generation forecast [kW]
r t s e l l Electricity   selling   price   at   timestep   t [€/kWh]
s i z e e s Size   [ kWh ]   of   the   energy   storage   technology   e s E S
S O E e s m a x Operational   maximum   limit   for   SOE   [ kWh ]   of   the   energy   storage   technology   e s E S
S O E e s m i n Operational   minimum   limit   for   SOE   [ kWh ]   of   the   energy   storage   technology   e s E S
η e s c h Charging   efficiency   of   the   energy   storage   technology   e s E S
η e s d i s c h Discharging   efficiency   of   the   energy   storage   technology   e s E S
ρ d e v Penalty factor for the SOE deviation between energy storage technologies

Appendix A.1. First Layer

The first layer of the home EMS is formulated using a deterministic MILP, where all the operational variables and constraints are indexed for every timestep.
The decision variables of the problem are the following:
-
Battery average charge P e s ,   t c h , discharge P e s ,   t d i s c h , net power exchange P e s ,   t n e t , and state of energy S O E e s ,   t of storage unit es for each timestep t;
-
Average power purchased P t g r i d , p u r c h and sold P t g r i d , s e l l into the grid for each timestep t.
Please note that given the discrete nature of the time horizon, the values of those operational variables measured as power (e.g., P e s ,   t d i s c h as kW) are considered as timestep average. Therefore, the energy quantities related to the average power at each time interval are obtained by multiplying the variable by the timestep duration d t 1 . In the case of hourly timestep duration, then the numerical values related to the average power and energy are exactly the same.
The operational problem aims at defining the strategic planning and economic dispatch of the household by minimizing the total operational costs:
O F = m i n t     T 1 Φ t O p e x
where:
Φ t O p e x = c t p u r c h · P t g r i d , p u r c h · d t 1 r t s e l l · P t g r i d , s e l l · d t 1 + e s E S c e s T P · P e s ,   t d i s c h · d t 1 + ρ d e v · S O E t d e v + c c u r t · N D n d , t c u r t · d t 1 + c U D · U D t · d t 1
The total operational costs Φ t O p e x associated to each timestep t are given by the sum of four main components:
  • c t p u r c h · P t g r i d , p u r c h · d t 1 r t s e l l · P t g r i d , s e l l · d t 1 represents the cost and revenue (negative cost) coming from the withdrawal and injection of power from/into the grid;
  • e s E S c e s T P · P e s ,   t d i s c h · d t 1 + ρ d e v · S O E t d e v is the sum of the batteries’ throughput-based storage O&M cost, and penalty cost associated with their SOE deviations;
  • c c u r t · N D n d , t c u r t · d t 1 + c U D · U D t · d t 1 are penalty costs for curtailment of RES generation and unmet demands.
The main constraints to which the model is subjected can be summarized as follows:
-
Storage dynamic constraints: for each storage unit, the operational behavior describing the charge and discharge power, as well as the evolution in time of the state of charge;
-
Grid constraints: the purchase and sold electricity must respect the contract limit of the user;
-
Power balance constraints: the overall electricity generated by non-dispatchable units, the energy discharged by the storage, and the energy purchased from the grid must always be equal to the energy charging the storage and the quantity exported to the grid.

Appendix A.2. BESS Operational Constraints

From a modeling point of view, batteries and electric vehicles are approached adopting the same strategy.
Upper bounds on the maximum charge and discharge power, as well as the maximum storage capacity, are defined:
P e s ,   t d i s c h P e s m a x ,   d i s c h e s E S , t T 1
P e s ,   t c h P e s m a x ,   c h e s E S , t T 1
Storage systems must respect their maximum and the minimum state of energy:
S O E e s ,   t S O E e s m a x e s E S , t T 1
S O E e s ,   t S O E e s m i n e s E S , t T 1
Then, the net power flow from/to the storage is described by the real variable P e s ,   t n e t , which considers the charge and discharge efficiencies:
P e s ,   t n e t = P e s ,   t d i s c h P e s ,   t c h e s E S , t T 1
The SOE evolution in time is then defined by the following constraint, which describes the SOE of the storage at the end of t by taking into account the self-discharge of the unit by means of η e s S D and considers the charge and discharge efficiencies:
S O E e s ,   t = S O E e s ,   t 1 · η e s S D + (   P e s ,   t c h · η e s c h P e s ,   t d i s c h η e s d i s c h ) · d t 1 e s E S , t T 1
A correct management of storage systems requires different storage units to follow the same trajectory. This is possible introducing the penalty variable S O E e s , t d e v and linking it with the absolute value of the difference between the batteries’ SOE. The absolute value can be easily linearized:
S O E t d e v S O E B E S S   1 ,   t S O E B E S S   2 ,   t t T 1
S O E t d e v S O E B E S S   2 ,   t S O E B E S S   1 ,   t t T 1

Appendix A.3. Grid Operational Constraints

The power exchanged with the grid is set by the user contract, which introduces a limitation in both the maximum purchase power and the maximum selling power. A binary variable is needed to avoid the withdrawal and injection of power at the same time. In principle, it may be avoided considering a purchase price higher enough than the selling price, but since the price structures may be different, it is conservative to introduce the binary variable to guarantee a feasible decision.
P t g r i d , p u r c h P p u r c h ,   m a x · z t g r i d t T 1
P t g r i d , s e l l P s e l l ,   m a x · 1 z t g r i d t T 1
Finally, the net power exchange with the grid is the difference between purchase and sold power:
P t g r i d , n e t = P t g r i d , p u r c h P t g r i d , s e l l t T 1

Appendix A.4. PV Production

The possibility of curtailing part of the non-dispatchable generation has been modeled by the curtailment variable, which is strongly discouraged through a high associated curtailment cost.
N D t o u t + N D t c u r t = N D t f o r e t T 1

Appendix A.5. Electricity Balance

The electricity balance must be guaranteed at each timestep. In particular, the unmet demand term is needed to always assure the constraint feasibility and to understand when the system is not able to cover the house consumption. In fact, the associated unmet demand cost is 100 times the cost of purchasing electricity.
N D t o u t + P e s ,   t n e t + P t g r i d , n e t + U D t = L o a d t f o r e t T 1

Appendix A.6. Second Layer

The second-layer model is a rule-based algorithm that, given the optimal setpoints provided by the first-layer model, decides how to share the net demand forecast error (given by the forecasting error of PV and house consumption) among the components of the system, considering the technical limitations of each unit. The control strategy consists in updating the power setpoints according to the system measurements and so properly interacting with the BESS to balance the microgrid.
The net demand forecast error can be computed as follows:
e r r t = L o a d t r e a l L o a d t f o r e N D t r e a l N D t f o r e t T 2
Moreover, at each timestep the EV and BESS setpoints’ cut reallocation must be addressed. It may be caused by the impossibility of meeting their technical limits:
S O E e s , t p l a n = S O E e s ,   t 1 · η e s S D + (   P e s ,   t c h , s e t p o i n t · η e s c h P e s ,   t d i s c h , s e t p o i n t η e s d i s c h ) · d t 2 t T 2
P e s ,   t d i s c h , c u t = m i n P e s ,   t d i s c h ,   s e t p o i n t ,   m a x η e s d i s c h · S O E e s m i n S O E e s , t p l a n d t 2 , 0 t T 2
P e s ,   t c h , c u t = m i n P e s ,   t c h ,   s e t p o i n t ,   m a x S O E e s , t p l a n S O E e s m i n η e s c h · d t 2 , 0 t T 2
S O E e s , t p l a n , shown in Equation (A17), is computed at the beginning of the second layer. It reflects the state of energy level that BESS would attain by the end of the timestep if adhering to the power setpoints determined by the strategic decisions made in the first layer. The power setpoint adjustments, Equations (A18) and (A19), are then evaluated by comparing S O E e s , t p l a n with the operational limits of the components and the strategic decisions from the first layer. These power setpoints, combined with the net demand forecast error, collectively define the entire power imbalance that needs to be addressed by the second layer:
Δ P t = e r r t + P e s ,   t d i s c h , c u t P e s ,   t c h , c u t t T 2
It is possible to distinguish between power deficit and power excess, respectively associated with positive and negative power imbalance. In Figure A1, the second layer block flow scheme shows how the different situations are handled with different priorities. In particular, the rationale behind the selected priorities aims mainly at maintaining the optimal grid setpoint coming from the first layer, and it can be summarized as follows:
  • BESS charge or discharge;
  • Grid withdrawal or injection;
  • Unmet demand or curtailment.
Figure A1. Second layer block scheme.
Figure A1. Second layer block scheme.
Forecasting 06 00032 g0a1

Appendix B. EV Charging Forecaster

Appendix B.1. Long Short-Term Memory

LSTM is an RNN specifically designed to help the network learn long-term dependencies; it was originally proposed by Hochreiter and Schmidhuber in 1997 [51] and is nowadays widely used in several fields of application, such as natural language and translations [52]. LSTM introduces a new processing unit, the memory cell commonly referred to as ‘cell’. To control the memory cell, some gates are needed with internal mechanisms that can regulate the flow of information coming in and out of the cell. The common architecture of the LSTM cell can be observed in Figure A2.
The core concept of the model is the cell state c t , represented by the horizontal line running through the top of the diagram. It acts as a conveying belt that stores and transfers condensed information all the way down the sequence chain. The content of the cell state changes through time thanks to the interaction of the previously computed output h t 1 and the current external input x t . The circles in Figure A1 are either sigmoid (σ) or tansigmoid ( t a n h ) layers. The operations represented in the squares are the point-wise multiplications ( X ) and point-wise addition ( + ). In Equation (A20), the governing principles are given. The loss function for training is MSE, which is derived directly from the negative log likelihood of a gaussian probability density function. Two desirable trains are that it is fast to calculation during backpropagation of errors through time and that MSE tends to penalize large errors more than small ones. For training the time series, values are normalized such that the minimum value is zero and maximum is one.
M S E = 1 n ( y t r u e y e s t i m a t e d ) 2 M A E = 1 n ( y t r u e y e s t i m a t e d ) 2
Figure A2. Common architecture of the LSTM cell.
Figure A2. Common architecture of the LSTM cell.
Forecasting 06 00032 g0a2

Appendix B.2. Encoder–Decoder/Sequence to Sequence

The load forecast required for a day-ahead unit commitment problem is in the category of many-to-many prediction, since it usually takes as input the time series of power sampled at a certain timestep length and tries to predict another sequence of values; it could require the two sequences to have different lengths. A proper way to handle many-to-many prediction is an encoder–decoder (ED) architecture that consists of three components: an encoder, a context vector, and a decoder. Both the encoder and the decoder are constructed as layers of RNN units. The encoder takes a sequence as the input and transforms it into a context vector, an element with a fixed shape that acts as a condensed representation of the input time series, often called dimensionality reduction. The output of the encoder, the hidden state, is usually the state of the last RNN timestep h i . The length of the vector is equal to the number of RNN cells in the encoder. The context vector acts as the initial hidden state of the decoder taking the encoder output and feeding it repeatedly to the decoder as input. The decoder is a dimensionality-increasing step that interprets the context vector to make predictions for each timestep required in the output.

Appendix B.3. Attention Mechanism

Attention mechanisms were introduced for the first time in 1997 by Bahdanau in [42]; a similar, modified version was later presented by Luong [53]. They were developed to solve the incapability of ED networks to remember long sequences given as input due to the limited length of the context vector. Important elements for the forecast of the current output could come from any point in the input sequence, but the context vector is not always capable of encapsulating the information “seen” at the beginning of the input sequence. Attention mechanisms try to replicate the human brain’s capability of focusing on small portions of the entire information provided at a time, paying attention only to the ones that are relevant to the answer that is required.
In the presence of an attention layer, the encoder functions exactly as in the case of a simple encoder–decoder model producing a hidden state h for each timestep. The context vector is not constant but changes at each timestep; it is calculated as a weighted mean among all the hidden states of the encoder, as shown in Equation (A22).
c t = α t , 1 h 1 + α t , 2 h t + α t , m h m
where c t is the context vector at the current timestep t and h m is the hidden state of the last timestep in the input with m being the length of the input sequence. The weight α t , i is the alignment weight computed at the i-th timestep. Each α is the result of the application of a softmax function to the attention scores e t , i to normalize them. The attention scores are computed through a proper alignment model a . , an operation that scores how well the current hidden state of the encoder h i is matching with the hidden state of the decoder state s t 1 at the previous timestep. Equations (A23) and (A24) illustrate how alignment scores and alignment weights are calculated. The weights favor the hidden states that are matching with the previous output; in this way, the context vector is paying attention only to the parts of the input that are considered relevant by the alignment function solving the problem of the limited length.
e t , i = a h i , s t 1
α , i t = s o f t a m x e t , i
The decoder takes in as input the context vector, the previous hidden decoder state, and the current output, to compute the final prediction. The attention model described is the one proposed by Bahdanau [42]; in this case, the alignment function is a single-layer perceptron, as shown in Equation (A25):
a s t 1 , h i = v a T   t a n h W a s i 1 + U a h i
where W a R n x n and v a R n are weight matrices that are being optimized during the training process to minimize MSE.

Appendix B.4. Persistence

Naive persistence is a benchmark forecast model based on the most trivial assumption that can be made when making predictions. It forecasts the current timestep t using the measurement from the last timestep t 1 . In this case, the lag value L   is 1. In a modified version sometimes called seasonal persistence, the lag value is chosen to match a seasonality in the data, such as daily or weekly in the case of electric load forecasting. As an example, for a time series with strong weekly seasonality, the timestep t is forecasted with the measurement from t 7 d or t 168 if the time series interval is 1 h. This is described in Equation (A26), where y f is the forecasted value and y the measured one.
y f t + 1 = y t L

References

  1. EEA. EEA Greehouse Gases—Data Viewer. 2023. Available online: https://www.eea.europa.eu/data-and-maps/data/data-viewers/greenhouse-gases-viewer (accessed on 9 April 2024).
  2. IEA. Global EV Outlook 2023. Available online: https://www.iea.org/reports/global-ev-outlook-2023 (accessed on 11 April 2024).
  3. Alrubaie, A.J.; Salem, M.; Yahya, K.; Mohamed, M.; Kamarol, M. A Comprehensive Review of Electric Vehicle Charging Stations with Solar Photovoltaic System Considering Market, Technical Requirements, Network Implications, and Future Challenges. Sustainability 2023, 15, 8122. [Google Scholar] [CrossRef]
  4. Wang, L.; Qin, Z.; Slangen, T.; Bauer, P.; Van Wijk, T. Grid Impact of Electric Vehicle Fast Charging Stations: Trends, Standards, Issues and Mitigation Measures—An Overview. IEEE Open J. Power Electron. 2021, 2, 56–74. [Google Scholar] [CrossRef]
  5. Deeum, S.; Charoenchan, T.; Janjamraj, N.; Romphochai, S.; Baum, S.; Ohgaki, H.; Mithulananthan, N.; Bhumkittipich, K. Optimal Placement of Electric Vehicle Charging Stations in an Active Distribution Grid with Photovoltaic and Battery Energy Storage System Integration. Energies 2023, 16, 7628. [Google Scholar] [CrossRef]
  6. Rouhani, M.; Ardakanian, O.; Musilek, P. Robust Sizing of Solar-Powered Charging Station with Co-located Energy Storage. In Proceedings of the 2022 IEEE Power & Energy Society General Meeting (PESGM), Denver, CO, USA, 17–21 July 2022; IEEE: Washington, DC, USA, 2022; pp. 1–5. [Google Scholar] [CrossRef]
  7. Yap, K.Y.; Chin, H.H.; Klemeš, J.J. Solar Energy-Powered Battery Electric Vehicle charging stations: Current development and future prospect review. Renew. Sustain. Energy Rev. 2022, 169, 12862. [Google Scholar] [CrossRef]
  8. Cabrera-Tobar, A.; Blasuttigh, N.; Massi Pavan, A.; Lughi, V.; Petrone, G.; Spagnuolo, G. Energy Scheduling and Performance Evaluation of an E-Vehicle Charging Station. Electronics 2022, 11, 3948. [Google Scholar] [CrossRef]
  9. Hai, T.; Zhou, J.; Alazzawi, A.k.; Muranaka, T. Management of Renewable-Based Multi-Energy Microgrids with Energy Storage and Integrated Electric Vehicles Considering Uncertainties. J. Energy Storage 2023, 60, 106582. [Google Scholar] [CrossRef]
  10. Pamulapati, T.; Cavus, M.; Odigwe, I.; Allahham, A.; Walker, S.; Giaouris, D. A Review of Microgrid Energy Management Strategies from the Energy Trilemma Perspective. Energies 2022, 16, 289. [Google Scholar] [CrossRef]
  11. Wazirali, R.; Yaghoubi, E.; Abujazar, M.S.S.; Ahmad, R.; Vakili, A.H. State-of-the-Art Review on Energy and Load Forecasting in Microgrids Using Artificial Neural Networks, Machine Learning, and Deep Learning Techniques. Electr. Power Syst. Res. 2023, 225, 109792. [Google Scholar] [CrossRef]
  12. Polimeni, S.; Nespoli, A.; Leva, S.; Valenti, G.; Manzolini, G. Implementation of Different PV Forecast Approaches in a MultiGood MicroGrid: Modeling and Experimental Results. Processes 2021, 9, 323. [Google Scholar] [CrossRef]
  13. Cabrera-Tobar, A.; Massi Pavan, A.; Petrone, G.; Spagnuolo, G. A Review of the Optimization and Control Techniques in the Presence of Uncertainties for the Energy Management of Microgrids. Energies 2022, 15, 9114. [Google Scholar] [CrossRef]
  14. Said, D. Intelligent Photovoltaic Power Forecasting Methods for a Sustainable Electricity Market of Smart Micro-Grid. IEEE Commun. Mag. 2021, 59, 122–128. [Google Scholar] [CrossRef]
  15. Said, D. A Decentralized Electricity Trading Framework (DETF) for Connected EVs: A Blockchain and Machine Learning for Profit Margin Optimization. IEEE Trans. Ind. Inf. 2021, 17, 6594–6602. [Google Scholar] [CrossRef]
  16. Singh, B.; Dubey, P.K.; Kumar, V.; Singh, D. A Novel Approach for Comparative Analysis of Distributed Generations and Electric Vehicles in Distribution Systems. Electr. Eng. 2024, 106, 2371–2390. [Google Scholar] [CrossRef]
  17. Zhu, J.; Yang, Z.; Chang, Y.; Guo, Y.; Zhu, K.; Zhang, J. A Novel LSTM Based Deep Learning Approach for Multi-Time Scale Electric Vehicles Charging Load Prediction. In Proceedings of the 2019 IEEE Innovative Smart Grid Technologies—Asia (ISGT Asia), Chengdu, China, 21–24 May 2019; IEEE: Washington, DC, USA, 2019; pp. 3531–3536. [Google Scholar]
  18. Hippert, H.S.; Pedreira, C.E.; Souza, R.C. Neural Networks for Short-Term Load Forecasting: A Review and Evaluation. IEEE Trans. Power Syst. 2001, 16, 44–55. [Google Scholar] [CrossRef]
  19. Calearo, L.; Marinelli, M.; Ziras, C. A Review of Data Sources for Electric Vehicle Integration Studies. Renew. Sustain. Energy Rev. 2021, 151, 111518. [Google Scholar] [CrossRef]
  20. Gao, Q.; Lin, Z.; Zhu, T.; Zhou, W.; Wang, G.; Zhang, T.; Zhang, Z.; Waseem, M.; Liu, S.; Han, C. Charging Load Forecasting of Electric Vehicle Based on Monte Carlo and Deep Learning. In Proceedings of the 2019 IEEE Sustainable Power and Energy Conference (iSPEC), Beijing, China, 21–23 November 2019; IEEE: Washington, DC, USA, 2019; pp. 1309–1314. [Google Scholar]
  21. Al-Ogaili, A.S.; Tengku Hashim, T.J.; Rahmat, N.A.; Ramasamy, A.K.; Marsadek, M.B.; Faisal, M.; Hannan, M.A. Review on Scheduling, Clustering, and Forecasting Strategies for Controlling Electric Vehicle Charging: Challenges and Recommendations. IEEE Access 2019, 7, 128353–128371. [Google Scholar] [CrossRef]
  22. Bianchi, F.M.; Maiorino, E.; Kampffmeyer, M.C.; Rizzi, A.; Jenssen, R. An Overview and Comparative Analysis of Recurrent Neural Networks for Short Term Load Forecasting; Springer: Berlin/Heidelberg, Germany, 2017. [Google Scholar] [CrossRef]
  23. Wood, M.; Ogliari, E.; Nespoli, A.; Simpkins, T.; Leva, S. Day Ahead Electric Load Forecast: A Comprehensive LSTM-EMD Methodology and Several Diverse Case Studies. Forecasting 2023, 5, 297–314. [Google Scholar] [CrossRef]
  24. Kouka, K.; Masmoudi, A.; Abdelkafi, A.; Krichen, L. Dynamic Energy Management of an Electric Vehicle Charging Station Using Photovoltaic Power. Sustain. Energy Grids Netw. 2020, 24, 100402. [Google Scholar] [CrossRef]
  25. Bui, V.-H.; Hussain, A.; Zarrabian, S.; Kump, P.M.; Su, W. Clustering-Based Optimal Operation of Charging Stations under High Penetration of Electric Vehicles. Sustain. Energy Grids Netw. 2023, 36, 101178. [Google Scholar] [CrossRef]
  26. Engelhardt, J.; Zepter, J.M.; Gabderakhmanova, T.; Marinelli, M. Energy Management of a Multi-Battery System for Renewable-Based High Power EV Charging. eTransportation 2022, 14, 100198. [Google Scholar] [CrossRef]
  27. Jiang, W.; Zhen, Y. A Real-Time EV Charging Scheduling for Parking Lots With PV System and Energy Store System. IEEE Access 2019, 7, 86184–86193. [Google Scholar] [CrossRef]
  28. Wang, Z.; Jochem, P.; Fichtner, W. A Scenario-Based Stochastic Optimization Model for Charging Scheduling of Electric Vehicles under Uncertainties of Vehicle Availability and Charging Demand. J. Clean. Prod. 2020, 254, 119886. [Google Scholar] [CrossRef]
  29. Wu, J.; Liu, Y.; Chen, X.; Wang, C.; Li, W. Data-Driven Adjustable Robust Day-Ahead Economic Dispatch Strategy Considering Uncertainties of Wind Power Generation and Electric Vehicles. Int. J. Electr. Power Energy Syst. 2022, 138, 107898. [Google Scholar] [CrossRef]
  30. Zehra, S.S.; Wood, M.J.; Grimaccia, F.; Leva, S.; Mussetta, M. Solar and Grid Power Integration for Dynamic Energy Management in Electric Vehicle Charging and Load Fulfilment with Fuzzy Logic. In Proceedings of the 2023 AEIT International Conference on Electrical and Electronic Technologies for Automotive (AEIT AUTOMOTIVE), Modena, Italy, 17–19 July 2023; IEEE: Washington, DC, USA, 2023; pp. 1–6. [Google Scholar]
  31. Garcia-Trivino, P.; Torreglosa, J.P.; Fernandez-Ramirez, L.M.; Jurado, F. Decentralized Fuzzy Logic Control of Microgrid for Electric Vehicle Charging Station. IEEE J. Emerg. Sel. Top. Power Electron. 2018, 6, 726–737. [Google Scholar] [CrossRef]
  32. Dukpa, A.; Butrylo, B. MILP-Based Profit Maximization of Electric Vehicle Charging Station Based on Solar and EV Arrival Forecasts. Energies 2022, 15, 5760. [Google Scholar] [CrossRef]
  33. Moretti, L.; Polimeni, S.; Meraldi, L.; Raboni, P.; Leva, S.; Manzolini, G. Assessing the Impact of a Two-Layer Predictive Dispatch Algorithm on Design and Operation of off-Grid Hybrid Microgrids. Renew. Energy 2019, 143, 1439–1453. [Google Scholar] [CrossRef]
  34. Pascual, J.; Barricarte, J.; Sanchis, P.; Marroyo, L. Energy Management Strategy for a Renewable-Based Residential Microgrid with Generation and Demand Forecasting. Appl. Energy 2015, 158, 12–25. [Google Scholar] [CrossRef]
  35. Luna, A.C.; Diaz, N.L.; Graells, M.; Vasquez, J.C.; Guerrero, J.M. Mixed-Integer-Linear-Programming-Based Energy Management System for Hybrid PV-Wind-Battery Microgrids: Modeling, Design, and Experimental Verification. IEEE Trans. Power Electron. 2017, 32, 2769–2783. [Google Scholar] [CrossRef]
  36. Parisio, A.; Rikos, E.; Glielmo, L. Stochastic Model Predictive Control for Economic/Environmental Operation Management of Microgrids: An Experimental Case Study. J. Process Control 2016, 43, 24–37. [Google Scholar] [CrossRef]
  37. Parisio, A.; Rikos, E.; Tzamalis, G.; Glielmo, L. Use of Model Predictive Control for Experimental Microgrid Optimization. Appl. Energy 2014, 115, 37–46. [Google Scholar] [CrossRef]
  38. Marzband, M.; Sumper, A.; Ruiz-Álvarez, A.; Domínguez-García, J.L.; Tomoiagă, B. Experimental Evaluation of a Real Time Energy Management System for Stand-Alone Microgrids in Day-Ahead Markets. Appl. Energy 2013, 106, 365–376. [Google Scholar] [CrossRef]
  39. MG2Lab. Available online: https://www.mg2lab.polimi.it/ (accessed on 17 April 2024).
  40. Lee, E.-K.; Shi, W.; Gadh, R.; Kim, W. Design and Implementation of a Microgrid Energy Management System. Sustainability 2016, 8, 1143. [Google Scholar] [CrossRef]
  41. Polimeni, S.; Moretti, L.; Manzolini, G.; Leva, S.; Meraldi, L.; Raboni, P. Numerical and Experimental Testing of Predictive EMS Algorithms for PV-BESS Residential Microgrid. In Proceedings of the 2019 IEEE Milan PowerTech, Milano, Italy, 23–27 June 2019; IEEE: Washington, DC, USA, 2019; pp. 1–6. [Google Scholar]
  42. Bahdanau, D.; Cho, K.; Bengio, Y. Neural machine translation by jointly learning to align and translate. arXiv 2016, arXiv:1409.0473v7. [Google Scholar]
  43. Nespoli, A.; Mussetta, M.; Ogliari, E.; Leva, S.; Fernández-Ramírez, L.; García-Triviño, P. Robust 24 Hours Ahead Forecast in a Microgrid: A Real Case Study. Electronics 2019, 8, 1434. [Google Scholar] [CrossRef]
  44. Molteni, F.; Buizza, R.; Palmer, T.N.; Petroliagis, T. The ECMWF Ensemble Prediction System: Methodology and Validation. Q. J. R. Meteorol. Soc. 1996, 122, 73–119. [Google Scholar] [CrossRef]
  45. Stein, J.; Hansen, C.; Reno, M. Global Horizontal Irradiance Clear Sky Models: Implementation and Analysis; No. SAND2012-2389; Sandia National Laboratories (SNL): Albuquerque, NM, USA; Livermore, CA, USA, 2012. [Google Scholar]
  46. Abadi, M.; Agarwal, A.; Barham, P.; Brevdo, E.; Chen, Z.; Citro, C.; Corrado, G.S.; Davis, A.; Dean, J.; Devin, M.; et al. TensorFlow: Large-Scale Machine Learning on Heterogeneous Distributed Systems. 2016. Available online: https://www.tensorflow.org/ (accessed on 18 April 2024).
  47. Dolara, A.; Grimaccia, F.; Leva, S.; Mussetta, M.; Ogliari, E. A Physical Hybrid Artificial Neural Network for Short Term Forecasting of PV Plant Power Output. Energies 2015, 8, 1138–1153. [Google Scholar] [CrossRef]
  48. Bynum, M.L.; Hackebeil, G.A.; Hart, W.E.; Laird, C.D.; Nicholson, B.L.; Siirola, J.D.; Watson, J.-P.; Woodruff, D.L. Woodruff, Pyomo–Optimization Modeling in Python, 3rd ed.; Springer International Publishing: Cham, Switzerland, 2021; Volume 67, ISBN 978-3-030-68927-8. [Google Scholar]
  49. Lee, Z.J.; Li, T.; Low, S.H. ACN-Data. In Proceedings of the Tenth ACM International Conference on Future Energy Systems, Phoenix, AZ, USA, 25–28 June 2019; ACM: New York, NY, USA, 2019; pp. 139–149. [Google Scholar]
  50. Gestore Dei Mercati Energetici. Available online: https://www.mercatoelettrico.org/ (accessed on 22 April 2024).
  51. Hochreiter, S.; Schmidhuber, J. Long Short-Term Memory. Neural. Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef]
  52. Wang, S.; Jiang, J. Learning Natural Language Inference with LSTM. In Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, San Diego, CA, USA, 12–17 June 2016; Association for Computational Linguistics: Stroudsburg, PA, USA, 2016; pp. 1442–1451. [Google Scholar]
  53. Luong, M.-T.; Pham, H.; Manning, C.D. Effective Approaches to Attention-Based Neural Machine Translation. arXiv 2015. [Google Scholar] [CrossRef]
Figure 1. Experimental setup and control architecture considered in this case.
Figure 1. Experimental setup and control architecture considered in this case.
Forecasting 06 00032 g001
Figure 2. Operational scheduling for a considered week using LSTM forecast: experimental results (left) and offline results with the simulator (right).
Figure 2. Operational scheduling for a considered week using LSTM forecast: experimental results (left) and offline results with the simulator (right).
Forecasting 06 00032 g002
Figure 3. Offline results of the operational scheduling of the two weeks of spring using persistence (left) and LSTM (right) forecasts.
Figure 3. Offline results of the operational scheduling of the two weeks of spring using persistence (left) and LSTM (right) forecasts.
Forecasting 06 00032 g003
Table 1. List of employed data.
Table 1. List of employed data.
InputParametersUnits of
Measure
DeterministicGlobal horizontal irradiance Clear-sky solar radiationW/m2
Weather
forecasts
Relative humidity %
Wind directiondegree
PressurePa
Rainmm
Wind speedm/s
Ambient temperatureCelsius
Global horizontal irradiance Solar radiationW/m2
Table 2. Main features of the EV load and electricity prices of the considered cases in the study.
Table 2. Main features of the EV load and electricity prices of the considered cases in the study.
EV loadForecasting 06 00032 i001
Typical week trends from the JPL dataset (scaled to 25 kW according to MG2Lab size). Energy consumption for week 1 amounts to 842.5 kWh, while for week 2 it amounts to 823 kWh.
Given EV charging at a workplace, there is a substantial difference between workdays (Monday–Friday) and weekend days (Saturday and Sunday). Weekend days are also very unpredictable. Fridays are also unpredictable in terms of magnitude, while the shape remains similar.
PricesBuyMaximum: 0.666 €/kWh, minimum: 0.005 €/kWh, average: 0.255 €/kWh
SellMaximum: 0.333 €/kWh, minimum: 0.003 €/kWh, average: 0.128 €/kWh
Table 3. Characteristics of the simulations performed in this work.
Table 3. Characteristics of the simulations performed in this work.
SimulationOfflineOnline (MG2Lab)
GoalAssess the impact of each forecast method in the overall optimization
Impact of combining PV and EV forecasting
Validate the method and demonstrate the application of the EMS with PV and EV forecasting
WeeksWinterSpringSummerAutumn24 February 2024–1 March 20245 March 2024–11 March 2024
PV dataTwo-week MG2Lab historical data for each seasonMG2Lab PV plant
EV dataTwo-week data for each season from the JPL datasetJPL dataset:
10 December 2018–16 December 2018
PV forecasterPHANN day-ahead (MG2Lab) and HMLPHANN Day-Ahead
EV forecasterPersistence and LSTM and HMLPersistenceLSTM
Table 4. Overall results of the experiments and the corresponding simulations. Note that the persistence EV forecast is not identical among the two weeks because of small variations in the B2B converter output power.
Table 4. Overall results of the experiments and the corresponding simulations. Note that the persistence EV forecast is not identical among the two weeks because of small variations in the B2B converter output power.
Week 1: 24/02/2024–01/03/2024Week 2: 05/03/2024–11/03/2024
Persistence ExperimentalPersistence SimulatedLSTM
Experimental
LSTM Simulated
EV load [kWh]709.04709.03709.34709.33
PV production [kWh]330.28326.68700.63697.04
EV forecast SMAPE [%]39.7641.6954.9452.37
PV production SMAPE [%]111.44 111.44 195.46195.46
Electricity purchased [kWh]900.78818.07561.41505.33
Electricity sold [kWh]106.7465.77142.0283.01
Initial SOC [kWh/%]18.0/51.318.0/51.323.4/66.9 23.4/66.95
Final SOC [kWh/%]22.3/63.713.4/38.2 24.2/69.121.81/62.3
Unmet demand [kWh]0.000.000.000.00
Curtailment [kWh]0.010.000.010.00
Purchased electricity [€]240.24213.35127.44112.92
Sold electricity [€]18.6610.7419.0112.19
Unmet demand [€]0.000.000.000.00
Curtailment [€]0.060.000.050.00
BESS residual [€]−2.172.28−0.461.13
Total [€]219.47204.88108.0296.24
Table 5. Statistical performance of PV and EV forecasters (single and combined). The PV and EV forecasts are evaluated independently in the first five rows. The remaining rows are the sum of the PV and EV forecasts, which is commonly referred to as the net load. Note that the HML forecast error is nonzero because of the discrepancy between the forecast time discretization (15 min) and the experimental data sampling (1 min).
Table 5. Statistical performance of PV and EV forecasters (single and combined). The PV and EV forecasts are evaluated independently in the first five rows. The remaining rows are the sum of the PV and EV forecasts, which is commonly referred to as the net load. Note that the HML forecast error is nonzero because of the discrepancy between the forecast time discretization (15 min) and the experimental data sampling (1 min).
ForecastMAESMAPERMSE
PVPHANN4.1071.917.49
HML0.726.852.13
EVPersistence1.5844.893.23
LSTM1.0644.661.87
HML0.167.330.35
PV+EVPV HML
+ EV persistence
1.94−69.673.87
PV HML
+ EV LSTM
1.44−30.412.82
PV HML
+ EV HML
0.760.292.15
PV PHANN
+ EV persistence
2.88−7.735.27
PV PHANN
+ EV LSTM
4.30−388.937.63
PV PHANN
+ EV HML
2.3735.514.60
Table 6. Overall results of the experiments and the corresponding simulations.
Table 6. Overall results of the experiments and the corresponding simulations.
PV ForecastHMLPHANN
Load ForecastPersistence LSTM HML Persistence LSTM HML
EV load [kWh]1665.241665.241665.241665.241665.241665.24
PV production [kWh]3328.393328.393328.393328.393327.343328.39
Electricity purchased [kWh]214.59214.88144.99184.22176.48150.00
Electricity sold [kWh]1830.401833.371771.801774.631740.011757.46
Total BESSs losses [kWh]57.2253.8646.4475.5686.7965.65
Initial SOC [kWh/%]17.5/50.0 17.5/50.0 17.5/50.0 17.5/50.0 17.5/50.017.5/50.0
Final SOC [kWh/%]12.56/35.912.90/36.9 12.45/35.6 16.09/46.023.39/66.812.52/35.8
Unmet demand [kWh]0.000.000.000.000.000.00
Curtailment [kWh]0.001.050.000.001.050.00
Purchased electricity [€]50.6148.3429.1447.4251.4735.07
Sold electricity [€]278.30279.24267.79265.40253.35261.38
Unmet demand [€]0.000.000.000.000.000.00
Curtailment [€]0.000.000.000.000.000.00
BESS residual [€]0.400.370.400.11-0.470.40
Total [€]−227.29−230.54−238.35−217.87−202.35−225.91
Table 7. Accuracy of the adopted forecast tools for the combined net load of different seasons (top) and corresponding economic results (bottom). Note that the combined HML PV and HML EV forecast error is nonzero because of small differences between the input and output of the back-to-back converter.
Table 7. Accuracy of the adopted forecast tools for the combined net load of different seasons (top) and corresponding economic results (bottom). Note that the combined HML PV and HML EV forecast error is nonzero because of small differences between the input and output of the back-to-back converter.
Net Load Forecast Error (RMSE in [kW])
PV forecastHMLPHANN
EV forecast PersistenceLSTMHMLPersistenceLSTMHML
Spring3.872.822.155.277.634.60
Summer3.392.221.384.895.053.78
Autumn3.642.251.255.165.713.80
Winter2.874.400.934.684.484.23
Economic result (€)
PV forecastHMLPHANN
EV forecast PersistenceLSTMHMLPersistenceLSTMHML
Spring−227.29−230.54−238.35−217.87−202.35−225.91
Summer−197.85−199.21−201.44−187.02−181.94−191.97
Autumn46.544.8638.9248.4949.6843.90
Winter218.31216.65205.86218.19218.15215.59
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Manzolini, G.; Fusco, A.; Gioffrè, D.; Matrone, S.; Ramaschi, R.; Saleptsis, M.; Simonetti, R.; Sobic, F.; Wood, M.J.; Ogliari, E.; et al. Impact of PV and EV Forecasting in the Operation of a Microgrid. Forecasting 2024, 6, 591-615. https://doi.org/10.3390/forecast6030032

AMA Style

Manzolini G, Fusco A, Gioffrè D, Matrone S, Ramaschi R, Saleptsis M, Simonetti R, Sobic F, Wood MJ, Ogliari E, et al. Impact of PV and EV Forecasting in the Operation of a Microgrid. Forecasting. 2024; 6(3):591-615. https://doi.org/10.3390/forecast6030032

Chicago/Turabian Style

Manzolini, Giampaolo, Andrea Fusco, Domenico Gioffrè, Silvana Matrone, Riccardo Ramaschi, Marios Saleptsis, Riccardo Simonetti, Filip Sobic, Michael James Wood, Emanuele Ogliari, and et al. 2024. "Impact of PV and EV Forecasting in the Operation of a Microgrid" Forecasting 6, no. 3: 591-615. https://doi.org/10.3390/forecast6030032

Article Metrics

Back to TopTop