1 Introduction

Compared with the traditional power grid, microgrids have the potential advantages of high reliability and environmental friendliness, which can effectively compensate the shortcomings of centralized power generation and high voltage power transmission. Microgrids will be the main grid access for future loads and distributed generation, as an important part of smart distribution grids [1,2,3,4,5,6]. Microgrids can be divided into AC microgrids, DC microgrids and hybrid AC/DC microgrids [7]. Hybrid AC/DC microgrids are one of the most promising microgrid structures combining the advantages of AC and DC microgrids, which is convenient for integrating various forms of distributed generation and load [8, 9].

As the use of microgrids has increased rapidly, those with intermittent energy sources as the main energy supply have gradually become the most common kind. If the utility grid is used as an ideal power source to maintain a microgrid’s internal real-time power balance, a high proportion of intermittent generation will cause too much disturbance to the utility grid, affecting its safety and stable operation. Necessarily, microgrids should develop an accurate day-ahead generation schedule and report it to the utility grid operator, and also minimize unbalanced power internally caused by intermittent energy output fluctuations. In hybrid AC/DC microgrids, due to their complicated internal structure, it is necessary to coordinate a mixture of AC and DC electrical equipment, which brings challenges to achieving optimized operation.

At present, research on hybrid AC/DC microgrids is mainly focused on their control strategy, whereas there is relatively little research on their optimal operation [10]. In [11], a multi-time-scale optimization model, which adjusts the power distribution by considering the impact of real-time electricity prices and unbalanced power, is proposed to maximize the revenue of hybrid AC/DC microgrids. However, the cost model does not take into account the energy storage charge and discharge costs due to round-trip losses. In [5] a two-layer optimization control model is proposed, which includes the system layer and the equipment layer. The system layer model optimizes the unit combination to realize the power balance, and the equipment layer is designed to stabilize the AC and DC voltages. However, neither paper discusses the negative effects of uncertainty from intermittent energy on the operation of hybrid AC/DC microgrids. The output power of widely used intermittent energy sources, such as wind power and photovoltaic power, often deviate from the predicted value.

This paper applies the double uncertainty optimization theory to the operation of hybrid AC/DC microgrids, to provide decision support to microgrid operators, and to enhance the ability of microgrids to cope with the uncertainty of power generation. It is assumed that microgrids are operated independently of the utility grid, though connected to it, based on a dispatch cycle and scheduling method similar to those used for the utility grid. Microgrid dispatch can be automated or, for large microgrids, supervised by a human operator.

Hybrid AC/DC microgrids are assumed to include wind turbines (WT), solar photovoltaic (PV) generators, energy storage (ES) and other distributed energy (DE) resources. A fuzzy stochastic optimization model for the operating cost and a real-time unbalanced power adjustment cost model are established, accounting for the characteristics of microgrid structure and the fluctuations of output power caused by intermittent generation. In response to the characteristics of the model, the alternating direction multiplier method (ADMM) is used to solve this problem. Finally, three models including deterministic optimal scheduling, optimal scheduling considering the randomness of intermittent generation, and optimal scheduling that considers double uncertainty are compared to verify the validity of the double-uncertainty optimization model and the algorithm.

2 Double-uncertainty optimal model

2.1 Overview of fuzzy stochastic optimization theory

In the theory of uncertainty, fuzziness and randomness are the two major uncertainties in complex decision-making, as shown in Fig. 1. Fuzziness reflects the lack of sufficient information about the system, described by the fuzzy variable, while randomness is derived from the natural uncertainty in the system, characterized by stochastic variable. Since fuzziness and randomness exist simultaneously in complex decision-making, it is inadequate to consider only one or the other. Therefore, Kwakernaak [12] proposed fuzzy stochastic optimization theory to deal with such complex decision problems.

Fig. 1
figure 1

Uncertainty classification and its modeling mechanism

2.1.1 Fuzzy stochastic variable

The essence of a fuzzy stochastic variable is a random variable with a fuzzy value, and it can be formally defined as follows. Consider a probability space (ΩA, Pr) with domain Ω and probability Pr() that an element of Ω is within the set A. Assuming that ξ is a function from the probability space (ΩA, Pr) to the fuzzy set, if for any Borel set B on real number field R, and any ω in Ω, Pos{ξ(ω) ∊ B} is a measurable function of ω, then ξ is a fuzzy stochastic variable.

2.1.2 Fuzzy stochastic optimization model

According to Fig. 1, fuzzy stochastic optimization models include the expected value model, the opportunistic constraint planning model and the related opportunistic constraint planning model [13]. The expected value model is widely used in power system optimization under uncertainty due to its intuitive appeal and simple solution, making it suitable for engineering optimization in a double-uncertainty environment [14, 15]. It is formulated as:

$$\left\{ {\begin{array}{l} {\hbox{min} \quad E\left[ {f\left( {\varvec{x},\varvec{\xi}} \right)} \right]} \hfill \\ {\text{s.t.}} \hfill \\ {E\left[ {g_{j} \left( {\varvec{x},\varvec{\xi} } \right)} \right] \le 0 \quad\quad j = 1,2, \ldots ,p} \hfill \\ \end{array} } \right.$$
(1)
$$E\left[ {f\left( {\varvec{x},\varvec{\xi}} \right)} \right] = \int {f\left( {\varvec{x},\varvec{\xi}} \right)\phi \left(\varvec{\xi}\right)} {\text{d}}\varvec{\xi}$$
(2)

where \(\varvec{x}\) is the decision vector; ξ denotes fuzzy stochastic vector; E(·) is the expected value operator; g j denotes the j-th constraint.

Equation (1) gives the typical form of fuzzy stochastic planning expected value model. For the continuous fuzzy stochastic vector, as shown in (2), the expected value operator is the integral of the uncertain variable.

Compared with the utility grid, microgrids have the characteristics of relatively small scale and high levels of intermittent energy sources. If the microgrid operators ignore the uncertainty caused by the high proportion of intermittent energy, the scheduling of controllable microgrid resources will deviate greatly an optimal scheme. Stochastic optimization can adjust the prediction of intermittent energy output according to the probability distribution of uncertain variables. However, it is difficult to estimate the prediction deviation for stochastic optimization. Fuzzy stochastic variables can address this difficulty and can compensate for the shortcomings of stochastic variables in modeling typical probability distributions.

2.2 Fuzzy stochastic model of intermittent energy

In microgrid optimal scheduling, understanding the uncertainty of WT and PV output can be effective in reducing output prediction errors [16]. In the existing methods for optimal operation under uncertainty, the WT and PV outputs are treated as stochastic variables that follow specific probability distributions. It is still difficult to avoid obvious errors between the actual and predicted output, which leads to sub-optimal day-ahead scheduling. Since the prediction error does not follow a specific probability distribution, fuzzy set theory can be applied to analyze the prediction bias [17]. In this paper, PV and WT outputs in AC/DC hybrid microgrids are represented by fuzzy stochastic models. The predicted outputs are stochastic variables based on wind speed and light intensity predictions, and the error between the stochastic variables and the actual output is treated as a fuzzy variable. As shown in (3), the sum of the stochastic variable and the fuzzy variable is the fuzzy stochastic variable [13], where \(P_{{\ell .{\text{random}}}}\) and \(P_{{\ell .{\text{fuzzy}}}}\) represent the stochastic and fuzzy portions of the output power, respectively.

$$P_{\ell } = P_{{\ell . {\text{random}}}} + P_{{\ell . {\text{fuzzy}}}}\quad \ell \in \left\{ {\text{PV}},\,{\text{WT}} \right\}$$
(3)

Assuming that light intensity is a stochastic variable that obeys the β distribution, then (4) is the probability density function of PV output based on β distribution. Assuming that wind speed is a stochastic variable that obeys two-parameter Weibull distribution [18,19,20], then (5) is the probability density function of the wind speed based on two-parameter Weibull electrical. In these equations, α and β denote the shape parameters of β distribution, \(P_{\text{PV}}\)(\(P_{\text{PV,max}}\)) is the (maximum) output of the PV generator, v represents the wind speed, k and c are the shape parameter and scale parameter for two-parameter Weibull distribution, respectively, \(c = \bar{v}/\left( {1 + 1/k} \right)\), and \(\bar{v}\) is the average wind speed for the time period being modeled.

$$f\left( {P_{\text{PV}} } \right) = \frac{{\varGamma \left( {\alpha + \beta } \right)}}{{P_{\text{PV,max}} \varGamma \left( \alpha \right)\varGamma \left( \beta \right)}}\left( {\frac{{P_{\text{PV}} }}{{P_{\text{PV,max}} }}} \right)^{\alpha - 1} \left( {1 - \frac{{P_{\text{PV}} }}{{P_{\text{PV,max}} }}} \right)^{\beta - 1}$$
(4)
$$f\left( v \right) = \frac{k}{c}\left( {\frac{v}{c}} \right)^{k - 1} {\text{e}}^{{ - \left( {\frac{v}{c}} \right)^{k} }}$$
(5)

The errors between the predicted and actual WT and PV outputs are treated as a fuzzy variables. The relative error calculated according to (6) is used in the fuzzy variable membership function [21] shown in (7):

$$\Delta \kappa = \frac{{\kappa_{\text{actual}} - \kappa_{\text{forecast}} }}{{\kappa_{\text{forecast}} }}\quad \kappa \in \left\{ {G,v} \right\}$$
(6)
$$\mu_{\kappa } = \left\{ \begin{aligned} \left[ {1 + \eta_{\kappa } \left( {\frac{\Delta \kappa }{{\kappa^ + }}} \right)^{2} } \right]^{ - 1} \quad \Delta \kappa \ge 0 \hfill \\ \left[ {1 + \eta_{\kappa } \left( {\frac{\Delta \kappa }{{\kappa^ - }}} \right)^{2} } \right]^{ - 1}\quad \Delta \kappa < 0 \hfill \\ \end{aligned} \right.$$
(7)

where G indicates the light intensity; κ + is the average error percentage when the wind speed or light intensity is greater than the predicted value; κ - is the average error percentage when it is less; η κ is the weight factor.

Figure 2 is the membership function curve of the wind speed and light intensity relative prediction error.

Fig. 2
figure 2

Membership functions of wind speed and solar radiation forecast error

2.3 Distributed generation operating cost model

2.3.1 Energy storage operating cost model

Energy storage plays an important role in stabilizing the power fluctuations and reducing peak loads in a microgrid. With current technologies, battery energy storage capital costs are high, and energy storage costs account for a large proportion of capital costs of microgrids with large energy storage capacity [22]. Scheduling energy storage so that operating costs are reduced while ensuring the full benefit of energy storage is achieved, can effectively reduce the overall operating costs of microgrids.

The operating cost of energy storage include two main components: battery depreciation cost and energy loss during a charging and discharging cycle. The cost of energy storage depreciation has been estimated in [23]. The cost of energy lost during charging and discharging is estimated using the electricity price that is applicable in the microgrid, which will be a combination of the utility grid power price and the local price based on generation resources in the microgrid; the utility price is used in this paper. Using these, the integrated operating cost of energy storage \(C_{\text{ES}} \left( P \right)\) charging or discharging at a power P is given by (8).

$$C_{\text{ES}} \left( P \right) = P\Delta T\left[ {\begin{array}{l} {I\frac{{ - vP\Delta T + 2Q\left( {vSOC_{\text{init}} + l} \right)}}{{2QA_{\text{total}} }}} \\ \quad { + \left( {1 - \eta } \right)^{2} c_{0}^{t} } \\ \end{array} } \right]$$
(8)

where c t0 is the TOU (time of use) price of utility grid power during the t-th scheduled period; ΔT is the scheduling time interval, taken as 15 min in this paper; η is the energy storage charge and discharge efficiency; Q is the storage capacity; l and v are the two empirical parameters to linearize effective electricity consumption [24], which are given values of 2.05 and − 1.5 respectively in this paper; A total is the total discharge capacity that the battery can sustain during its effective life, which is assumed to be 390Q in this paper; I is the initial investment in energy storage; and \(SOC_{\text{init}}\) is the initial state of charge.

2.3.2 Controllable distributed generation

In order to ensure stable operation in a variety of situations, controllable distributed generation is essential in microgrids alongside intermittent energy sources. Diesel generation is assumed in this paper and the fuel cost model is shown in (9), where \(C_{\text{Fuel}}^{{}}\) is the cost of diesel fuel and \(P_{\text{DE}}^{t}\) is the output of the diesel generator during the t-th period. a 2, a 1 and a 0 are polynomial coefficients of the consumption characteristic function of DE respectively, whose value are shown in Table A1 of Appendix A.

$$C_{\text{Fuel}}^{{}} = \Delta T\sum\limits_{t = 1}^{T} {\left( {a_{2} P_{\text{DE}}^{t2} + a_{1} P_{\text{DE}}^{t} + a_{0} } \right)}$$
(9)

2.4 Fuzzy stochastic expectation optimization model for hybrid AC/DC microgrids

2.4.1 Objective function and constraints

The goal of an independent microgrid operator is to maximize operating profit while ensuring reliable microgrid operation. Reducing operating costs is the most effective way to increase revenue when load and electricity price are relatively stable. The operating cost of grid-connected hybrid AC/DC microgrids includes the purchase cost of utility grid power, diesel (and other) fuel costs, transmission loss costs, energy storage costs and equipment maintenance costs.

A hybrid AC/DC microgrid consists of AC and DC zones, which are connected by one or more power flow controllers to achieve power balance. Comprehensive costs \(C_{{\text{c}}}\) are divided into the costs of the AC area \(C_{{\text{c}},\,{\text{AC}}}\) and the costs of the DC area \(C_{{\text{c,DC}}}\). The optimization model proposed in this paper is based on a typical hybrid AC/DC microgrid structure as shown in Fig. 3, where the AC side and the DC side both have loads and generators (including battery energy storage), and the utility grid connection is to the AC side. The cost components are summarized in (10).

Fig. 3
figure 3

Typical structure of hybrid AC/DC microgrid

$$\begin{aligned} \quad \left\{ {\begin{array}{l}C_{{\text{c}}} = C_{{\text{c,AC}}}+C_{{\text{c,DC}}} ^{{}} \hfill \\{C_{{\text{c,AC}}} = C_{\text{Grid}}^{{}} + C_{\text{Fuel}}^{{}} + C_{\text{ACloss}}^{{}} + C_{\text{ACom}}^{{}} } \hfill \\ {C_{{\text{c,DC}}} = C_{\text{ES}}^{{}} + C_{\text{DCloss}}^{{}} + C_{\text{DCom}}^{{}} } \hfill \\ \end{array} } \right. \\ \end{aligned}$$
(10)

where \(C_{\text{ES}}^{{}}\) is the operating cost of energy storage calculated by (8); \(C_{\text{Fuel}}^{{}}\) is the cost of diesel fuel calculated by (9); \(C_{\text{Grid}}^{{}}\) is the purchase cost for utility grid power, defined by (11).

$$C_{\text{Grid}}^{{}} = \Delta T\sum\limits_{t = 1}^{T} {\left( {P_{\text{G}}^{t} c_{0}^{t} } \right)}$$
(11)

where c t0 is the TOU price of utility grid power during the t-th scheduled period as used in (8); \(P_{\text{G}}^{t}\) is the power imported from the utility grid.

\(C_{\text{loss}}^{{}}\) is the cost of power transmission and conversion losses. As microgrids require only short transmission distances, the losses caused by line impedance are very small compared to total losses [25]. Therefore, only the losses caused by converters, transformers and power flow controllers are taken into account in this model. The transmission and conversion costs of the AC area can be expressed by (12).

$$\begin{aligned} C_{\text{ACloss}}^{{}} & = {\text{diag}}\left[ {\left| {\varvec{P}_{\text{DEV1,1}}^{{}} , \ldots ,\varvec{P}_{{{\text{DEV1,}}N_{1} }}^{{}} ,\varvec{P}_{{{\text{DEV1,}}N_{1} + 1}}^{{}} , \ldots \varvec{P}_{{{\text{DEV1,}}N_{1} + M_{1} }}^{{}} } \right|} \right] \\ & \quad \times {\text{diag}}\left[ {\left( {1 - \eta_{1,1} } \right),\left( {1 - \eta_{1,2} } \right), \ldots ,\left( {1 - \eta_{{1,N_{1} }} } \right),\underbrace {0, \ldots ,0}_{{M_{1} }}} \right] \\ & \quad \times {\text{diag}}\left[ {\underbrace {{\varvec{c}_{0} , \ldots ,\varvec{c}_{0} }}_{{N_{1} + M_{1} - H_{1} }},\underbrace {{{\mathbf{0}}, \ldots ,{\mathbf{0}}}}_{{H_{1} }}} \right] \times \Delta T \\ \end{aligned}$$
(12)

where subscript 1 indicates the AC area; \(\varvec{P}_{{{\text{DEV1,}}i}}^{{}}\) represents the output power of the i-th power plant in the AC area during the modelling period; \(\varvec{c}_{0}\) is the TOU price vector for utility grid power during the modelling period; \(\varvec{P}_{{{\text{DEV1,}}i}}^{{}}\) and \(\varvec{c}_{0}\) are T-dimensional vectors. In the AC area there are N 1 devices connected to the AC bus through transformers with efficiency η 1,i ; M 1 devices are connected directly to the AC bus; there are H 1 controllable devices and N 1 + M 1 − H 1 uncontrollable devices in the AC area.

The cost of power transmission and conversion losses in the DC area can be expressed in a similar form. Losses in the power flow controllers can be included in either the AC or the DC area losses. If they are assigned to the DC area, the cost of DC area power transmission and conversion losses can be calculated using (13).

$$C_{\text{DCloss}}^{{}} = \left\{ \begin{array}{l} {\text{diag}}\left[ {\left| {\varvec{P}_{\text{DEV2,1}}^{{}} , \ldots ,\varvec{P}_{{{\text{DEV2,}}N_{2} }}^{{}} , \ldots \varvec{P}_{{{\text{DEV2,}}N_{2} + M_{2} }}^{{}} } \right|} \right] \times \hfill \\ {\text{diag}}\left[ {\left( {1 - \eta_{ 2,1} } \right),\left( {1 - \eta_{ 2,2} } \right), \ldots ,\left( {1 - \eta_{{ 2 ,N_{2} }} } \right),\underbrace {0, \ldots ,0}_{{M_{2} }}} \right] \times \, \hfill \\ {\text{diag}}\left[ {\underbrace {{\varvec{c}_{0} , \ldots ,\varvec{c}_{0} }}_{{N_{2} + M_{2} - H_{2} }},\underbrace {{{\mathbf{0}}, \ldots ,{\mathbf{0}}}}_{{H_{2} }}} \right] + \sum\limits_{i = 1}^{{N_{2} + M_{2} }} {\left( {\left| {\varvec{P}_{{{\text{DEV2,}}i}}^{{}} } \right|\left( {1 - \eta_{0} } \right) \times \varvec{c}_{0}^{\text{T}} } \right)} \hfill \\ \end{array} \right\}\Delta T$$
(13)

where subscript 2 indicates the DC area; \(\varvec{c}_{0}^{\text{T}}\) is the transpose of the TOU price vector; η 0 is the transmission efficiency of the power flow controller(s); M 2 devices are connected directly to the DC bus; there are H 2 controllable devices and N 2 + M 2 − H 2 uncontrollable devices in the DC area.

\(C_{\text{om}}^{{}}\) is the cost of equipment operation and maintenance, calculated by (14), where K i is the operation and maintenance cost of the i-th item of equipment.

$$C_{\text{om}} = \Delta T\sum\limits_{t = 1}^{T} {\sum\limits_{i = 1}^{N + M} {\left( {K_{i} \varvec{P}_{{{\text{DEV,}}i}}^{{}} } \right)} }$$
(14)

where N = N 1 + N 2; there are N 2 devices connected to the DC bus through DC/DC converters; M = M 1 + M 2.

A variety of equality and inequality constraints should be applied. For hybrid AC/DC microgrids it is necessary to satisfy the internal power balance constraint (15) and the point of common coupling transmission capacity constraint (16). For energy storage, it is necessary to satisfy the charge and discharge power capacity constraint (17), the energy capacity constraint (18), and the conservation of energy constraint (19). For diesel generators, it is necessary to satisfy the minimum start or stop time constraint (20), the power constraint (21), and the ramping constraint (22).

$$P_{\text{DE}}^{t} + P_{\text{G}}^{t} + P_{\text{WT}}^{t} + P_{\text{PV}}^{t} = P_{\text{ACL}}^{t} + P_{\text{ES}}^{t} + P_{\text{DCL}}^{t}$$
(15)
$$| {P_{\text{G}}^{t} } | \le P_{{{\text{G,max}} }}$$
(16)
$$| {P_{\text{ES}}^{t} } | \le P_{\text{ES,max}}^{t}$$
(17)
$$SOC_{\hbox{min} }^{{}} \le SOC_{{}}^{t} \le SOC_{\hbox{max} }^{{}}$$
(18)
$$SOC_{{}}^{t + 1} = SOC_{{}}^{t} + \left( {\mu_{\text{ch}} \eta_{\text{ch}} + \mu_{\text{dis}} /\eta_{\text{dis}} } \right)P_{\text{ES}}^{t} \Delta T/Q$$
(19)
$$\begin{aligned} \quad \left\{ {\begin{array}{l} \tau_{\text{DE}}^{\text{off}} \ge \tau_{\text{DE}}^{\text{off,min}} \\ \tau_{\text{DE}}^{\text{on}} \ge \tau_{\text{DE}}^{\text{on,min}} \\ \end{array} } \right. \\ \end{aligned}$$
(20)
$$S(t)P_{{{\text{DE,min}}}} \le P_{\text{DE}}^{t} \le S(t)P_{{{\text{DE,max}}}}$$
(21)
$$\Delta TP_{{{\text{DE,max}} }}^{\text{L}} \le P_{\text{DE}}^{{t + 1}} - P_{\text{DE}}^{t} \le \Delta TP_{{{\text{DE,max}} }}^{\text{U}}$$
(22)

where \(P_{\text{ACL}}^{t}\) and \(P_{\text{DCL}}^{t}\) represent AC and DC area load during the t-th period, respectively; \(P_{{{\text{G,max}} }}\) is the point of common coupling transmission capacity; SOC t is the state of charge of energy storage; SOC min and SOC max are the lower and upper limits of the state of charge; \(\mu_{\text{ch}}\) is the energy storage charging state (1 means charging and 0 means discharging); \(\mu_{\text{dis}}\) is the discharging state (1 means discharging and 0 means charging), with \(\mu_{\text{ch}} + \mu_{\text{dis}} = 1\); \(\tau_{\text{DE}}^{\text{off}}\) and \(\tau_{\text{DE}}^{\text{on}}\) are the off and on time intervals; \(P_{{{\text{DE,min}} }}\) and \(P_{{{\text{DE,max}} }}\) are the lower and upper limits of diesel generator output power; S(t) and \(\Delta P_{{{\text{DE,max}} }}\) are the operating state and maximum ramping rate of the diesel generator, respectively.

2.4.2 Fuzzy stochastic expectation optimization model of hybrid AC/DC microgrid

The goal is to minimize the expected value of total operating costs \(\hbox{min}\quad E\left( {C_{{\text{c,AC}}} + C_{{\text{c,DC}}}} \right)\). This is a fuzzy stochastic expectation optimization model because it includes constraints applied to fuzzy stochastic variables. Constraints on other variables can be expressed directly in deterministic form. Therefore, the optimization model proposed in this paper is given by (23).

$$\begin{aligned} & \hbox{min}\quad E\left( {C_{{\text{c,AC}}} + C_{{\text{c,DC}}}} \right) \\ & {\text{s}} . {\text{t}} .\\ & \quad \left\{ {\begin{array}{l} {E\left( {P_{\text{DE}}^{t} + P_{\text{G}}^{t} + P_{\text{WT}}^{t} + P_{\text{PV}}^{t} = P_{\text{ACL}}^{t} + P_{\text{ES}}^{t} + P_{\text{DCL}}^{t} } \right)} \hfill \\ {\left| {P_{\text{G}}^{t} } \right| \le P_{{{\text{G,max}} }}^{{}} } \hfill \\ {\left| {P_{\text{ES}}^{t} } \right| \le P_{\text{ES,max}}^{t} } \hfill \\ {SOC_{\hbox{min} }^{{}} \le SOC_{{}}^{t} \le SOC_{\hbox{max} }^{{}} } \hfill \\ {SOC_{{}}^{t + 1} = SOC_{{}}^{t} } { + \left( {\mu_{\text{ch}} \eta_{\text{ch}} + \mu_{\text{dis}} /\eta_{\text{dis}} } \right)P_{\text{ES}}^{t} \Delta T/Q} \hfill \\ {P_{{{\text{DE,min}} }}^{{}} \le P_{\text{DE}}^{t} \le P_{{{\text{DE,max}} }}^{{}} } \hfill \\ {\Delta TP_{{{\text{DE,max}} }}^{\text{L}} \le P_{\text{DE}}^{{t + 1}} - P_{\text{DE}}^{t} \le \Delta TP_{{{\text{DE,max}} }}^{\text{U}} } \hfill \\ {\tau_{\text{DE}}^{\text{off}} \ge \tau_{\text{DE}}^{\text{off,min}} } \hfill \\ {\tau_{\text{DE}}^{\text{on}} \ge \tau_{\text{DE}}^{\text{on,min}} } \hfill \\ \end{array} } \right. \\ \end{aligned}$$
(23)

2.4.3 Unbalanced power real-time adjustment model

By establishing a real-time cost model for unbalanced power, an optimal adjustment scheme for eliminating unbalanced power can be derived. As shown in (24), the real-time adjustment model includes two parts as for the operating costs: AC area adjustment costs and DC area adjustment costs. Because the cost models for fuel, power transmission and conversion losses, and energy storage losses are non-linear, the cost model for unbalanced power would take too much time to calculate directly. Therefore, the nonlinear cost model is linearized at the day-ahead schedule operation points, as shown in (25), to reduce the calculation time. In this equation, \(P_{\text{It}}^{t}\) is the dispatched output of device It from the day-ahead fuzzy stochastic optimization model, and \(\Delta P_{\text{It}}^{t}\) is the adjustment required to achieve power balance. In order to penalize unbalanced power, the real-time electricity price of utility grid power purchased to correct unbalanced power is higher than the price applying to day-ahead scheduling. In this paper the real-time electricity price is assumed to be 1.5 times the day-ahead electricity. This approximates a future pricing regime that could be established to incentivize microgrids to balance as far as possible using their internal resources [26, 27].

$$\begin{aligned} \quad \left\{ {\begin{array}{l}\Delta C_{{ \text{c}}} = \Delta C_{{\text{c,AC}}}+\Delta C_{{\text{c,DC}}} ^{{}} \hfill \\{\Delta C_{{\text{c,AC}}} = \Delta C_{\text{Grid}}^{{}} + \Delta C_{\text{Fuel}}^{{}} + \Delta C_{\text{ACloss}}^{{}} + \Delta C_{\text{ACom}}^{{}} } \hfill \\ {\Delta C_{{\text{c,DC}}} = \Delta C_{\text{ES}}^{{}} + \Delta C_{\text{DCloss}}^{{}} + \Delta C_{\text{DCom}}^{{}} } \hfill \\ \end{array} } \right. \\ \end{aligned}$$
(24)
$$\begin{aligned} \quad \left\{ {\begin{array}{l} \Delta C_{\text{I}} = \sum\limits_{t = 1}^{T} {\left[ {\left( {\frac{{{\text{d}}C_{{{\rm I}{\text{t}}}} }}{{{\text{d}}P_{\text{It}} }}\left| {P_{\text{It}}^{t} } \right.} \right)\Delta P_{\text{It}}^{t} } \right] \, } \\ {\text{ It}} = \left\{ {\text{Fuel, ES, ACloss, DCloss}} \right\} \\ \end{array} } \right. \\ \end{aligned}$$
(25)

There are additional equality and inequality constraints for power balancing within a dispatch interval: the power balance constraint (26) and the equipment capacity constraint (27) for the microgrid; and the state of charge constraint (28) and the charging and discharging power balance constraint (29) for energy storage. For adjusting the diesel generator the unit start and stop constraints do not apply, because it only changes its power within a dispatch interval when it is already on.

$$\begin{aligned} \quad \left\{ {\begin{array}{l} P_{\text{DE}}^{t} + P_{\text{G}}^{t} + P_{\text{WT}}^{t} + P_{\text{PV}}^{t} = P_{\text{ACL}}^{t} + P_{\text{ES}}^{t} + P_{\text{DCL}}^{t} + \Delta P_{\varSigma }^{t} \\ \Delta P_{\varSigma }^{t} = \Delta P_{\text{ACL}}^{t} + \Delta P_{\text{ES}}^{t} + \Delta P_{\text{DCL}}^{t} - \left( {\Delta P_{\text{DE}}^{t} + \Delta P_{\text{G}}^{t} + \Delta P_{\text{WT}}^{t} +\, \Delta P_{\text{PV}}^{t} } \right) \\ \end{array} } \right. \\ \end{aligned}$$
(26)
$$P_{\text{It}}^{\hbox{min} } \le P_{\text{It}}^{t} + \Delta P_{\text{It}}^{t} \le P_{\text{It}}^{\hbox{max} }$$
(27)
$$SOC_{\text{ES}}^{\hbox{min} } \le SOC_{\text{ES}}^{t} + \Delta SOC_{\text{ES}}^{t} \le SOC_{\text{ES}}^{\hbox{max} }$$
(28)
$$\begin{aligned} & SOC_{{}}^{t + 1} + \Delta SOC_{{}}^{t + 1} = \left( {\mu_{\text{ch}} \eta_{\text{ch}} + \mu_{\text{dis}} /\eta_{\text{dis}} } \right) \\ & \quad \times \left( {P_{\text{ES}}^{t} + \Delta P_{\text{ES}}^{t} } \right)\Delta T/Q_{\text{ES}} + SOC_{{}}^{t} + \Delta SOC_{{}}^{t} \\ \end{aligned}$$
(29)

3 Fuzzy stochastic ADMM

The development of smart grid is accompanied by two characteristics. Firstly, the amount of data collected and analyzed in the dispatching process is rapidly increasing, so the required scheduling model and algorithm are more complicated. Secondly, data collection and storage are more decentralized to cope with the large quantity. Compared with conventional microgrids, hybrid AC/DC microgrids with a high proportion of distributed generation have a complex structure, large uncertainty and consequently are difficult to schedule. In order to reduce the requirement for communication bandwidth to provide full data to a centralized scheduling solution, distributed computing is an effective method to reduce the computational complexity and improve the efficiency of the calculation process. It can decouple the AC area and DC area costs. Therefore, it is helpful to find a distributed algorithm suitable for the analysis of data required by the microgrid dispatching process.

3.1 Alternating direction multiplier method

The alternating direction multiplier method (ADMM) is a distributed solution method based on dual decomposition and Lagrange multipliers for large-scale optimization. It has significant advantages in dealing with high-dimensional variables and big data [28]. A typical model solved by the ADMM is shown in (30). According to Lagrange multiplier method, the Lagrange function of the optimization model (30) can be expressed by (31).

$$\begin{aligned} \hbox{min} \, \left[ {f\left( {\varvec{x}} \right) + g\left( {\varvec{z}} \right)} \right] \hfill \\ {\text{s}} .{\text{t}} .\quad {\varvec{Ax}} + {\varvec{Bz}} = {\varvec{c}} \hfill \\ \end{aligned}$$
(30)
$$\begin{aligned} L_{\rho } \left( {{\varvec{x}},{\varvec{y}},{\varvec{z}}} \right) & = f\left( {\varvec{x}} \right) + g\left( {\varvec{z}} \right) + {\varvec{y}}^{\text{T}} \left( {{\varvec{Ax}} + {\varvec{Bz}} - {\varvec{c}}} \right) \\ & \quad + \left( {\rho /2} \right)\left\| {{\varvec{Ax}} + {\varvec{Bz}} - {\varvec{c}}} \right\|_{2}^{2} \\ \end{aligned}$$
(31)

where \({\varvec{y}}\) is the Lagrange multiplier; ρ > 0 is the penalty factor.

Equations (32)–(34) describe the iterative processes of the ADMM, and when the convergence condition (35) is satisfied, iteration can be stopped. The solution precision ɛ is a small positive number.

$${\varvec{x}}^{k + 1} : = \mathop {\arg \hbox{min} }\limits_{{\varvec{x}}} L_{\rho } \left( {{\varvec{x}},{\varvec{z}}^{k} ,{\varvec{y}}^{k} } \right)$$
(32)
$${\varvec{z}}^{k + 1} : = \mathop {\arg \hbox{min} }\limits_{{\varvec{z}}} L_{\rho } \left( {{\varvec{x}}^{k + 1} ,{\varvec{z}},{\varvec{y}}^{k} } \right)$$
(33)
$${\varvec{y}}^{k + 1} : = {\varvec{y}}^{k} + \rho \left( {{\varvec{Ax}}^{k + 1} + {\varvec{Bz}}^{k + 1} - {\varvec{c}}} \right)$$
(34)
$$\left| {{\varvec{x}}^{k + 1} - {\varvec{x}}^{k} } \right| \le \varepsilon$$
(35)

3.2 Fuzzy stochastic ADMM

In the fuzzy stochastic programming model, the ADMM can’t be used directly because of the existence of uncertain variables. An optimization algorithm based on the fuzzy stochastic ADMM is proposed in this paper to solve the hybrid AC/DC microgrid scheduling problem.

The optimization model (23) developed in section 2 can be summarized by (36), where \({\varvec{P}}_{{{\text{AC}},d}}\) and \({\varvec{P}}_{{{\text{AC}},fs}}\) are the decision vector and fuzzy stochastic vector of the AC area, and \({\varvec{P}}_{{{\text{DC}},d}}\) and \({\varvec{P}}_{{{\text{DC}},fs}}\) are the decision vector and fuzzy stochastic vector of the DC area, respectively.

$$ \begin{aligned} & {\hbox{min}} \left[ {E\left( {C_{{\text{c,AC}}}\left( {\varvec{P}_{{{\text{AC}},d}} ,\varvec{P}_{{{\text{AC}},fs}} } \right)} \right) + E\left( {C_{{\text{c,DC}}}\left( {\varvec{P}_{{{\text{DC}},d}} ,\varvec{P}_{{{\text{DC}},fs}} } \right)} \right)} \right] \\ & {\text{s}} . {\text{t}} .\\ & \quad \left\{ {\begin{array}{l} E\left[ {\sum {\varvec{P}_{{{\text{AC}},d}} } + \sum {\varvec{P}_{{{\text{AC}},fs}} } + \sum {\varvec{P}_{{{\text{DC}},d}} } + \sum {\varvec{P}_{{{\text{DC}},fs}} } } \right] = E\left[ {\sum {\varvec{P}_{\text{load}} } } \right] \\ E\left[ {\varvec{g}_{\text{AC}} \left( {\varvec{P}_{{{\text{AC}},d}} ,\varvec{P}_{{{\text{AC}},fs}} } \right)} \right] \le {\mathbf{0}} \\ E\left[ {\varvec{g}_{\text{DC}} \left( {\varvec{P}_{{{\text{DC}},d}} ,\varvec{P}_{{{\text{DC}},fs}} } \right)} \right] \le {\mathbf{0}} \\ \end{array}}\right.\\ \end{aligned} $$
(36)

For a continuous fuzzy stochastic variable, the expected value is the integral of the uncertain variable. Assuming that the WT and PV generators run at their maximum power point, they are uncontrolled power supplies, and therefore, the total operating costs of the AC and DC areas does not directly include the uncertain variables of the WT and PV output, so the expected value of the objective function in (36) is the objective function itself. Thus, the objective function can be expressed as:

$$\hbox{max}\quad E\left( {C_{{\text{c,AC}}} + C_{{\text{c,DC}}}} \right) = \hbox{max}\quad \left( {C_{{\text{c,AC}}} + C_{{\text{c,DC}}}} \right)$$
(37)

For constraints with fuzzy stochastic variables, uncertain variables can be transformed into pure quantities by integration of uncertain variables. However, the probability density functions of the PV and WT output power are obtained from the probability density functions of light intensity and wind velocity, so if they are directly integrated the problem will be very difficult to solve. Therefore, stochastic and fuzzy simulation techniques are employed to indirectly obtain the expected values of fuzzy stochastic variables in this paper.

For the fuzzy stochastic variable P fs , the predicted deviation \(\Delta \hat{P}_{f}^{{}}\) can be generated by the fuzzy simulation technique, and the predicted value \(\hat{P}_{s}^{{}}\) can be generated by the stochastic simulation technique. Using (5) we can derive a large number of fuzzy stochastic samples \(\hat{P}_{fs}^{{}}\). Let M s be the number of stochastic and fuzzy simulations, and then referring to (38) the fuzzy stochastic variable can be changed into a pure variable.

$$E\left( {P_{fs}^{{}} } \right) = \mathop {\lim }\limits_{{M_{s} \to \infty }} \frac{1}{{M_{s} }}\sum\limits_{i = 1}^{{M_{s} }} {\left[ {\hat{P}_{s} \left( {1 + \hat{P}_{f} } \right)} \right]}$$
(38)

Drawing on the above analysis, the fuzzy stochastic ADMM can be summarized into three main steps:

  1. 1)

    Fuzzy and stochastic simulation. In this step, uncertain variables are generated according to the corresponding stochastic and fuzzy distributions. Each summation of a fuzzy stochastic variable over M s simulations gives an intermediate variable e.

  2. 2)

    Eliminate uncertain variables. Due to the law of large numbers, e/M s is the expected value of the uncertain variable that summed to e. The double-uncertainty optimization model can then be transformed into a deterministic model.

  3. 3)

    Conventional ADMM iteration. Without uncertain variables, the ADMM has a natural advantage in solving this kind of optimization model, because of the appropriate structure in (36).

The flow chart of fuzzy stochastic ADMM is shown in Fig. 4.

Fig. 4
figure 4

Flow chart of fuzzy stochastic ADMM

4 Simulation based on engineering data

4.1 Basic data

This paper relies on data from a demonstration project to verify the fuzzy stochastic expectation optimization model and algorithm. Light intensity, wind speed, and TOU power price are given in Table A2 and Table A3 of Appendix A. The microgrid is simplified reasonably for the purpose of this presentation. There are bus-voltage loads and non-bus-voltage loads in the AC and DC areas, and the load forecast data are shown in Fig. 5. There are two 350 kW diesel generators and two 1 MW WT in the AC area. The AC area is connected to the DC area through four 250 kW power flow controllers. The DC area contains four PV generation units each with capacity of 250 kW and one battery energy storage unit with power capacity 250 kW and energy capacity 1 MWh. The hourly predicted wind speed and light intensity data are shown in Fig. 6.

Fig. 5
figure 5

Load forecast data in AC area and DC area

Fig. 6
figure 6

Wind speed and solar radiation forecast data

The operating parameters of the distributed generators are given in Table 1. In order to reduce the computational complexity, the loads with the same characteristics are combined without affecting the scheduling results. The amount of load-side power conversion equipment is reduced after the merger, and its efficiency, capacity and quantity are given in Table 2, where the efficiency function is obtained by fitting measured data.

Table 1 Parameters of distributed generators
Table 2 Power conversion equipment parameters

4.2 Simulation verification

In order to verify the advantages of the fuzzy stochastic optimization model relative to an existing optimization model, simulation results from fuzzy stochastic optimization are compared with deterministic optimization and stochastic optimization, the latter two being the most commonly used models at present. The deterministic and stochastic optimization models can be derived through appropriate simplification of the fuzzy stochastic optimization model.

The curves in Fig. 7 represent the actual (measured), deterministic, considering randomness and considering fuzzy randomness output of WT and PV generators. It can be seen that when different models of uncertainty are used, the corrections of WT and PV output are different. Using these four kinds of WT and PV output curves, the day-ahead schedule and unbalanced power adjustment are simulated for the load curves and microgrid components described above. The schedule comprises the power imported from the utility grid, the combination and output of the two diesel generators, and the charge and discharge power of the battery energy storage.

Fig. 7
figure 7

Deterministic, stochastic, fuzzy stochastic, and real outputs of WT and PV

Figure 8 shows the deviation between the actual output and the output of the deterministic prediction, stochastic model, and fuzzy stochastic model. The error in estimating the WT and PV output is larger during 0:00~10:00, 12:00~13:00, and 21:00~24:00, because the renewable energy output in these times is larger and more sensitive to meteorological factors which are difficult to accurately predict. The deterministic error fluctuates greatly and reaches up to 400 kW more than once, while the absolute value of the deviation from stochastic expectation model is relatively small and the changes are more stable compared with the deterministic prediction; only at 22:00 does it reach up to 400 kW. The WT and PV output forecast by the fuzzy stochastic model is the closest to the actual output, with the smallest deviation, rarely more than 200 kW. The deviations graphed in Fig. 8 are the unbalanced power to be dispatched for real-time adjustment of the scheduled power.

Fig. 8
figure 8

WT and PV outputs errors between deterministic, stochastic, and fuzzy stochastic optimization and the actual

Figures 910 and 11 show the day-ahead schedule and real-time adjustment of controllable power in this hybrid AC/DC microgrid. It can be seen from Fig. 9 that, although the peak load of hybrid AC/DC microgrid and the installed capacity of renewable energy are equivalent, the capacity factors of WT and PV generation are relatively low, so the microgrid purchases power from the utility grid at all times. From the day-ahead schedule in Fig. 10, energy storage discharges when the electricity price is high, and charges when it is low, thereby reducing operating costs. In Fig. 11(a) and (b), the diesel power output is not sensitive to changing TOU power prices due to its output range and ramping constraints, but at least one diesel generator is consistently running during the period of high prices, to reduce the amount of utility power purchased. Due to the different fuel consumption characteristics of the two diesels, their output planning is different.

Fig. 9
figure 9

Output scheduling and real-time adjustment program of utility grid

Fig. 10
figure 10

Energy storage planning and real-time adjustment

Fig. 11
figure 11

Diesel generator scheduling and real-time adjustment

The unbalanced power adjustment schemes during each dispatch interval, for the four kinds of energy source, are obtained by the unbalanced power optimization model. It can be seen from the real-time adjustments shown in Figs. 89 and 10 that the power needing to be adjusted is largest when using the deterministic optimization scheme, followed by the stochastic optimization model, and it is smallest when using the fuzzy stochastic optimization model. That is, the day-ahead scheme based on the fuzzy stochastic optimization model is the closest to the optimal scheme (the optimal schedule refers to the scheme obtained by optimizing according to the actual output instead of the prediction). It can also be seen that, during the energy storage discharge period (8:00~10:00, 12:00~18:00), the unbalanced power is mainly adjusted using energy storage and imported power from the utility grid. This is because the running diesel is close to its lower limit of operation during these times, and the flexibility and economy of the energy storage and power grid is better in this circumstance.

Table 3 summarizes the operating costs associated with the day-ahead schedule and unbalanced power adjustment for different scheduling models. The optimal scheme in the table is not a practical solution but is useful for comparing costs with the other three optimization models. We can see that although the stochastic optimization cost is less than the fuzzy stochastic model in the day-ahead scheduling stage, the daily adjustment cost of the stochastic model is higher than that of the fuzzy stochastic model. The total operating costs of the three optimization models, deterministic optimization, stochastic optimization and fuzzy stochastic optimization, are progressively reduced. In the unbalanced power adjustment, the deterministic model adjustment costs are negative, because the actual outputs of WT and PV are larger than the forecast values, the unbalanced power adjustment has reduced the amount of utility grid power purchased. The final operating cost of the fuzzy stochastic optimization scheme is only ¥151 more than the optimal operating cost.

Table 3 Operating costs of each scheduling model

Figure 12 shows the proportion of the various components of the total operating cost based on the fuzzy stochastic optimization model. It can be seen that the cost of purchasing utility grid accounts for the majority of the total cost of operation. In order from greatest to least, the other operating costs are the diesel operating costs, cost of power conversion losses, operation and maintenance costs and energy storage operating costs.

Fig. 12
figure 12

Fuzzy stochastic optimization of the operation of the cost ratio

5 Conclusion

Compared with deterministic optimization and stochastic optimization, the fuzzy stochastic expectation optimal scheduling model and the unbalanced power real-time adjustment model proposed in this paper can effectively improve the accuracy of microgrid scheduling when there is a high proportion of intermittent energy. The proposed models reduce the real-time unbalanced power, and thus reduce the costs of the unbalanced power adjustment. By cooperating with the fuzzy stochastic ADMM also proposed in this paper, the models can effectively coordinate various generators and loads in the AC and DC areas of a hybrid AC/DC microgrid, resulting in reduced total operating costs.

The prediction error of the load is also an uncertain factor in microgrid operation, so double-uncertainty optimal operation considering the load forecasting error, as well as the intermittent generation output forecasting error, is recommended as a topic for further study.