Keywords

1 Introduction

Distributed Energy Resources (DERs) are widely integrated into power system operational planning paradigms and the DER-based systems are mainly Microgrids (MGs) [1].

As shown in Fig. 20.1, a microgrid can be introduced as a system, which includes DERs such as solar Photo Voltaic (PV) system, Combined Heat and Power (CHP) unit, small Wind Turbine (WT) , Electrical Storage System (ESS) and Interruptible Loads (ILs) ; in a way that it has it has at least one controllable energy source [1].

Fig. 20.1
figure 1

Schematic diagram of a microgrid

The Microgrid Operator (MGO) performs the optimal scheduling of its dispatchable resources by considering the uncertainties of upward electricity market price, intermittent energy resources and ILs [2].

Over recent years, different aspects of optimal scheduling of the microgrid problem have been studied. Ref. [3] presents an optimal stochastic meta-heuristic scheduling algorithm for the networked microgrids considering uncertainties of DERs and Demand Response Programs (DRPs). Reference [4] explores the day-ahead scheduling of CHP systems considering DERs and boilers and considers different scenarios of demand and electricity price.

Reference [5] introduces an optimal day-ahead operational planning algorithm that minimizes pollutant emission and operating cost. The model is solved using a Species-based Quantum Particle Swarm Optimization (SQGA) evolutionary method. Reference [6] proposes a robust optimization algorithm for scheduling of microgrid resources that uses an information gap method to model the wholesale electricity market uncertainties.

Reference [7] presents a bi-level algorithm to optimize interactions between parking lot agent and distribution system operator. The upper-level problem minimizes the cost of DSO; meanwhile, the lower-level problem schedules the parking lot owner resources.

Reference [8] introduces a risk-based optimal scheduling of reconfigurable system that maximizes profit the system operator. The uncertainties of upward network prices, intermittent electricity generation facilities are considered. The optimal combination of system switches is explored using a meta-heuristic optimization method.

Reference [9] introduces a two-stage stochastic algorithm to minimize the reserve cost that is used for compensating the intermittent DER power generation forecast errors.

Reference [10] presents an algorithm for maximizing of MGO profit considering WT power generation and wholesale market uncertainties. The algorithm uses a stochastic optimization method to model uncertainties.

Reference [11] uses a stochastic optimization algorithm to minimize the operation cost. The uncertainties of the DERs and DRPs are modelled by scenarios and interruptible load bids, respectively. Reference [12] introduces a stochastic scheduling algorithm that the uncertainties of intermittent DERs are modelled by the probability density functions. The results show that the DRP can reduce operating costs. These references do not consider the security constraints and thermal loads.

This book chapter is about the OMOP algorithm that considers the intermittent power generation uncertainties and contingencies scenarios.

2 Problem Modelling

The MGO maximizes its profit in the Day-Ahead (DA) market; meanwhile, it minimizes its system’s operational costs. In addition, the DA market price is assumed to depend on unpredictable market conditions, which makes it extremely difficult to investigate the problem by considering the stochastic parameters. Therefore, in this book chapter, the uncertainty of the intermittent energy resource outputs, MG contingencies and the DA market price are modelled with the scenario.

Figure 20.2 shows the MGO interactions with upward network and its DERs.

Fig. 20.2
figure 2

The MGO interactions

The MGO must determine the optimal values of problem decision variables. Thus, the OMOP decision variables can be categorized as:

  1. (1)

    Maintenance scheduling of MG’s resources,

  2. (2)

    Energy generation of MG’s dispatchable energy resources,

  3. (3)

    The volume of energy purchased from the upward network.

The system costs can be presented as:

  1. (1)

    Operation and maintenance costs of system resources,

  2. (2)

    Energy purchased costs,

  3. (3)

    The expected profit of energy sold to upward network in the DA market.

The Energy Not Supplied Cost (ENSC) is considered in OMOP as reliability criteria [13].

2.1 First Level Problem Formulation

The MGO optimizes its monthly maintenance scheduling and it encounters the uncertainties of power exchanges with the upward network, intermittent power generation, and system contingencies. The first level optimization problem considers the maintenance starting periods, forecasted peak load, and system costs.

The first level problem objective function is proposed as:

$$\begin{aligned} \min C_{1} & = \sum\limits_{i \in Nsub} {\sum\limits_{j \in MWsub} {C_{MC\_Sub\,ij} } \times (1 - X_{Sub\,ij} ) + X_{Sub\,ij} \times C_{OP\_Sub\,ij} } \\ & \quad + \sum\limits_{k \in Fr} {\sum\limits_{l \in MWFr } C_{MC\_Feed\,kl} \times (1 - X_{Feed\,kl} ) + X_{Feed\,kl} \times C_{OP\_Feed\,kl} } \\ & \quad + \sum\limits_{m \in DER} {\sum\limits_{n \in MWDER } {C_{MC\_DER\,mn} \times (1 - X_{DER\,mn} ) + X_{DER\,mn} } } \\ &\quad\quad \times C_{OP\_DER\,mn} \end{aligned}$$
(20.1)

The objective function is decomposed into transformers, feeders and DERs maintenance costs. The first level optimization problem is subjected to maintenance constraints and load flow constraint.

The second level problem deals with optimal MGO estimated costs in DA market for the different scenarios.

2.2 Second Level Problem Formulation

At the second level optimization problem, the MGO maximizes its expected profit; meanwhile, it minimizes the system operation costs. The MGO determines the optimal schedule of dispatchable DERs and the energy transacted in the DA market.

$$\begin{aligned} & \min \mathop \sum \limits_{{i^{\prime } = 1}}^{NDASC} \lambda_{i} \left( {\mathop \sum \limits_{j' = 1}^{NH} \rho_{{i^{\prime } j^{\prime } }}^{DA} *E_{{i^{\prime } j^{\prime } }}^{DA} - \mathop \sum \limits_{{j^{\prime } = 1}}^{NH} \rho_{{i^{\prime } j^{\prime } }}^{\prime DA} *E_{{i^{\prime } j^{\prime } }}^{\prime DA} } \right. \\ & \quad + \sum\limits_{{k^{\prime } = 1}}^{NDG} {\varphi_{{i^{\prime } k^{\prime } }}^{DG} } \times C_{{i^{\prime } k^{\prime } }}^{DG} + \sum\limits_{{k^{\prime \prime } = 1}}^{NESS} {\varphi_{{i^{\prime } k^{\prime \prime } }}^{ESS} } \times C_{{i^{\prime } k^{\prime \prime } }}^{ESS} \\ & \quad \left. { + \sum\limits_{{m^{\prime } = 1}}^{NIL} {\varphi_{{i^{\prime } m^{\prime } }}^{IL} } \times C_{{i^{\prime } m^{\prime } }}^{IL} + \sum\limits_{{n^{\prime } = 1}}^{NCHP} {\varphi_{{i^{\prime } n^{\prime } }}^{CHP} } \times C_{{i^{\prime } n^{\prime } }}^{CHP} + \sum\limits_{{l^{\prime } = 1}}^{NCONT} {ENSC_{{i^{\prime } l^{\prime } }} } } \right) \\ \end{aligned}$$
(20.2)

The objective function consists of the following groups: (1) the costs of energy purchased from the upward wholesale market; (2) the profits of energy sold to the upward network; (3) the commitment of DGs; (4) the commitment of ESSs; (5) the commitment of ILs; (6) the commitment of CHPs; (7) ENSCs.

The objective function is restricted to these constraints:

The maximum and minimum power generations of microgrid energy resources, ramp constraints, minimum up-time and down-time, AC power flow, state of charge and the limits of ESSs that can be written as:

$$P_{Min}^{DG} .\varphi_{{}}^{DG} \le P_{{}}^{DG} \le P_{Max}^{DG} .\varphi_{{}}^{DG}$$
(20.3)
$$Q_{Min}^{DG} .\varphi_{{}}^{DG} \le Q_{{}}^{DG} \le Q_{Max}^{DG} .\varphi_{{}}^{DG}$$
(20.4)
$$P_{Min}^{CHP} .\varphi_{{}}^{CHP} \le P_{{}}^{CHP} \le P_{Max}^{CHP} .\varphi_{{}}^{CHP}$$
(20.5)
$$Q_{Min}^{CHP} .\varphi_{{}}^{CHP} \le Q_{{}}^{CHP} \le Q_{Max}^{CHP} .\varphi_{{}}^{CHP}$$
(20.6)
$$\sqrt[{}]{{\left( {Q_{{}}^{DG} } \right)^{2} + \left( {P_{{}}^{DG} } \right)^{2} }} \le S_{Max}^{DG}$$
(20.7)
$$\left( {P_{{\left( {t + 1} \right)}}^{DG} } \right) - \left( {P_{\left( t \right)}^{DG} } \right) \ge RU_{{}}^{DG}$$
(20.8)
$$\left( {P_{\left( t \right)}^{DG} } \right) - \left( {P_{{\left( {t + 1} \right)}}^{DG} } \right) \ge RD_{{}}^{DG}$$
(20.9)
$$\sqrt[{}]{{\left( {Q_{{}}^{CHP} } \right)^{2} + \left( {P_{{}}^{CHP} } \right)^{2} }} \le S_{Max}^{CHP}$$
(20.10)
$$\left( {P_{{\left( {t + 1} \right)}}^{CHP} } \right) - \left( {P_{\left( t \right)}^{CHP} } \right) \ge RU_{{}}^{CHP}$$
(20.11)
$$\left( {P_{\left( t \right)}^{CHP} } \right) - \left( {P_{{\left( {t + 1} \right)}}^{CHP} } \right) \ge RD_{{}}^{CHP}$$
(20.12)
$$P_{Min}^{IL} \times \varphi_{{}}^{IL} \le P_{{}}^{IL} \le P_{Max}^{IL} \times \varphi_{{}}^{IL}$$
(20.13)
$$Q_{{}}^{IL} = \left( {P_{{}}^{IL} } \right).\sqrt[{}]{{\frac{1}{{\cos \varphi_{{}}^{IL} }} - 1}}$$
(20.14)
$$\mathop \sum \limits_{k = 1}^{t} P_{k}^{ESS} \le P_{\hbox{max} }^{ESS}$$
(20.15)

3 Solution Algorithm

For the first level optimization problem, the Genetic Algorithm (GA) ALGORITHM is used. Figure 20.3 depicts the flowchart of the introduced algorithm. The upper-level problem implements the GA for finding the best solutions of the estimated scenarios; meanwhile, the second level problem uses a mixed-integer nonlinear optimization procedure [13, 14].

Fig. 20.3
figure 3

The flowchart of the two-level optimization introduced algorithm

The MATLAB software is used to generate random numbers. Then, by connecting the MATLAB to GAMS, the generated scenarios are inserted into GAMS, and scenario reduction is implemented by a forward method. Next, for each of the scenarios, the introduced decomposition method is applied. The scenario generation and reduction procedure are shown in Fig. 20.4.

Fig. 20.4
figure 4

The scenario generation and reduction procedure

4 Numerical Results

The introduced model is implemented on the 9-bus and 33-bus test systems. Figures 20.5 and 20.6 depict the 9-bus and 33-bus system, respectively. The 9-bus and 33-bus test system data are presented at [15,16,17,18], respectively. The wind turbine and solar panel data are available at [18].

Fig. 20.5
figure 5

The 9-bus microgrid

Fig. 20.6
figure 6

The 33-bus microgrid

4.1 The 9-Bus Test System

Figures 20.7 and 20.8 depict the base load and upward network electricity price of the 9-bus microgrid, respectively.

Fig. 20.7
figure 7

The base load of the 9-bus system

Fig. 20.8
figure 8

The base electricity price of upward network of the 9-bus system

Table 20.1 presents the optimization input data for the 9-bus system.

Table 20.1 The optimization input data for the 9-bus system

Figures 20.9 and 20.10 show the electricity generation of solar photovoltaic panels and wind turbines, respectively.

Fig. 20.9
figure 9

The electricity generation of solar photovoltaic of 9-bus system

Fig. 20.10
figure 10

The electricity generation of wind turbines of 9-bus system

Figure 20.11 shows the stacked column of the estimated electricity generation of CHPs. As shown in Fig. 20.11, the CHPs are at full load when they are committed. The first CHP is supplying the base electrical load of the MG and the third CHP is supplying the peak electrical load.

Fig. 20.11
figure 11

The stacked column of the estimated electricity generation of CHPs of 9-bus system

Figure 20.12 depicts the heating generation of CHPs and boilers. As shown in Fig. 20.12, the CHPs are at full load when they are committed and the boiler is tracking the heating load.

Fig. 20.12
figure 12

The stacked column of the estimated heating generation of CHPs and boilers of 9-bus system

Figure 20.13 displays the optimal maintenance scheduling of system for the first half of the year. The optimal maintenance scheduling for the second half of the year is the same as the first one. The OMOP ensures the maintenance workload of the system is evenly distributed across the year. Table 20.2 depicts the optimal operational and maintenance costs of the system.

Fig. 20.13
figure 13

The optimal maintenance scheduling of 9-bus system for the first half of the year

Table 20.2 The optimal aggregated operational and maintenance costs of the 9-bus system

4.2 The 33-Bus Test System

Figure 20.14 depicts the base load of the 33-bus microgrid.

Fig. 20.14
figure 14

The base load of the 33-bus test system

Figure 20.15 shows the electricity generation of solar photovoltaic panels and wind turbines.

Fig. 20.15
figure 15

The electricity generation of solar photovoltaic panels and wind turbines of 33-bus system

Figure 20.16 presents the stacked column of the estimated electricity generation of CHPs and DGs. As shown in Fig. 20.16, the CHPs and DGs are at full load when they are committed. The CHP250A and CHP330 are fully committed to supplying the base electrical load of the system.

Fig. 20.16
figure 16

Stacked column of estimated electricity generation of CHPs and DGs of 33-bus system

Figure 20.17 depicts the stacked column of the estimated heating generation of CHPs and boilers of the system. The boiler is tracking the heating load.

Fig. 20.17
figure 17

Stacked column of estimated heating generation of CHPs and boilers of 33-bus system

Figure 20.18 displays the optimal maintenance scheduling for the first half of the year. The optimal maintenance scheduling for the second half of the year is the same as the first one. The optimization algorithm distributes the maintenance workload across the year.

Fig. 20.18
figure 18

The optimal maintenance scheduling of 33-bus system for the first half of the year

Table 20.3 depicts the optimal operational and maintenance costs of the 33-bus system for the operational planning horizon.

Table 20.3 The optimal aggregated operational and maintenance costs of the 33-bus system

5 Conclusions

A microgrid optimal operational planning framework was reviewed in the present chapter. The introduced method used a two-level optimization model to investigate the intermittent power generations and ILs impacts on the OMOP problem. The proposed framework for OMOP considered the system uncertainties and the problem explores the optimal maintenance scheduling and operation. The OMOP procedure had a great non-convex discrete state space and the proposed solution algorithm had the ability to model the nonlinearity and non-convexity of the system’s state space and the dynamic coupling constraints of the electric and heating systems.

The model of OMOP was a MINLP problem, and the GA algorithm was used for the first level problem. The second level problem utilized the DICOPT solver. The algorithm was assessed for the 9-bus and the 33-bus test systems with quite acceptable results.

In conclusion, the adoption of the proposed OMOP includes maintenance scheduling allows increasing significantly the microgrid benefits and reliability.