Acessibilidade / Reportar erro

A Data-driven Robust Model for Day-ahead Operation Planning of Microgrids Considering Distributed Energy Resources and Demand Response

Abstract

The optimization of microgrids present challenges such as managing distributed energy resources (DERs) and the high reliance on intermittent generation such as PV and wind turbines, which present an aleatory behavior. The most popular techniques to deal with the uncertainties are stochastic optimization, which comes with a high computational burden, and adaptive robust optimization (ARO), which is often criticized for the conservativeness of its solutions. In response to these drawbacks, this work proposes a mixed-integer linear programming (MILP) model using a data-driven robust optimization approach (DDRO) solved by a two-stage decomposition using the column-and-constraint generation algorithm (C&CG). The DDRO model uses historic data to create the bounds of its uncertainty set, eliminating the conservativeness created by the arbitrary definition of the uncertainty set that is seen in ARO while maintaining a low computational burden. The DDRO model applied was not previously utilized in MGs, only in bulk power systems. A benchmark MG system was simulated for a 24-hour period without uncertainties, with uncertainties using ARO (15% uncertainty budget) and with uncertainties and DDRO. The operational costs without uncertainty were $124,600,60, while the ARO approach rose those costs by 32.5% ($ 165,137.18). Finally, the DDRO approach managed to keep the costs in $ 126,934.54, a mere 1.8% increase from the base case without uncertainty. All simulations were performed in less than 1 minute. The results confirm a) the advantages of bounding the uncertainty set with historical data instead of an arbitrary definition of bounds and b) the fast-converging times of DDRO.

Keywords:
Operation Planning; Microgrids; Data-Driven Robust Optimization; Demand Response; Distributed Energy Resources.

HIGHLIGHTS

• Novel data-driven approach to uncertainties in microgrid resources

• Faster convergence that stochastic optimization

• Reduced conservativeness compared to robust optimization

• Microgrid system with comprehensive selection of distributed energy resources

INTRODUCTION

Modern distribution systems have been steadily evolving from classic networks, where energy is generated in large plants outside the main consumption centers, to active distribution networks (ADNs), where the centralized generation is combined with the distributed generation from DERs, such as distributed generation (DG), energy storage systems (ESSs), and electric vehicles (EVs). These networks form a much more complex grid with bidirectional power flow, both from the larger grid to the consumers and from the consumers to the grid.

In this context, the microgrid (MG) concept emerged. A microgrid is a small-scale ADN that is composed of a group of DERs that can be managed by the same operator, aiming to maximize financial benefits, service reliability, and a variety of other objectives. Therefore, the rise in microgrid systems has stimulated the development of several optimization frameworks for microgrid operation in the literature. On the other hand, the number of possibilities to be considered in MG systems, regarding the different types of DERs, the optimization techniques, the objectives to be accomplished, and the topology of the system is enormous, guaranteeing that the subject still has plenty of opportunities for further development.

Regarding the topology of MGs, several works, such as (11 Tenfen D, Finardi EC. A mixed integer linear programming model for the energy management problem of microgrids. Electric Power Systems Research [Internet]. 2015; Available from: https://www.sciencedirect.com/science/article/pii/S0378779614004659
https://www.sciencedirect.com/science/ar...

2 Umeozor EC, Trifkovic M. Operational scheduling of microgrids via parametric programming. Appl Energy [Internet]. 2016; Available from: https://www.sciencedirect.com/science/article/pii/S0306261916310960
https://www.sciencedirect.com/science/ar...

3 Nwulu NI, Xia X. Optimal dispatch for a microgrid incorporating renewables and demand response. Renew Energy [Internet]. 2017; Available from: https://www.sciencedirect.com/science/article/pii/S0960148116307273
https://www.sciencedirect.com/science/ar...

4 Aliasghari P, Mohammadi-Ivatloo B, Alipour M, Optimal scheduling of plug-in electric vehicles and renewable micro-grid in energy and reserve markets considering demand response program. J Clean Prod [Internet]. 2018; Available from: https://www.sciencedirect.com/science/article/pii/S0959652618307157
https://www.sciencedirect.com/science/ar...

5 Guo Y, Zhao C. Islanding-aware robust energy management for microgrids. IEEE Trans Smart Grid. 2018;9(2):1301-9.

6 Mehdizadeh A, Taghizadegan N, Salehi J. Risk-based energy management of renewable-based microgrid using information gap decision theory in the presence of peak load management. Appl Energy [Internet]. 2018; Available from: https://www.sciencedirect.com/science/article/pii/S0306261917316835
https://www.sciencedirect.com/science/ar...
-77 Moretti L, Martelli E, Manzolini G. An efficient robust optimization model for the unit commitment and dispatch of multi-energy systems and microgrids. Appl Energy [Internet]. 2020; Available from: https://www.sciencedirect.com/science/article/pii/S0306261919315466
https://www.sciencedirect.com/science/ar...
) represent the network in a single-bus topology, which simplifies the optimization problem but makes the model unable to account for bus voltage and line power flow constraints. On the other side of the spectrum, some works, including (88 Zhang J, Wu Y, Guo Y, Wang B, Wang H, Liu H. A hybrid harmony search algorithm with differential evolution for day-ahead scheduling problem of a microgrid with consideration of power flow constraints. Appl Energy [Internet]. 2016; Available from: https://www.sciencedirect.com/science/article/pii/S030626191631337X
https://www.sciencedirect.com/science/ar...

9 Monfared HJ, Ghasemi A, Loni A, Marzband M. A hybrid price-based demand response program for the residential micro-grid. Energy [Internet]. 2019; Available from: https://www.sciencedirect.com/science/article/pii/S0360544219313726
https://www.sciencedirect.com/science/ar...
-1010 Zia MF, Elbouchikhi E, Benbouzid M. Optimal operational planning of scalable DC microgrid with demand response, islanding, and battery degradation cost considerations. Appl Energy [Internet]. 2019; Available from: https://www.sciencedirect.com/science/article/pii/S0306261919300406
https://www.sciencedirect.com/science/ar...
), consider the most accurate network models with non-linear constraints that heavily increase the complexity and computational burden of the model. Finally, some works, such as (1111 Liu G, Starke M, Zhang X. A MILP-based distribution optimal power flow model for microgrid operation. Power and Energy Society. [Internet]. 2016; Available from: https://ieeexplore.ieee.org/abstract/document/7741704/
https://ieeexplore.ieee.org/abstract/doc...

12 Mortaz E, Valenzuela J. Microgrid energy scheduling using storage from electric vehicles. Electr Pow Syst Res [Internet]. 2017; Available from: https://www.sciencedirect.com/science/article/pii/S0378779616304692
https://www.sciencedirect.com/science/ar...

13 Ebrahimi MR, Amjady N. Adaptive robust optimization framework for day-ahead microgrid scheduling. Int. J. Electr. Power and Energy Syst. [Internet]. 2019;107(February 2018):213-23. Available from: https://doi.org/10.1016/j.ijepes.2018.11.029
https://doi.org/10.1016/j.ijepes.2018.11...

14 Wang B, Zhang C, Dong Z. Interval Optimization Based Coordination of Demand Response and Battery Energy Storage System Considering SoC Management in A Microgrid. IEEE Trans Sustain Energy [Internet]. 2020; Available from: https://ieeexplore.ieee.org/abstract/document/9043605/
https://ieeexplore.ieee.org/abstract/doc...

15 Velloso A, Street A, Pozo D, Arroyo JM, Cobos NG. Two-stage robust unit commitment for co-optimized electricity markets: An adaptive data-driven approach for scenario-based uncertainty sets. IEEE Trans Sustain Energy. 2020;11(2):958-69.
-1616 Wang L, Jiang C, Gong K, Si R, Shao H, Liu W. Data-driven distributionally robust economic dispatch for distribution network with multiple microgrids. IET Generation, Transmission and Distribution. 2020;14(24):5816-22.) consider multiple-bus systems with linearized constraints to reduce complexity while maintaining important network aspects such as voltage control and line power flow constraints.

With the improvements in control technology in smart grids, demand response programs became feasible, especially demand side management (DSM). These programs are divided into price-based DSM, where hourly energy tariffs incentivize consumers to shift the operation of loads to less expensive periods, such as in (11 Tenfen D, Finardi EC. A mixed integer linear programming model for the energy management problem of microgrids. Electric Power Systems Research [Internet]. 2015; Available from: https://www.sciencedirect.com/science/article/pii/S0378779614004659
https://www.sciencedirect.com/science/ar...
), or incentive-based DSM, where financial incentives are directly offered to consumers to shift or curtail non-essential loads.

One of the most important factors to be considered in microgrid optimization is the fact that most MGs rely heavily on renewable generation, such as photovoltaic (PV) and wind turbines and the availability of these sources is dependent on weather conditions. Therefore, these sources have an intermittent and aleatory behavior in the short-term, leading to a significant amount of uncertainty in operation planning decisions. Also, load demand can suffer fluctuations from the average tendency in a short period of analysis. Despite that, many works in MG optimization, such as (11 Tenfen D, Finardi EC. A mixed integer linear programming model for the energy management problem of microgrids. Electric Power Systems Research [Internet]. 2015; Available from: https://www.sciencedirect.com/science/article/pii/S0378779614004659
https://www.sciencedirect.com/science/ar...
,33 Nwulu NI, Xia X. Optimal dispatch for a microgrid incorporating renewables and demand response. Renew Energy [Internet]. 2017; Available from: https://www.sciencedirect.com/science/article/pii/S0960148116307273
https://www.sciencedirect.com/science/ar...
,88 Zhang J, Wu Y, Guo Y, Wang B, Wang H, Liu H. A hybrid harmony search algorithm with differential evolution for day-ahead scheduling problem of a microgrid with consideration of power flow constraints. Appl Energy [Internet]. 2016; Available from: https://www.sciencedirect.com/science/article/pii/S030626191631337X
https://www.sciencedirect.com/science/ar...

9 Monfared HJ, Ghasemi A, Loni A, Marzband M. A hybrid price-based demand response program for the residential micro-grid. Energy [Internet]. 2019; Available from: https://www.sciencedirect.com/science/article/pii/S0360544219313726
https://www.sciencedirect.com/science/ar...

10 Zia MF, Elbouchikhi E, Benbouzid M. Optimal operational planning of scalable DC microgrid with demand response, islanding, and battery degradation cost considerations. Appl Energy [Internet]. 2019; Available from: https://www.sciencedirect.com/science/article/pii/S0306261919300406
https://www.sciencedirect.com/science/ar...
-1111 Liu G, Starke M, Zhang X. A MILP-based distribution optimal power flow model for microgrid operation. Power and Energy Society. [Internet]. 2016; Available from: https://ieeexplore.ieee.org/abstract/document/7741704/
https://ieeexplore.ieee.org/abstract/doc...
,1717 Delfino F, Ferro G, Robba M. An Energy Management Platform for the Optimal Control of Active and Reactive Powers in Sustainable Microgrids. IEEE Trans Ind Appl [Internet]. 2019; Available from: https://ieeexplore.ieee.org/abstract/document/8700197/
https://ieeexplore.ieee.org/abstract/doc...
,1818 Kim TH, Shin H, Kwag K, Kim W. A parallel multi-period optimal scheduling algorithm in microgrids with energy storage systems using decomposed inter-temporal constraints. Energy [Internet]. 2020; Available from: https://www.sciencedirect.com/science/article/pii/S0360544220307763
https://www.sciencedirect.com/science/ar...
), and disregard uncertainties, which can bring problems to the MG operator if the weather conditions are different than forecasted.

Different techniques can be applied to cope with uncertain behavior. The work in (1919 Jin M, Feng W, Liu P, Marnay C, Spanos C. MOD-DR: Microgrid optimal dispatch with demand response. Appl Energy [Internet]. 2017; Available from: https://www.sciencedirect.com/science/article/pii/S030626191631724X
https://www.sciencedirect.com/science/ar...
) proposes a deterministic approach combined with a real-time algorithm to respond to uncertainty realization. Stochastic programming uses probability distribution functions to model the behavior of uncertain variables, generating scenarios that are weighted by their probability and thus obtaining an average operational condition, as can be seen in (22 Umeozor EC, Trifkovic M. Operational scheduling of microgrids via parametric programming. Appl Energy [Internet]. 2016; Available from: https://www.sciencedirect.com/science/article/pii/S0306261916310960
https://www.sciencedirect.com/science/ar...
,44 Aliasghari P, Mohammadi-Ivatloo B, Alipour M, Optimal scheduling of plug-in electric vehicles and renewable micro-grid in energy and reserve markets considering demand response program. J Clean Prod [Internet]. 2018; Available from: https://www.sciencedirect.com/science/article/pii/S0959652618307157
https://www.sciencedirect.com/science/ar...
,1212 Mortaz E, Valenzuela J. Microgrid energy scheduling using storage from electric vehicles. Electr Pow Syst Res [Internet]. 2017; Available from: https://www.sciencedirect.com/science/article/pii/S0378779616304692
https://www.sciencedirect.com/science/ar...
,1414 Wang B, Zhang C, Dong Z. Interval Optimization Based Coordination of Demand Response and Battery Energy Storage System Considering SoC Management in A Microgrid. IEEE Trans Sustain Energy [Internet]. 2020; Available from: https://ieeexplore.ieee.org/abstract/document/9043605/
https://ieeexplore.ieee.org/abstract/doc...
) . Even if stochastic optimization provides a thorough analysis considering a broad spectrum of possibilities, obtaining probability distribution functions for real-world variables is not straightforward and can be challenging. Also, the computational burden of generating thousands of scenarios can be high.

To solve the problem of obtaining probability distribution functions, work (1313 Ebrahimi MR, Amjady N. Adaptive robust optimization framework for day-ahead microgrid scheduling. Int. J. Electr. Power and Energy Syst. [Internet]. 2019;107(February 2018):213-23. Available from: https://doi.org/10.1016/j.ijepes.2018.11.029
https://doi.org/10.1016/j.ijepes.2018.11...
) utilizes adaptive robust optimization (ARO). ARO adopts a worst-case scenario approach, obtaining the worst possible realization in an interval-based uncertainty set, usually a polyhedric set. This approach eliminates the need for detailed knowledge of the probabilistic behavior of the uncertain variables and eases the computational burden, obtaining a safe but often overly conservative result because the worst-case scenario of an uncertainty set that was defined without adequate historical data or probability functions can be far greater than the actual uncertainty of the variable.

To establish a compromise between the high computational burden of stochastic programming and the conservativeness of ARO, data-driven robust optimization (DDRO) offers an interesting option: it combines the robust optimization approach of optimizing for the worst-case scenario, eliminating the need for considering lots of scenarios and probability distributions and reducing the computational burden when compared to stochastic optimization, while providing a less conservative approach than ARO. In ARO, an arbitrary amount of uncertainty is considered for the uncertain variables via an uncertainty budget. This makes ARO solutions tend to be overly-conservative. In DDRO, historical data is used to create the bounds of the uncertainty set, providing more realistic and less conservative uncertainty sets.

In (1515 Velloso A, Street A, Pozo D, Arroyo JM, Cobos NG. Two-stage robust unit commitment for co-optimized electricity markets: An adaptive data-driven approach for scenario-based uncertainty sets. IEEE Trans Sustain Energy. 2020;11(2):958-69.), historical data of uncertain variables are used as the uncertainty set. Therefore, the uncertain variable can assume values that have previously happened or a linear combination of historical scenarios, making the uncertainty set much closer to real-world behaviors than an arbitrarily defined budget-constrained set that can cause ARO based models to be extremely conservative, including scenarios with extremely low probability. This work, although not focused on MGs, but in traditional networks, offers an interesting possibility for works in the MG field. In (1616 Wang L, Jiang C, Gong K, Si R, Shao H, Liu W. Data-driven distributionally robust economic dispatch for distribution network with multiple microgrids. IET Generation, Transmission and Distribution. 2020;14(24):5816-22.), historical data is also used, but in a different approach compared to stochastic programming, called distributionally DDRO, where the past scenarios are used to estimate an empirical probability distribution function that is utilized to perform stochastic optimization.

In this work, the DDRO method considered is close to that of (1515 Velloso A, Street A, Pozo D, Arroyo JM, Cobos NG. Two-stage robust unit commitment for co-optimized electricity markets: An adaptive data-driven approach for scenario-based uncertainty sets. IEEE Trans Sustain Energy. 2020;11(2):958-69.), where the uncertainty set is the convex hull of a set of points representing historical scenarios, eliminating the need of generating probability distributions as is done in distributionally DDRO and stochastic programming.

Considering the literature review, we propose a MG operational planning optimization model that includes:

  • A data-driven robust optimization approach to uncertainties in load demand and photovoltaic generation

  • A linearized network topology that is suitable for both radial and meshed microgrids and provides the possibility to consider voltage control and power flow constraints.

  • Modelling of Battery Energy Storage Systems (BESSs), including degradation costs.

  • Modelling of both non-dispatchable and dispatchable generation.

  • A price-based demand response program

  • A fast-converging column and constraint generation (C&CG) solving algorithm.

The novelty of this work is the application of a novel DDRO methodology that has not been utilized previously in a MG system, only in bulk power systems that lack the amount of DERs and other constraints that are present in MG systems, filling the research gap between stochastic optimization, that comes with a high computational burden, and ARO, which is often criticized by its conservativeness. We also highlight that most works found in the literature fail to consider at least one of the DERs considered in this work (ESS, demand response, dispatchable and non-dispatchable generation) while this work presents a detailed formulation of all these resources, including ESS degradation costs, price-based demand response, PV, and thermal generation.

MATERIAL AND METHODS

Proposed Model

The proposed model seeks to minimize the total operational costs of the MG in a 24-hour timespan for the worst possible uncertainty realization. These costs include the cost of exchanging energy from the upstream grid, the operational costs of the dispatchable generation, the cost of load shedding and the cost associated with battery degradation. Uncertainty is proposed in the PV generation and the load demand and formulated in a DDRO approach.

The objective function is represented in Equation (1).

(1) min x max y min u T C o s t

In equation (1), x represents all the variables related to BESS, controllable loads, and the dispatchable generation, y represents the uncertain variables related to non-controllable loads and availability of PV generation, while u represents non-utilized PV generation.

The total cost (TCost) is composed of the cost of exchanging energy with the grid, the degradation cost of the batteries, the operational costs of dispatchable generators, and load shedding costs, as can be seen in (2).

(2) T C o s t = t = 1 N Δ t C t G r i d + C t B E S S + C t D g + C L S

The cost of exchanging energy with the upstream grid can be a positive value in case the MG is in an energy deficit and therefore purchasing energy from the grid, or a negative value, in case the MG is in an energy surplus situation and selling energy to the grid. Each bus of the MG has a net energy deficit or surplus in each period, that can be calculated as in (3).

(3) N E t , b = Δ t L t , b + S t t , b - G p v t , b - G d g t , b

where NEt,b represents the net energy surplus/deficit for bus b in period t, Lt,b represents total load (controllable and non-controllable) in the bus for period t, Stt,b represents net BESS storage/discharge (positive values indicate the battery is charging in period t and negative values indicate discharge), Gpvt,b represents PV generation, and Gdgt,b represents dispatchable generation.

Then, the net energy surplus/deficit of each bus is aggregated for all buses, representing the total surplus/deficit of the entire MG for a period t. This aggregated net energy is the value that must be purchased from the grid in a deficit situation or sold to the grid in a surplus situation. Thus, grid exchanging costs can be calculated as in (4).

(4) C t G r i d = b = 1 n b N E t , b * E T t

where ETt represents the energy tariff for period t.

BESS costs (CtBESS) are related to the battery degradation caused by cycling the battery. This degradation is mostly dependent on the depth of discharge (DoD) applied to the battery in a discharge cycle. A percentual degradation corresponds to each amount of DoD applied to the battery. The cost of this percentual degradation can be calculated by associating the degradation with the investment cost of purchasing the BESS, as in (5).

(5) C t B E S S = b = 1 n b D E G t , b * I N V b

where DEGt,b represents percentual degradation caused by the discharge cycle applied in period t to a battery installed in bus b and INVb represents the investment cost of purchasing the battery in bus b. Further details on calculating DEGt,b are provided in section 2.2.

The cost of the dispatchable generation is represented in a linear function, with a fixed cost for committing the generator in period t and a variable cost that depends on the amount of power required, as can be seen in (6).

(6) C t D g = b = 1 n b Δ t * ( A b * X d g t , b + B b * G d g t , b )

where Ab is the cost in $ associated with committing the generator in bus b, Xdgt,b is a binary variable that indicates if the generator in bus b has been committed in period t, Bb is the linear cost associated with the power dispatched from the generator.

Finally, load shedding costs apply if, for any reason, it is impossible to allocate all the controllable load in the 24-hour period, as in (7).

(7) C L S = b = 1 n b L S b * L S T

where LSb represents the total amount of load that was curtailed from bus b in the 24-hour timespan and LST represents the penalty costs associated with load shedding.

Equations (8) - (14) represent the operational constraints of the battery system.

(8) X t , b C + X t , b D 1
(9) X t , b D - X t - 1 , b D = Z t , b O N - Z t , b O F F
(10) S o C t , b M I N S o C t , b S o C t , b M A X
(11) S o C t , b = S o C t - 1 , b + Δ t * S t t , b C * η C - S t t , b D η D
(12) S t t , b = S t t , b C - S t t , b D
(13) 0 S t t , b C S t t , b M A X * X t , b C
(14) 0 S t t , b D S t t , b M A X * X t , b D

Xt,bC and Xt,bD are binary variables that indicate if the battery from bus b is charging (C) or discharging (D) in period t. Therefore, equation (8) guarantees that the battery cannot charge and discharge simultaneously. Zt,bON and Zt,bOFF are binary variables that indicate the beginning and end of a discharge cycle according to equation (9), which is important to calculate degradation. Equation (10) establishes the state of charge (SoC) limits for each battery and (11) corresponds to the inter-temporal power balance in the battery system. Equation (12) calculates the net storage value from the battery installed in bus b in a period t and (13) and (14) limit the power of charge/discharge of the battery and guarantee that the battery will only be operated if the corresponding binary variable is activated.

Regarding battery degradation, the work in (20) presents a model for the degradation behavior of li-ion batteries, which is a non-linear exponential curve that correlates the DoD applied to the battery in each cycle and the percentual degradation. Since this work proposes a MILP model, that behavior had to be linearized using a piecewise linearization technique, where several linear functions are approximated to sections of the original non-linear curve and then, constraint (15) is applied to each of the linear functions.

(15) D E G b L C f + A C f * D o D b f

where LCf and ACf are the linear and angular coefficients of the linear function f among the linear functions that were approximated to the degradation curve. Equation (15) guarantees that the value of DEGb is above that of the approximation, but since a higher value of DEGb means a higher degradation cost for the battery, the solver will seek the lowest possible values, without violating (15).

The total load in the MG is divided into controllable and non-controllable loads. Non-controllable loads are forecasted on an hourly basis and uncertainty is applied, but controllable loads are provided on a per-bus basis. Each bus of the MG has an amount of controllable load to be allocated in any period of the day, and a percentage of that amount is allocated in each period, as in (16).

(16) C L t , b a l = d r t , b * C L b

where CLt,bal represents the amount of controllable load allocated in bus b in period t, CLb represents the total amount of controllable load to be allocated in bus b in the 24-hour timespan, and drt,b represents the percentage of the total controllable load for bus b that has been allocated in period t. Equation (17) guarantees that the values of drt,b are between 0 and 100% and (18) establishes that no more than 100% of the total controllable load for bus b is allocated in the 24-hour period.

(17) 0 d r t , b 1
(18) t = 1 N d r t , b 1

Finally, if the sum of drt,b for the 24-hour period is smaller than 100%, it means that some portion of the controllable load for bus b has not been allocated, meaning it was curtailed. Then, the load shedding amount can be calculated from (19).

(19) L S b = 1 - t = 1 N D R t , b * C L b

Total load for a bus b in period t, required to calculate the net energy from equation (3), can be calculated as in (20).

(20) L t , b = C L t , b a l + N C L t , b

where NCLt,b represents non-controllable load.

The work in (21) presents a comprehensive formulation of thermal generators, considering ramp constraints and start-up and shut-down ramp constraints. In this work, for the sake of simplicity, the modelling of thermal generators is a simplified version of (21) where start-up and shut-down ramp rates are equal to the ramp rate for an already powered up generator, meaning there are no special constraints for the start-up and shut-down moments. Binary variable Xtht,b is activated when the thermal unit from bus b is committed in a period t, while binary variables Ytht,b and Ztht,b are activated if the thermal unit in bus b is starting up/shutting down in period t, respectively.

Equations (21)-(30) represent the thermal generation constraints. Further clarification can be found in (21).

(21) Y t h t , b - Z t h t , b = X t h t , b - X t h t - 1 , b
(22) P d g t , b P b m i n X t h t , b - Z t h t + 1 , b - Y t h t , b
(23) P d g t , b P b m a x X t h t , b - Y t h t , b + R b * Y t h t , b
(24) P d g t , b P b m a x X t h t , b - Z t h t + 1 , b + R b * Z t h t + 1 , b
(25) P d g t , b - P d g t - 1 , b P b m a x * Y t h t , b + R b * X t h t , b - Y t h t , b
(26) P d g t - 1 , b - P d g t , b - P b m a x * Z t h t , b + R b * X t h t , b - Z t h t , b
(27) X t h t , b Y t h t , b
(28) X t h t , b Z t h t - 1 , b
(29) Y t h t , b + Z t h t , b + Z t h t + 1 , b 1
(30) G d g t , b = Δ t * P d g t , b + P d g t - 1 , b 2

Equations (21) and (27)-(29) establish the connections between binary variables. Equations (22)-(24) establish the minimum and maximum power output of the thermal generators according to the different stages of operations (start-up, shut-down, and normal operation). Equations (25)-(26) establish the ramp constraints for the same stages. Equation (30) calculates the energy delivery in each period.

In this work, a linearized power flow model based on (22) is utilized. This model has the advantages of being capable of representing voltage and power flow constraints for both radial and meshed networks. Equations (31)-(38) represent the constraints associated with the power flow model.

(31) P f l t , l = A * V a t - V b t + B * θ a t - θ b t
(32) Q f l t , l = B * V a t - V b t + A * θ a t - θ b t
(33) A = r a b r a b 2 + x a b 2 B = x a b r a b 2 + x a b 2
(34) - P f l l M A X P f l t , l P f l l M A X
(35) - Q f l l M A X Q f l t , l Q f l l M A X
(36) N E t , b Δ t - l = 1 Ω b P f l t , l = 0
(37) p f * N E t , b Δ t - l = 1 Ω b Q f l t , l = 0
(38) V M I N V t , b V M A X

where rab and xab are the resistance and reactance from a feeder that connects buses a and b, Vat and Vbt are the voltages from buses a and b connected by feeder l in a period t and θat and θbt are the angles associated with the same buses.

Equations (31)-(33) calculate active and reactive power flow in each feeder l and each period t, while (34) and (35) establish the maximum power flow value for each feeder. (36) establishes the power balance for each bus in the MG and (37) proposes a fixed power factor for all the MG, for the sake of simplicity. Finally, (38) establishes voltage limits for each bus of the system.

Considering on-grid operation of the MGs, peaks in energy demand from the upstream grid may be a challenge for the DSO and represent stability concerns for the grid and, therefore, should be avoided.

This concept can be illustrated by the load factor (LF), which is the ratio between the average power demand and the peak power demand of the MG, as in (39). A high LF means that the peak power of the system is not far greater than the average power demand, therefore, the operation is smooth and regular. A low LF means that the peak power is far greater than the average, which is undesirable.

To provide minimal impact on the upstream grid, it is proposed that the load factor of the MG after the optimization of DERs is not diminished harshly from the original value considering only the total load of the system. It is proposed that the new LF is limited to being above 80% of the original LF, as in constraint (40).

(39) L F = t = 1 N b = 1 n b L t , b 24 * max L t , b
(40) b = 1 n b N E t , b b = 1 n b t = 1 N N E t , b 24 * 0.8 * L F

Delivery of power from PV generators depends on the available generation and on the operational conditions of the MG that may demand a curtailment of the PV generation to satisfy constraints. Equations (41) and (42) model this behavior.

(41) G p v t , b = G p v t , b A v - G p v t , b c u r t
(42) 0 G p v t , b c u r t G p v t , b A v

where Gpvt,bAv is the available PV generation for the PV system on bus b on period t and Gpvt,bcurt is the amount of PV generation that has been curtailed.

Solution Algorithm and Data-Driven Uncertainty Set

As stated in the previous section, the objective function of the problem is a tri-level min-max-min problem. The solution to this sort of problem is not trivial and cannot be handled by commercial solvers directly. Thus, it is necessary to decompose the problem in stages that can be resolved separately and aggregated further. Most robust optimization problems, such as (13,15), utilize the column and constraint generation (C&CG) algorithm, as shown in Fig. 1.

Figure 1
C&CG algorithm

In this formulation, the problem is divided into two stages. The first stage is a min problem where the operational decisions are initially made based on the forecasted scenario, without any uncertainties. In this stage, the availability of PV generation (GpvAv) and the non-controllable loads (NCL) are considered fixed parameters and the operational decisions regarding BESS, thermal generation and controllable loads are made.

After the solution of the first stage, the operational decisions are fixed in the second stage, and the constraints associated with these decisions are disregarded. Then, the availability of PV generation and the non-controllable loads, that are considered fixed parameters in the first stage, are now considered as variables, where the algorithm seeks the worst-case scenario of the uncertain variables for the operational decisions made in the first stag, bounding these variables to the data-driven uncertainty set.

The data-driven uncertainty set for PV availability is represented by equation (43), and the uncertainty set for non-controllable loads is represented in (44). Additional references for this formulation can be found in (15).

(43) G p v b A v = { G p v b A v R N x n b | G p v b A v = d 1 = 1 D 1 α g d 1 G p v b , d 1 A v ¯ , d 1 = 1 D 1 α g d 1 = 1 , α g d 1 0 }
(44) N C L b = { N C L b R N x b | N C L b = d 2 = 1 D 2 α l d 2 N C L b , d 2 ¯ , d 1 = 1 D 2 α l d 2 = 1 , α l d 2 0 }

The uncertainty set is composed of D1 scenarios in case of PV, represented by Gpvb,d1Av¯ and D2 scenarios in case of NCL, represented by NCLb,d2. Each scenario represents one historical scenario (a full 24-hour period) that occurred in the past for each bus b. Therefore, the resulting scenario will be a linear combination of the past scenarios, and the solver is responsible to find a combination of the weights αgd1 and αld2 that result in the worst-case scenario for the optimization process.

That creates a new scenario of the uncertain variables, which is then incorporated to the first level, and the optimization is conducted again, but with the addition of the new scenario generated in the second stage of the previous iteration. The process then continues until the objective functions present the same value in both the first and second stages. That means that the first stage could not reach a new solution that improved the objective function, nor the second stage could find an even worse scenario, meaning that this solution is the best solution for the worst-case scenario.

Simulation Results

All numeric experiments are carried out using Gurobi Optimizer in an Intel® Core® i5-7300HQ CPU with 8 GB of RAM. The formulation was made in Python language, using the Pyomo framework to connect Python and Gurobi.

The work in (23) presents a detailed benchmark test system for networked microgrids. In this work, 4 different MG systems are proposed, between radial and meshed topologies, including PV and wind generation as well as thermal units and one year of historical data for load demand and PV availability, which is crucial for the implementation of the DDRO model. Therefore, the MG system that is simulated in this work is adapted from (2323 Alam MN, Chakrabarti S, Liang X. A Benchmark Test System for Networked Microgrids. IEEE Trans Industr Inform. 2020;16(10):6217-30.), with a few differences, such as replacing wind turbines with PV generation, since PV provides additional challenges due to the unavailability of PV generation at night and in peak tariff hours, and disregarding the connections with the other MGs proposed, only considering the connection with the upstream grid. Line data (resistance and reactance) can be obtained in (2323 Alam MN, Chakrabarti S, Liang X. A Benchmark Test System for Networked Microgrids. IEEE Trans Industr Inform. 2020;16(10):6217-30.). Battery acquisition costs were considered to be $100/kWh. For all the test systems, the values are considered in per unit values (pu), with an 11 kV base voltage and 10 MVA base power.

The base scenario of the uncertain variables is taken from a random summer day among the one-year scenarios proposed in (2323 Alam MN, Chakrabarti S, Liang X. A Benchmark Test System for Networked Microgrids. IEEE Trans Industr Inform. 2020;16(10):6217-30.). The energy tariffs follow the Brazilian white tariff. The data associated with the chosen scenario can be seen in Table 1.

Table 1
Data for simulation

The microgrid considered for simulation has 6 buses and 11 lines, in a meshed topology shown in Figure 2.

Figure 2
Benchmark microgrid, adapted from (2323 Alam MN, Chakrabarti S, Liang X. A Benchmark Test System for Networked Microgrids. IEEE Trans Industr Inform. 2020;16(10):6217-30.)

Batteries are not shown in Figure 1, but are installed in buses 2, 3 and 4. The main resources installed in MG1 can be seen in Table 2.

Table 2
Benchmark microgrid data, adapted from (2323 Alam MN, Chakrabarti S, Liang X. A Benchmark Test System for Networked Microgrids. IEEE Trans Industr Inform. 2020;16(10):6217-30.)

The work in (2323 Alam MN, Chakrabarti S, Liang X. A Benchmark Test System for Networked Microgrids. IEEE Trans Industr Inform. 2020;16(10):6217-30.) provides real-world data for PV generation and non-controllable loads for one year (364 days). These samples were separated by the year season since PV generation will be highly affected by seasonal changes, which resulted in 91 real-world scenarios for each season of the year. The summer season was considered for this work.

To expand the size of this set, an oversampling process was conducted by adding and subtracting random small deltas to historical data scenarios, generating new synthetic scenarios that are not real-world data, but would be in the realm of possibilities for the historical data.

Therefore, the final set of uncertainty consisted of 910 scenarios, being 91 real-world scenarios from (2323 Alam MN, Chakrabarti S, Liang X. A Benchmark Test System for Networked Microgrids. IEEE Trans Industr Inform. 2020;16(10):6217-30.) (which represent the summer season of one year), plus 9 more summers of synthetic data created based on the real-world data.

RESULTS

The microgrid was simulated using the DDRO approach and using a traditional adaptive robust optimization (ARO) approach for comparison. For the ARO simulation, a 15% uncertainty budget was considered for both PV generation and non-controllable loads, meaning that the overall amount of PV generation and non-controllable load can vary by up to 15% from the base case, while for DDRO the historic set constructed in the previous section was used to bound the uncertainty set. The detailed C&CG iterative process is shown for DDRO below.

In the first stage of the first iteration (which has no uncertainty and considers the base case), the dispatch of DERs in MG can be seen in Figure 3.

Figure 3
First stage, k = 1

As can be seen, the battery was charged off-peak and discharged in peak tariff periods, and the thermal generator was ramped-up a few periods before the 6PM start of the peak tariff period to be operated at full capacity during this expensive energy period. Controllable loads were allocated fully outside of the peak time. The operational cost for the MG in this scenario was $ 124,600.60, and so LB = 124,600,60.

Following with the algorithm, BESS, CL, and the thermal generator variables were fixed in the second stage, and the worst-case scenario for PV and NCL was searched, resulting in Figure 4.

Figure 4
Second stage, k = 1

In this stage, it is possible to observe a decrease in PV generation, meaning that the solver found a worst feasible scenario of PV for the operating conditions found in the first stage. Operational costs in this stage rose to $ 126,934.81, and so UB = 126,934.81.

Since UB-LB is greater than the tolerance, the uncertainty scenario generated in the second stage is incorporated in the first stage, and a new iteration begins. The dispatch of DERs for the second stage can be seen in Figure 5.

Figure 5
First stage, k = 2

Comparing Figure 5 with Figure 3 shows that the operation of CL and BESS was slightly changed from the first stage of the first iteration. The obtained cost for this stage was $ 126,934.81, so the new LB is 126,934.81. This change means that the first stage could not find a better solution for the new uncertainty scenario. So, the second stage is performed, and if it cannot find a worse uncertainty realization, the process would reach convergence. The dispatch for the second stage can be seen in Figure 6.

Figure 6
Second stage, k = 2

The cost obtained was $ 126,934.81, and so UB = 126,934.81. In this case, convergence was achieved in 2 iterations and the total computational time was 8.85 seconds.

Comparing Figure 6 and Figure 4, the presence of uncertainties caused changes in the operational decisions, mainly regarding BESS and demand response, showing the importance of uncertainty consideration for better planning. Also, the solution is immune to the worst-case scenario and therefore to all other uncertainty scenarios that represent better operational conditions.

Table 3 shows the costs comparison considering the base case (without uncertainties), the ARO scenario and the DDRO approach.

Table 3
Operational costs, different optimization approaches

In ARO, the historical data for the uncertain variables is unknown, so an arbitrary uncertainty budget is established. Using a 15% uncertainty budget for both PV generation and uncontrollable loads, the final operational cost obtained was $ 165,137.18. That represents an increase of 32.5% from the base case with no uncertainties, compared to a mere 1.8% increase when the uncertainty set was bounded using DDRO, showing the advantages of using the historical data to create a more realistic uncertainty set.

In terms of grid transactions, Figure 7 shows the amount of energy exchanged with the upstream grid for the DDRO approach.

Figure 7
Energy exchange with the upstream grid

The load factor constraints contained the energy exchanges with the grid to a moderate value, without peaks from a large allocation of controllable loads, for example. The exchange is lower during the afternoon because of the peak PV generation (less energy is necessary from the grid) and the lowest in the peak tariff period because batteries and the thermal generators are utilized at their full capacity to avoid paying expensive tariffs to the DSO.

CONCLUSIONS

The objective of this work was to develop a comprehensive linear model for the day-ahead optimization of microgrids, using a novel data-driven robust optimization approach (DDRO) that was not previously used for MG systems. A MILP model was proposed and a tri-level min-max-min formulation was created. The formulation was solved using a two-stage decomposition and the column and constraint generation algorithm (C&CG).

The results highlight the importance of considering uncertainties when planning the operational decisions of MG systems, since the uncertainties can modify the ideal utilization of the distributed energy resources through the day. Also, while in the DDRO scenario the costs rose by only 1.8% when compared to the base case without uncertainties, showing that the random historic scenario that was chosen was already close to the worst-case scenario in terms of cost, other more optimistic scenarios could have been chosen, which would cause a lower operational cost for the base case and therefore a higher percentual increase when uncertainties are considered.

Also, by finding and optimizing for the worst-case scenario of uncertainties, the DDRO solution ($ 126,934,54) is immune regarding costs to the uncertainty set that was considered. This means that the DDRO model will present equal or lower overall operational costs for all other uncertainty scenarios in the uncertainty set.

It is also highlighted the importance of demand response in providing flexibility for the MG operation and allowing load factor constraints to be applied without convergence issues.

Finally, the fast-converging time for simulation is highlighted, showing that DDRO is a capable tool for finding historically accurate results without the high computational burden found in other optimization techniques such as stochastic programming.

Acknowledgments

This research was funded by the Companhia Paranaense de Energia - COPEL research and technological development (RTD) program, through the PD-02866-0511/2019 project, regulated by ANEEL. The authors thank the support of CAPES - Brazilian Agency for Support and Evaluation of Graduate Education within the Ministry of Education of Brazil. We also thank the CAPES-PRINT-UFPR Project - Finance Code 001.

REFERENCES

  • 1
    Tenfen D, Finardi EC. A mixed integer linear programming model for the energy management problem of microgrids. Electric Power Systems Research [Internet]. 2015; Available from: https://www.sciencedirect.com/science/article/pii/S0378779614004659
    » https://www.sciencedirect.com/science/article/pii/S0378779614004659
  • 2
    Umeozor EC, Trifkovic M. Operational scheduling of microgrids via parametric programming. Appl Energy [Internet]. 2016; Available from: https://www.sciencedirect.com/science/article/pii/S0306261916310960
    » https://www.sciencedirect.com/science/article/pii/S0306261916310960
  • 3
    Nwulu NI, Xia X. Optimal dispatch for a microgrid incorporating renewables and demand response. Renew Energy [Internet]. 2017; Available from: https://www.sciencedirect.com/science/article/pii/S0960148116307273
    » https://www.sciencedirect.com/science/article/pii/S0960148116307273
  • 4
    Aliasghari P, Mohammadi-Ivatloo B, Alipour M, Optimal scheduling of plug-in electric vehicles and renewable micro-grid in energy and reserve markets considering demand response program. J Clean Prod [Internet]. 2018; Available from: https://www.sciencedirect.com/science/article/pii/S0959652618307157
    » https://www.sciencedirect.com/science/article/pii/S0959652618307157
  • 5
    Guo Y, Zhao C. Islanding-aware robust energy management for microgrids. IEEE Trans Smart Grid. 2018;9(2):1301-9.
  • 6
    Mehdizadeh A, Taghizadegan N, Salehi J. Risk-based energy management of renewable-based microgrid using information gap decision theory in the presence of peak load management. Appl Energy [Internet]. 2018; Available from: https://www.sciencedirect.com/science/article/pii/S0306261917316835
    » https://www.sciencedirect.com/science/article/pii/S0306261917316835
  • 7
    Moretti L, Martelli E, Manzolini G. An efficient robust optimization model for the unit commitment and dispatch of multi-energy systems and microgrids. Appl Energy [Internet]. 2020; Available from: https://www.sciencedirect.com/science/article/pii/S0306261919315466
    » https://www.sciencedirect.com/science/article/pii/S0306261919315466
  • 8
    Zhang J, Wu Y, Guo Y, Wang B, Wang H, Liu H. A hybrid harmony search algorithm with differential evolution for day-ahead scheduling problem of a microgrid with consideration of power flow constraints. Appl Energy [Internet]. 2016; Available from: https://www.sciencedirect.com/science/article/pii/S030626191631337X
    » https://www.sciencedirect.com/science/article/pii/S030626191631337X
  • 9
    Monfared HJ, Ghasemi A, Loni A, Marzband M. A hybrid price-based demand response program for the residential micro-grid. Energy [Internet]. 2019; Available from: https://www.sciencedirect.com/science/article/pii/S0360544219313726
    » https://www.sciencedirect.com/science/article/pii/S0360544219313726
  • 10
    Zia MF, Elbouchikhi E, Benbouzid M. Optimal operational planning of scalable DC microgrid with demand response, islanding, and battery degradation cost considerations. Appl Energy [Internet]. 2019; Available from: https://www.sciencedirect.com/science/article/pii/S0306261919300406
    » https://www.sciencedirect.com/science/article/pii/S0306261919300406
  • 11
    Liu G, Starke M, Zhang X. A MILP-based distribution optimal power flow model for microgrid operation. Power and Energy Society. [Internet]. 2016; Available from: https://ieeexplore.ieee.org/abstract/document/7741704/
    » https://ieeexplore.ieee.org/abstract/document/7741704/
  • 12
    Mortaz E, Valenzuela J. Microgrid energy scheduling using storage from electric vehicles. Electr Pow Syst Res [Internet]. 2017; Available from: https://www.sciencedirect.com/science/article/pii/S0378779616304692
    » https://www.sciencedirect.com/science/article/pii/S0378779616304692
  • 13
    Ebrahimi MR, Amjady N. Adaptive robust optimization framework for day-ahead microgrid scheduling. Int. J. Electr. Power and Energy Syst. [Internet]. 2019;107(February 2018):213-23. Available from: https://doi.org/10.1016/j.ijepes.2018.11.029
    » https://doi.org/10.1016/j.ijepes.2018.11.029
  • 14
    Wang B, Zhang C, Dong Z. Interval Optimization Based Coordination of Demand Response and Battery Energy Storage System Considering SoC Management in A Microgrid. IEEE Trans Sustain Energy [Internet]. 2020; Available from: https://ieeexplore.ieee.org/abstract/document/9043605/
    » https://ieeexplore.ieee.org/abstract/document/9043605/
  • 15
    Velloso A, Street A, Pozo D, Arroyo JM, Cobos NG. Two-stage robust unit commitment for co-optimized electricity markets: An adaptive data-driven approach for scenario-based uncertainty sets. IEEE Trans Sustain Energy. 2020;11(2):958-69.
  • 16
    Wang L, Jiang C, Gong K, Si R, Shao H, Liu W. Data-driven distributionally robust economic dispatch for distribution network with multiple microgrids. IET Generation, Transmission and Distribution. 2020;14(24):5816-22.
  • 17
    Delfino F, Ferro G, Robba M. An Energy Management Platform for the Optimal Control of Active and Reactive Powers in Sustainable Microgrids. IEEE Trans Ind Appl [Internet]. 2019; Available from: https://ieeexplore.ieee.org/abstract/document/8700197/
    » https://ieeexplore.ieee.org/abstract/document/8700197/
  • 18
    Kim TH, Shin H, Kwag K, Kim W. A parallel multi-period optimal scheduling algorithm in microgrids with energy storage systems using decomposed inter-temporal constraints. Energy [Internet]. 2020; Available from: https://www.sciencedirect.com/science/article/pii/S0360544220307763
    » https://www.sciencedirect.com/science/article/pii/S0360544220307763
  • 19
    Jin M, Feng W, Liu P, Marnay C, Spanos C. MOD-DR: Microgrid optimal dispatch with demand response. Appl Energy [Internet]. 2017; Available from: https://www.sciencedirect.com/science/article/pii/S030626191631724X
    » https://www.sciencedirect.com/science/article/pii/S030626191631724X
  • 20
    Xu B, Oudalov A, Ulbig A, Andersson G, Kirschen DS. Modeling of lithium-ion battery degradation for cell life assessment. IEEE Trans Smart Grid. 2018;9(2):1131-40.
  • 21
    Arroyo JM, Conejo AJ. Modeling of start-up and shut-down power trajectories of thermal units. IEEE Trans. Power Syst. 2004;19(3):1562-8.
  • 22
    Yuan H, Li F, Wei Y, Zhu J. Novel Linearized Power Flow and Linearized OPF Models for Active Distribution Networks With Application in Distribution LMP. IEEE Trans Smart Grid. 2018;
  • 23
    Alam MN, Chakrabarti S, Liang X. A Benchmark Test System for Networked Microgrids. IEEE Trans Industr Inform. 2020;16(10):6217-30.
Editor-in-Chief: Alexandre Rasi Aoki
Associate Editor: Alexandre Rasi Aoki

Publication Dates

  • Publication in this collection
    04 Nov 2022
  • Date of issue
    2023

History

  • Received
    04 Apr 2022
  • Accepted
    22 July 2022
Instituto de Tecnologia do Paraná - Tecpar Rua Prof. Algacyr Munhoz Mader, 3775 - CIC, 81350-010 Curitiba PR Brazil, Tel.: +55 41 3316-3052/3054, Fax: +55 41 3346-2872 - Curitiba - PR - Brazil
E-mail: babt@tecpar.br