Next Article in Journal
Time Reversal vs. Integration of Time Reversal with Convolution Neural Network in Diagnosing Partial Discharge in Power Transformer
Next Article in Special Issue
Analysis of Losses Associated with Series Resistance (Rs) in Simple-Structured c-Si Solar Cells
Previous Article in Journal
Including Shield Wires in the Analysis of Transient Processes Occurring in HVAC Transmission Lines
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Synthesis of Solar Production and Energy Demand Profiles Using Markov Chains for Microgrid Design

LAPLACE, Université de Toulouse, CNRS, INPT, UPS, 2 rue Camichel, 31 071 Toulouse, France
*
Author to whom correspondence should be addressed.
Energies 2023, 16(23), 7871; https://doi.org/10.3390/en16237871
Submission received: 16 October 2023 / Revised: 15 November 2023 / Accepted: 29 November 2023 / Published: 1 December 2023

Abstract

:
Uncertainties related to the energy produced and consumed in smart grids, especially in microgrids, are among the major issues for both their design and optimal management. In that context, it is essential to have representative probabilistic scenarios of these environmental uncertainties. The intensive development and massive installation of smart meters will help to better characterize local energy consumption and production in the following years. However, models representing these variables over large timescales are essential for microgrid design. In this paper, we explore a simple method based on Markov chains capable of generating a large number of probabilistic production or consumption profiles from available historical measurements. We show that the developed approach can capture the main characteristics and statistical variability of real data on both short-term and long-term scales. Moreover, the correlation between both production and demand is conserved in generated profiles with respect to historical measurements.

1. Introduction

The design and operation of microgrids are challenging and have to be robust, especially because many parameters (e.g., future energy demands, renewable production and electricity tariffs) are inherently uncertain. So, their future values cannot be predicted with perfect accuracy when making decisions during the system design phase or for setting the optimal operation strategy. On one hand, the design of microgrids under uncertainty might be based on stochastic programming optimization techniques [1] where a large number of scenarios are required. On the other hand, once the size of the assets has been fixed, short-term probabilistic forecasts might be needed for real-time operation strategies to optimize the power flows between the equipment under uncertainty. For instance, look-ahead control strategies [2] solve, at each time step, a multi-stage optimization problem, based on several probabilistic forecasts, each of them associated with a given probability. In both cases, a large amount of data over multi-time scales is essential to accurately solve the problems.
Having said that, decision-makers and modelers often lack appropriate data to run the models, especially in a stochastic context. In many real case studies, no historical data are available, or the dataset is of poor quality only covering short periods. Therefore, decision-makers might come up with inappropriate design decisions while modelers do not have enough data to assess the design and control approaches they are implementing. To overcome these difficulties, scenario generation methods have been widely implemented in the literature [3,4]. This work mainly focuses on the generation of solar production and energy demand (i.e., electricity and heat) profiles at an hourly time step. However, the generation procedure may be extended to a wide spectrum of environmental variables for any engineering system.
While short-term forecasting is a relatively new topic driven by efficient real-time operational needs, long-term forecasting for energy systems has been studied for a long time [3]. Indeed, the latter has been used for decades to anticipate energy demand growth in order to plan future energy production and transmission infrastructures. However, the recent and strong development of variable renewable energy (VRE) has led to new long-term forecast requirements where short temporal granularity (i.e., at an hourly time step) is needed to cope with the short-timescale variability of the production [5,6]. Also, as noticed by Hong et al. in [3] “another important step in the recent history is the transition from a deterministic to a probabilistic point of view”: taking into account the variability of production and consumption in future microgrids, exploiting a growing part of VRE requires a shift from optimal design with regard to a deterministic scenario to robust design under multiple scenarios. When generating multiple scenarios, integrating the correlations of those stochastic variables is then critical in order to assess the efficiency of the microgrid design [7].
Recently, Mavromatidis et al. [4] drew a great review of uncertainty characterization for the design of distributed energy systems, which is of primary interest for this work. A large number of methods are documented for both the generation of solar production and energy demand profiles [8]. The readers could refer to this article for an in-depth discussion about the different approaches. The objective of this part is to summarize the main conclusions and provide a clear insight into the direction of this paper. Therefore, the first observation from their review is that the generation method depends on whether or not historical data are available. These approaches can be classified into top-down (i.e., historical data are available) and bottom-up categories, respectively. While obtaining solar production data today is relatively straightforward [9], the availability of energy demand measurements is generally rarer. Furthermore, the synchronicity between all environmental variables must be kept via the data generation method: “in the particular case of a solar generator based microgrid system design, it is not the same to have a huge solar production during low energy demand or on the contrary during huge consumption phase”.
In the top-down case, the most frequent and easiest generation method is the use of probability distribution functions (PDFs), derived from historical profiles for each hour. Then, a scenario is built through sampling from the PDFs. The drawback of such a method is that the uncertain parameters are treated as independent random variables between consecutive time steps, which might lead to unrealistic behavior where the autocorrelation and periodicity of the initial dataset are lost. To overcome this issue, more sophisticated and hybrid methods have been developed, such as autoregressive models [10], Markov approaches [11] and machine learning-based methods [12], to name just a few. The latter is probably the most popular approach for both the production and energy demands when large datasets are available [13]. Other recent methods are presented in [14,15].
On the other hand, when the case study lacks adequate energy demand measurements (e.g., newly built buildings), physical model-based methods are usually implemented to generate profiles. In smart building applications, the most common approaches are probably the use of ready-made Building Performance Simulation (BPS) tools (e.g., energyPlus [16]), but other model-based techniques are also implemented (e.g., resistance–capacitance (RC) models [17], a stochastic model where the input parameters are characterized based on interview information [18]). More elaborate methods are derived for large-scale districts where the previous approaches might not be appropriate (creating a model for each building of a district is quite laborious) [19]. In the bottom-up case, uncertainty is added to the input parameters of the simulation. The drawback of these methods is that a non-negligible amount of development time is usually required to get familiar with BPS tools and collect all the numerous input parameters. Thus, energy modelers who are only seeking a fast generation method to test their design and operation algorithms might be discouraged by these approaches.
The main objective and contribution of this work is to provide an efficient and straightforward method to generate a large number of probabilistic energy production and demand profiles when historical measurements are available. It is essential to mention that this generation method keeps the correlation between production and demand time signals, which is really relevant where design and operation optimization issues are concerned. The energy modeler’s perspective is deliberately adopted in this work: the focus is on creating large datasets at an hourly time step to build different microgrid design and operation algorithms. Nevertheless, the last section will show that the proposed method can capture the main statistical features and variations of real data despite the method’s simplicity. Also, another important aspect is that the generation approach can be used simultaneously to generate long-term scenarios for design and short-term forecasts for optimal operation purposes. Hence, the method is intended for modelers seeking a simple generation approach without spending too much time on this phase.
Therefore, the method implemented in this work is based on Markov chains over representative periods. The approach only requires historical measurements of the time series of the uncertain parameters in order to provide a wide range of contingencies. Differently from other existing works, here the states of the Markov chain are represented by multiple environmental variables, so keeping the time relationships between them.
The rest of the paper is organized as follows: The methodology for generating synthetic profiles is developed in Section 2. Next, the performance of the approach is demonstrated on a microgrid in a residential case study from the Ausgrid (Australian distributor of electricity) dataset in Section 3. Finally, conclusions are drawn in Section 4

2. Methodology for Generating Synthetic Profiles from Historical Data

The uncertain parameters (here, the electricity consumption, heat demands and solar production) of multi-energy systems are modeled as discrete random variables. The following work aims at providing a method to build a discrete sample space where a scenario is a sequence of all the random variable realizations over a given time horizon H, associated with a given probability.
Starting from an initial set of historical data, the method for generating synthetic and representative profiles of the random variables is illustrated via the process in Figure 1, which can be divided into four different steps. The initial dataset contains the short- and long-term evolution of the random variables considered. Each element in this set can be defined as a sample state X(h) composed of observable realizations of the underlying random variables at hour h. The finite set of observed states is called the state space. In our case, as previously mentioned, states contain three components: the electricity and heat demands and the PV production measurements.

2.1. Analysis and Classification of the Initial Dataset

This first step of the methodology (step 1 in Figure 1) is to identify representative periods from the historical annual dataset to account for the different time scales’ variability. The Markov chains will be later computed over these periods. Therefore, in our case, each month of the year is considered separately to avoid losing seasonality features. Furthermore, week and weekend days of each month are considered separately, as the energy demand pattern usually depends on the working activity. One Markov chain is built for each of these representative days. Finally, each day is segmented into 23 hourly transitions to account for intraday variability (i.e., daily cycles for PV production and load demands). Thus, 552 (12 (months) × 2 (weeks or weekends) × 23 (hourly transitions)) Markov chains will be computed from the historical dataset. The classification of the representative periods is depicted in Figure 2.
It should be noted that this a priori classification is based on both statistical exploration of the historical dataset and the intuition of the authors for taking account of deterministic features in the random variables (i.e., daily and seasonal cycles). Other more refined segmentations could probably be used through analyzing the historical dataset in depth with classification methods such as [20,21], which are out of the scope of this paper.

2.2. Data Reduction Using Clustering

State variable data X(h) associated with the same hour h of a day (weekdays or weekend days) of the same month, for all available years, are gathered and reduced to C i h clusters with a clustering algorithm [22]. In practice, this can be simply carried out with the k-means [23] or k-medoids [24] methods. It should be mentioned that the components of the state variables have to be normalized in order to take account of the different scaling between load demands and PV production data. This clustering step (step 2 in Figure 1) allows the determination of transitions matrices related to the state evolution between two consecutive hours (hourly transitions) as explained in the next section.

2.3. Data Reduction Using Clustering

Our generation process based on Markov chains [11,25] requires the exploitation of transition matrices related to the random states considered (step 3 in Figure 1). As indicated in Section 2.1, 23 transition matrices are built for each month and day type (weekday, weekend day) for characterizing the evolution of the random state variables during each day. The calculation of those matrices is illustrated in Figure 3 for a simple case of three clusters identified at hours h and h + 1 from eight historical data scenarios. In the general case, the expression of a transition matrix T h + 1 ( i , j ) is given by (1):
T h + 1 ( i , j ) = N ( C i h C j h + 1 ) c a r d ( C i h ) ,
where N ( C i h C j h + 1 ) denotes the number of elements in the cluster C i h going to the cluster C j h + 1 , c a r d ( C i h ) being the size of the cluster C i h . This matrix is of size nc(h) × nc (h + 1), where nc(h) and nc(h + 1), respectively, represent the number of clusters at hour h and at hour h + 1. This matrix contains the probabilities that an element of a cluster identified at hour h joins an element of a given cluster at time h + 1.

2.4. Scenario Generation

In this section, we describe in detail the profile synthesis process based on Markov chains (step 4 in Figure 1). Starting from an initial cluster C(0) at random, associated with the first month that has to be generated, the Markov process provides a sequence of 23 clusters over the first day using the transition matrices described in the previous section, according to (2):
C 0 T 1 C 1 T 2 C 2 T h C ( h ) T 23 C ( 23 )
For each cluster C(h) of the random sequence, a state X(h) ∈ C(h) can be, for instance, chosen with respect to three different strategies:
  • X(h) is randomly selected among all elements of the cluster C(h) with uniform probability.
  • X(h) is selected among all elements of the cluster C(h) considering the closest distance to the previous state X(h−1).
  • X(h) is the medoid of the cluster: this strategy results in systematically replacing the cluster C(h) with its corresponding medoid.
While the first strategy should certainly improve the randomness and diversity of state sequences, the second, on the contrary, increases the deterministic characteristics of state transitions as in persistence models [26,27]. The third strategy, consisting of only generating medoids, can be considered as an intermediate between the previous ones.
If the previous process allows the complete generation of the states over the day, the transitions between days of a same month have also to be explained. Again, three strategies can be employed similar to what was described earlier. For each day to be generated:
  • Start from an initial cluster C(0) at random (i.e., a random row of the first transition matrix T1 of the month considered).
  • Start from the first cluster C(0) that is the closest to the last of the previous day C(23).
  • Build an additional transition matrix T24 that characterizes the transition between consecutive days of the month in the initial dataset T24 = T(X(23)→X(0)).
Here again, it should be mentioned that the first strategy implies that successive days are supposed to be uncorrelated while the second induces a persistence effect. The third strategy is probably a good compromise between the previous ones, but it requires the computation of a 24th transition matrix each month. Similar strategies can also be implemented for characterizing the transitions between consecutive months or years.
In order to define C(h + 1) knowing C(h), we apply a classical technique based on the drawing of a uniform density random number (between 0 and 1) which is compared to the sum of the probabilities of the line C(h). If we take the example of the matrix in Figure 3, let us suppose that we have C(h) = C2, we draw a random number r between 0 and 1 (r = U(0, 1) with a uniform random probability distribution:
-
example 1: if r = 0.1 then the cluster C(h + 1) = C2 is chosen as successor because r greater than p(C1) = 0 but r lower than p(C1) + p(C2) = 2/3;
-
example 2: if r = 0.8, while r is between p(C1) + p(C2) and p(C1) + p(C2) + p(C3)), the cluster C(h + 1) = C3 is chosen as successor.
As a consequence, N random draws are thus necessary to define the N sequences of transitions related to the N transition matrices.
As a conclusion of this section, it is important to note that this Markov process only generates existing states of the historical data and, therefore, keeps the synchronicity and possible correlations between the state components (i.e., intercorrelations between PV production, and heat and electricity consumption). This issue is even more important as it concerns the sizing of devices: for example, storage device sizing is driven by the difference between production and demand over the time. On the other hand, Markov-based approaches are not able to predict and extrapolate extreme unforeseen behaviors (e.g., extreme weather conditions or consumption evolutions due to sudden policy changes) which are not present in the initial data set and will occur with small probabilities.

3. Evaluation on a Case Study

The generation method is evaluated using the Ausgrid (Australian distributor of electricity) dataset [28] where three years of measured energy demands and production time series (at a 30 min time step) are openly available for 300 residential customers: finally, historical data are upscaled to 1 h resolution. In order to illustrate the generation process, the 39th customer is arbitrarily chosen. Among all the strategies presented in Section 2.4, we only consider the following scheme for the scenario generation:
-
clustering is carried with the k-medoid algorithm considering a fixed value of k = 10;
-
states of each cluster are only represented by the medoids associated with random sequences of the cluster generated via the Markov process;
-
transition between days in a month are performed using a 24th transition matrix.
The investigation and the comparison of other generation strategies among the ones illustrated in Section 2.4 are not in the scope of the paper but naturally come into perspective in this work. While well-established metrics (e.g., root-mean-square error (RMSE), mean absolute error (MAE), etc.) are usually derived to assess the performance of short-term forecasting methods, the evaluation of long-term scenarios is less obvious at first glance. Therefore, following [11,12,18], the evaluation for long-term scenarios will be based on a combination of both statistical and visual examination in comparison with the measured data.

3.1. Statistical Assessment over Large Representative Periods

To run the evaluation, Markov chains are built from the 3-year historical dataset of measured data. Then, 1000 scenarios of one year at an hourly time step are generated for the study. Figure 4 shows the 3-year time series at an hourly time step for the electrical and thermal demands, in addition to the normalized solar production (in gray) followed by a 1-year scenario generated with the Markov model (in color). Note that the first hour corresponds to the 1st of July as the season cycle is opposite to Europe. A first general visual observation is that the shape of the profiles seems consistent with the measured data depicted in gray in the figure.

3.2. Short-Timescale Variability

Beyond those statistical similarities, the Markov model still introduces short-timescale variability from one scenario to another as shown in Figure 7, where the energy demands and production are depicted over one week for 10 scenarios randomly chosen in July. Indeed, power values are not simultaneously the same between scenarios, which leads to a wide range of contingencies. This latter aspect is of primary importance when dealing with the robust design and operation under uncertainties of microgrids. Also, remember that each scenario is associated with a given probability which is computed thanks to the transition matrices (see Section 2). Thus, the generation procedure is also suitable for short-term probabilistic forecasts, which can be later used by look-ahead control strategies [2] to operate microgrids.

3.3. Quantitative Comparisons

In addition to the previous qualitative comparisons, we provide in this section two quantitative criteria for characterizing our Markov synthesis process. Autocorrelation and load duration curves are computed over the 1000 scenarios generated and compared with those of the initial set of data (i.e., the 39th Ausgrid customer) for the three stochastic variables (PV generation, and heat and electricity demands). It should be noted that both criteria are commonly employed for assessing the quantitative correspondence of synthetized profiles with initial sets of data (e.g., [11,12] for the use of autocorrelation and [8,18] for the use of load duration curves). Note that other classic statistical criteria such as Probability Density Functions (PDF) and Cumulative Density Functions (CDF) could also have been used, but load duration curves are more meaningful and popular in the field of microgrid design.
Autocorrelation refers to the correlation of a time series with a lagged copy of itself. The goal is to determine if the signal shows similarities between observations at different time lags. The result is given as a function of the delay (also called lags in Figure 8). Despite the Markovian property attached to the generation method (i.e., the future state of the stochastic process only depends on the current state, without any memory of the past), the autocorrelation of the three variables is also recovered via the model, as shown in Figure 8. This might be explained as Markov chains are computed for each hour of representative days, leading to realistic power level sequences. Figure 8 also shows the duration curves of the three variables. The duration curve [29] defines in abscissa the number of hours during one year for which the production or demand power is greater or equal to the value defined in ordinate. For example, one can see that the PV production has a positive value during less than 4380 h (less than 2000 h for the heat demand) while the electric demand is nearly always positive along the year. The area under the duration curve corresponds to the total energy consumed (or produced) over the horizon. As shown in Figure 8, the Markovian approach tends to generate scenarios (blue curves) with annual energy demands close to the average of the 3-year historical dataset (in red): “the synthesis approach is then consistent in the sense of average values”. Furthermore, with this representation, the values are sorted in descending order, which makes the comparison easier between the real data and the synthetic scenarios at a yearly time scale. In this sense, this indicator can be assimilated by the CDF statistical indicator. While the whole shape of the duration curves is very close, comparing historical data and Markov’s model, one can also say that the statistical content of both signals is consistent on a large (yearly) timescale. Finally, the first values (h = 1) on the left of the duration curves provide clear information on the peak values, which are also in accordance between historical data and Markov’s model.

4. Conclusions and Perspectives

In order to generate scenarios for both long- and short-term applications, a simple but relevant stochastic model based on Markov chains was presented in this paper. First, the methodology was introduced where the Markov chains are computed over representative periods to account for the different timescale variability. Then, the method was applied to a residential case study where the objective was to build several (electric and heat) energy demands and solar production scenarios. The results have shown that the main cycle and statistical features of the initial dataset have been recovered with this straightforward Markov model while introducing realistic temporal variability to the annual time series. Finally, the last section has demonstrated that the Markovian approach is also suitable to generate short-term profiles, later used to control microgrids.
A primary perspective beyond this work may come from the classification procedure manually operated to identify the representative periods. Indeed, the performance of the Markov method is directly related to the expert knowledge concerning the structure and patterns of the initial dataset. Other approaches (mostly based on machine learning as in [12], for instance) do not require this first step and might be more relevant if little information is available about the stochastic processes. Concerning the generation process, several strategies were discussed in Section 2.4 but only one has been implemented. A good perspective should be to compare and evaluate them with regard to their complexity, CPU time and other performance criteria associated, for example, with the diversity of the synthesized profiles. Furthermore, fixed-size clustering has been used while the number of clusters per hour could be optimized through using metrics such as the silhouette [30] or other well-known statistical criteria [31]. It seems quite obvious that the number of clusters strongly differs during the day, especially between day and night (with null PV production) periods.
Since the Markov generation model is based on “historical data”, the relevance of the generated profiles clearly depends on the accuracy of these historical data. A complementary adaptation of the process is necessary to address prospective scenarios of data. For instance, what happens if the future PV production and the energy demands increase, or if the shape of the daily consumption changes due to policy changes or extreme weather conditions?
Finally, Markov-based approaches have to be compared with other profile synthesis methods (e.g., machine learning techniques or classical stochastic processes using regressive or autoregressive models) with respect to several criteria: accuracy, complexity, CPU time and sensitivity to possible errors in the initial datasets used as reference. These latter points are beyond the scope of this paper but should be addressed in future works.

Author Contributions

Conceptualization, H.R., B.S. and X.R.; Methodology, H.R., B.S. and X.R.; Validation, H.R.; Formal analysis, H.R.; Writing—original draft, H.R.; Writing—review & editing, H.R., B.S. and X.R.; Supervision, X.R. and B.S. All authors have read and agreed to the published version of the manuscript.

Funding

This work has been funded by the ADEME (French National Agency on Environment, Energy and Sustainable Development) in the framework of the HYMAZONIE project.

Data Availability Statement

Ausgrid data are available here: https://www.ausgrid.com.au/Industry/Our-Research/Data-to-share/Solar-home-electricity-data. The results of this research are co-owned by ADEME and LAPLACE.

Acknowledgments

This work has been supported by the ADEME (French national agency on environment, energy and sustainable development) in the framework of the HYMAZONIE project.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. King, A.J. Modeling with Stochastic Programming; Springer Series in Operations Research and Financial Engineering; Springer: New York, NY, USA, 2012. [Google Scholar]
  2. Hu, J.; Shan, Y.; Guerrero, J.M.; Ioinovici, A.; Chan, K.W.; Rodriguez, J. Model predictive control of microgrids—An overview. Renew. Sustain. Energy Rev. 2021, 136, 110422. [Google Scholar] [CrossRef]
  3. Hong, T.; Pinson, P.; Wang, Y.; Weron, R.; Yang, D.; Zareipour, H. Energy Forecasting: A Review and Outlook. IEEE Open Access J. Power Energy 2020, 7, 376–388. [Google Scholar] [CrossRef]
  4. Mavromatidis, G.; Orehounig, K.; Carmeliet, J. A review of uncertainty characterisation approaches for the optimal design of distributed energy systems. Renew. Sustain. Energy Rev. 2018, 88, 258–277. [Google Scholar] [CrossRef]
  5. Koltsaklis, N.E.; Dagoumas, A.S. State-of-the-art generation expansion planning: A review. Appl. Energy 2018, 230, 563–589. [Google Scholar] [CrossRef]
  6. Gandoman, F.H.; Abdel Aleem, S.H.E.; Omar, N.; Ahmadi, A.; Alenezi, F.Q. Short-term solar power forecasting considering cloud coverage and ambient temperature variation effects. Renew. Energy 2018, 123, 793–805. [Google Scholar] [CrossRef]
  7. Radet, H.; Sareni, B.; Roboam, X. On the interaction between the design and operation under uncertainties of a simple distributed energy system. Int. J. Comput. Math. Electr. Electron. Eng. 2022, 41, 2084–2095. [Google Scholar] [CrossRef]
  8. Köhler, S.; Rongstock, R.; Hein, M.; Eicker, U. Similarity measures and comparison methods for residential electricity load profiles. Energy Build. 2022, 271, 112327. [Google Scholar] [CrossRef]
  9. Pfenninger, S.; Staffell, I. Long-term patterns of European PV output using 30 years of validated hourly reanalysis and satellite data. Energy 2016, 114, 1251–1265. [Google Scholar] [CrossRef]
  10. Debnath, K.B.; Mourshed, M. Forecasting methods in energy planning models. Renew. Sustain. Energy Rev. 2018, 88, 297–325. [Google Scholar] [CrossRef]
  11. Patidar, S.; Jenkins, D.P.; Simpson, S.A. Stochastic modelling techniques for generating synthetic energy demand profiles. Int. J. Energy Stat. 2016, 4, 1650014. [Google Scholar] [CrossRef]
  12. Chen, Y.; Wang, Y.; Kirschen, D.; Zhang, B. Model-Free Renewable Scenario Generation Using Generative Adversarial Networks. IEEE Trans. Power Syst. 2018, 33, 3265–3275. [Google Scholar] [CrossRef]
  13. Ghalehkhondabi, I.; Ardjmand, E.; Weckman, G.R.; Young, W.A. An overview of energy demand forecasting methods published in 2005–2015. Energy Syst. 2017, 8, 411–447. [Google Scholar] [CrossRef]
  14. Anvari, M.; Proedrou, E.; Schäfer, B.; Beck, C.; Kantz, H.; Timme, M. Data-driven load profiles and the dynamics of residential electricity consumption. Nat. Commun. 2022, 134, 4593. [Google Scholar] [CrossRef] [PubMed]
  15. Salazar Duque, E.M.; Vergara, P.P.; Nguyen, P.H.; van der Molen, A.; Slootweg, J.G. Conditional Multivariate Elliptical Copulas to Model Residential Load Profiles from Smart Meter Data. IEEE Trans Smart Grids 2021, 12, 4280–4293. [Google Scholar] [CrossRef]
  16. Crawley, D.B.; Pedersen, C.O.; Lawrie, L.K.; Winkelmann, F.C. EnergyPlus: Energy Simulation Program. ASHRAE J. 2000, 42, 49–56. [Google Scholar]
  17. Berthou, T.; Stabat, P.; Salvazet, R.; Marchio, D. Development and validation of a gray box model to predict thermal behavior of occupied office buildings. Energy Build. 2014, 74, 91–100. [Google Scholar] [CrossRef]
  18. Lombardi, F.; Balderrama, S.; Quoilin, S.; Colombo, E. Generating high-resolution multi-energy load profiles for remote areas with an open-source stochastic model. Energy 2019, 177, 433–444. [Google Scholar] [CrossRef]
  19. Fonseca, J.A.; Schlueter, J. Integrated model for characterization of spatiotemporal building energy consumption patterns in neighborhoods and city districts. Appl. Energy 2015, 142, 247–265. [Google Scholar] [CrossRef]
  20. Agarwal, C.C. Data Mining and Knowledge Discovery Series; Springer: Berlin/Heidelberg, Germany, 2015. [Google Scholar]
  21. Bouveyron, C.; Celeux, G.; Murphy, T.B.; Raftery, A.E. Model-Based Clustering and Classification for Data Science: With Applications in R; Cambridge University Press: Cambridge, UK, 2019. [Google Scholar]
  22. Xu, R.; Wunsch, D. Survey of clustering algorithms. IEEE Trans. Neural Netw. 2005, 16, 645–678. [Google Scholar] [CrossRef]
  23. MacQueen, J. Some methods for classification and analysis of multivariate observations. In Proceedings of the 5th Berkeley Symposium on Mathematical Statististics and Probability; University of California Press: Berkeley, CA, USA, 1967; pp. 281–297. [Google Scholar]
  24. Schubert, E.; Rousseeuw, P.J. Faster k-Medoids Clustering: Improving the PAM, CLARA, and CLARANS Algorithms. In Proceedings of the Similarity Search and Applications: 12th International Conference, SISAP 2019, Newark, NJ, USA, 2–4 October 2019; Proceedings 12. Springer International Publishing: Berlin/Heidelberg, Germany, 2019; pp. 171–187. [Google Scholar]
  25. Ibe, O. Markov Processes for Stochastic Modeling, 2nd ed.; Elsevier Insights: Amsterdam, The Netherlands, 2013. [Google Scholar]
  26. Chang, W.A. Literature Review of Wind Forecasting Methods. J. Power Energy Eng. 2014, 2, 161–168. [Google Scholar] [CrossRef]
  27. Zhang, Y.; Qin, C.; Srivastava, A.K.; Jin, C.; Sharma, R.K. Data-driven day-ahead PV estimation using autoencoder-LSTM and persistence model. IEEE Trans. Ind. Appl. 2020, 56, 7185–7192. [Google Scholar] [CrossRef]
  28. Ratnam, E.L.; Weller, S.R.; Kellett, C.M.; Murray, A.T. Residential load and rooftop PV generation: An Australian distribution network dataset. Int. J. Sustain. Energy 2017, 36, 787–806. [Google Scholar] [CrossRef]
  29. Poulin, A.; Dostie, M.; Fournier, M.; Sansregret, S. Load duration curve: A tool for technico-economic analysis of energy solutions. Energy Build. 2008, 40, 29–35. [Google Scholar] [CrossRef]
  30. Rousseeuw, P.J. Silhouettes: A graphical aid to the interpretation and validation of cluster analysis. J. Comput. Math. 1987, 20, 53–65. [Google Scholar] [CrossRef]
  31. Sheng, W.; Swift, S.; Zhang, L.; Liu, X. A weighted sum validity function for clustering with a hybrid niching genetic algorithm. IEEE Trans. Syst. Man Cybern. Part B Cybern. 2005, 35, 1156–1167. [Google Scholar] [CrossRef] [PubMed]
Figure 1. Description of the scenario generation method based on Markov chains: from historical data (0); days are divided into representative week and weekend days for each month (1); for each hour, a given number of states is selected using a clustering algorithm (2); then the transition matrices based on the probabilities of going from one state to another between two consecutive hours are computed (3); finally, synthetic scenarios are generated through giving an initial state, a timestamp and the length of the horizon (4).
Figure 1. Description of the scenario generation method based on Markov chains: from historical data (0); days are divided into representative week and weekend days for each month (1); for each hour, a given number of states is selected using a clustering algorithm (2); then the transition matrices based on the probabilities of going from one state to another between two consecutive hours are computed (3); finally, synthetic scenarios are generated through giving an initial state, a timestamp and the length of the horizon (4).
Energies 16 07871 g001
Figure 2. Representative periods classification to account for the different time scales’ variability. Data are classified at the level of the day for each month and for all available years, distinguishing weekdays from weekends.
Figure 2. Representative periods classification to account for the different time scales’ variability. Data are classified at the level of the day for each month and for all available years, distinguishing weekdays from weekends.
Energies 16 07871 g002
Figure 3. Illustration of the transition matrix calculation for a simple example with three clusters at hour h and h + 1.
Figure 3. Illustration of the transition matrix calculation for a simple example with three clusters at hour h and h + 1.
Energies 16 07871 g003
Figure 4. Overview of the 3-year time series from the 39th Ausgrid customer (in gray) followed by a 1-year scenario generated with the Markov model (in color). This conclusion is also verified at a lower time scale as depicted in Figure 5 and Figure 6. Indeed, the latter shows the comparison between the real historical data and the Markov model for both the weekdays and weekend days of each month.
Figure 4. Overview of the 3-year time series from the 39th Ausgrid customer (in gray) followed by a 1-year scenario generated with the Markov model (in color). This conclusion is also verified at a lower time scale as depicted in Figure 5 and Figure 6. Indeed, the latter shows the comparison between the real historical data and the Markov model for both the weekdays and weekend days of each month.
Energies 16 07871 g004
Figure 5. Comparison between the Markov model (in blue) and the real historical data (in red) for each weekday of each month. Mean values are depicted with a solid and dashed line for the model and the real data, respectively. All the values are given in the background of each figure for both cases.
Figure 5. Comparison between the Markov model (in blue) and the real historical data (in red) for each weekday of each month. Mean values are depicted with a solid and dashed line for the model and the real data, respectively. All the values are given in the background of each figure for both cases.
Energies 16 07871 g005
Figure 6. Comparison between the Markov model (in blue) and the real historical data (in red) for each weekend day of each month. Mean values are depicted with a solid and dashed line for the model and the real data, respectively. All the values are given in the background of each figure for both cases. As observed in the Figures, it appears that the Markov model correctly reproduces both the shapes and the main statistical features of the historical dataset for each of the representative days (e.g., the model mean values match those of the historical dataset). Furthermore, the seasonal issues are accurately addressed via the model as it follows the monthly variations of the real data. This latter observation is reinforced through comparing the power level amplitudes, in addition to the sunrise and sunset times of the different months. Note that for this case study, there are no major differences between the weekday and weekend day energy demand patterns. This latter observation might not be true with other residential customers.
Figure 6. Comparison between the Markov model (in blue) and the real historical data (in red) for each weekend day of each month. Mean values are depicted with a solid and dashed line for the model and the real data, respectively. All the values are given in the background of each figure for both cases. As observed in the Figures, it appears that the Markov model correctly reproduces both the shapes and the main statistical features of the historical dataset for each of the representative days (e.g., the model mean values match those of the historical dataset). Furthermore, the seasonal issues are accurately addressed via the model as it follows the monthly variations of the real data. This latter observation is reinforced through comparing the power level amplitudes, in addition to the sunrise and sunset times of the different months. Note that for this case study, there are no major differences between the weekday and weekend day energy demand patterns. This latter observation might not be true with other residential customers.
Energies 16 07871 g006
Figure 7. Short-timescale variability over one week for 10 randomly chosen scenarios in July. The mean values are depicted in red.
Figure 7. Short-timescale variability over one week for 10 randomly chosen scenarios in July. The mean values are depicted in red.
Energies 16 07871 g007
Figure 8. Autocorrelation of the three variables and load/production duration curves for both the synthetic scenarios (in blue) and the 3-year historical dataset (in red). To conclude this section, all these visual and statistical indicators emphasize the relevance of the Markov’s synthesis process with respect to the input data (i.e., the historical data). It should be noted that, while the generated profiles are really variable on a short (daily) timescale (see Figure 7), the key statistical characteristics (e.g., mean and peak value) are recovered over the long term (annual) (see Figure 8).
Figure 8. Autocorrelation of the three variables and load/production duration curves for both the synthetic scenarios (in blue) and the 3-year historical dataset (in red). To conclude this section, all these visual and statistical indicators emphasize the relevance of the Markov’s synthesis process with respect to the input data (i.e., the historical data). It should be noted that, while the generated profiles are really variable on a short (daily) timescale (see Figure 7), the key statistical characteristics (e.g., mean and peak value) are recovered over the long term (annual) (see Figure 8).
Energies 16 07871 g008
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

Radet, H.; Sareni, B.; Roboam, X. Synthesis of Solar Production and Energy Demand Profiles Using Markov Chains for Microgrid Design. Energies 2023, 16, 7871. https://doi.org/10.3390/en16237871

AMA Style

Radet H, Sareni B, Roboam X. Synthesis of Solar Production and Energy Demand Profiles Using Markov Chains for Microgrid Design. Energies. 2023; 16(23):7871. https://doi.org/10.3390/en16237871

Chicago/Turabian Style

Radet, Hugo, Bruno Sareni, and Xavier Roboam. 2023. "Synthesis of Solar Production and Energy Demand Profiles Using Markov Chains for Microgrid Design" Energies 16, no. 23: 7871. https://doi.org/10.3390/en16237871

APA Style

Radet, H., Sareni, B., & Roboam, X. (2023). Synthesis of Solar Production and Energy Demand Profiles Using Markov Chains for Microgrid Design. Energies, 16(23), 7871. https://doi.org/10.3390/en16237871

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop