Open Access
This article is

- freely available
- re-usable

*Sustainability*
**2017**,
*9*(9),
1655;
doi:10.3390/su9091655

Article

Operating Strategy for Local-Area Energy Systems Integration Considering Uncertainty of Supply-Side and Demand-Side under Conditional Value-At-Risk Assessment

^{1}

State Key Laboratory of Alternative Electrical Power System with Renewable Energy Sources, North China Electric Power University, Beijing 102206, China

^{2}

China Energy Engineering Group Tianjin Electric Power Design Institute Co., Ltd., Tianjin 300400, China

^{3}

Inner Mongolia Power (Group) Co., Ltd., Huhehaote 010020, China

*

Correspondence: Tel.: +86-010-6177-3855

Received: 9 June 2017 / Accepted: 15 September 2017 / Published: 18 September 2017

## Abstract

**:**

To alleviate environmental pollution and improve the energy usage efficiency of terminals, energy systems integration (ESI) has become an important paradigm in the energy structure evolution. Power, gas and heat systems are becoming tightly interlinked with each other in ESI. The dispatching strategy of local-area ESI has significant impact on its operation. In this paper, a local-area ESI operational scheduling model based on conditional value-at-risk (CVaR) is proposed to minimize expected operational cost, which considers the uncertainty of energy supply-side and demand-side as well as multi-energy network constraints, including electrical network, thermal network and gas network. The risk cost is analyzed comprehensively under the condition of under- or overestimated cost. On this basis, a hybrid method combining particle swarm optimization with interior point algorithm is executed to compute the optimal solutions of two-stage multi-period mixed-integer convex model. Finally, a case study is performed on ESI to demonstrate the effectiveness of the proposed method.

Keywords:

energy systems integration (ESI); conditional value-at-risk (CVaR); risk cost; multi-energy network constraints; bi-level optimization## 1. Introduction

The energy industry has gone through great changes as a result of the rapid development of technology and economy since twenty-first century. In recent years, the development of sustainable, affordable, and clean sources of energy is considered a prerequisite for today’s economic strength and will benefit tomorrow’s society. Under the impetus of competition in the energy industry, the unbundling of the electricity sector has introduced new technologies for the generation and the delivery of electricity, which signify less pollutant, highly efficient, and less costly ways of supplying the electricity. The large-scale integration of variable renewable units in power systems would require a fast response generating capacity. In this case, energy systems integration (ESI) as an important form of a new energy system is proposed; it covers electric power system, heat system and natural gas system with the purpose of coordinating the whole system in the processes of generation, transmission and consumption, which is considered to be the core technology of the “third industrial revolution” [1]. A recent survey of the references shows that considering their characteristics range of application, the different mainstream ESI approaches adopted by researchers can be classified into two categories [2,3]: wide-area ESI and local-area ESI. Local-area ESI has many forms and includes city ESI, community ESI, industrial park ESI, etc. The paper focuses on the local-area ESI which lays solid foundations and provides valid support for entire energy systems; the local-area ESI can be seen as an upgraded level of a microgrid. The relationship between wide-area ESI and local-area ESI is shown in Figure 1.

There are a large number of references on ESI economic dispatch and many works have been conducted with regard to the decision making model. Parisio et al. [4] propose a robust optimization method for energy hub management which can be defined as an interface between generating units and the energy consumers, bounded uncertainties on energy hub parameters are taken into account and calculation methods are exploited to gain robust solutions which are feasible for all values. In [5], An integrated model of gas and electricity networks was developed to analyze the operational strategy using deterministic method, two stage stochastic method and multi stage stochastic method, which takes into account the uncertainty in wind power forecast and fuel availability of gas-fired generators. In [6], the coordination of constrained electricity and natural gas infrastructures is considered for firming the variability of wind energy in electric power systems, and the stochastic security-constrained unit commitment is applied for minimizing the expected operation cost in the day-ahead scheduling of power grid. In [7], an interval optimization based coordinated operating strategy for the gas-electricity integrated energy system is proposed considering demand response and wind power uncertainty. Zhang et al. [8] present a co-optimization planning model that considers the long-term interdependency of natural gas and electricity infrastructures, whose model is decomposed into a least-cost master investment problem for natural gas and electricity systems and interacts with two operation subproblems representing the feasibility (security) and the optimality (economic) of the proposed co-optimization.

The approaches mentioned above have the limitation that no mechanism was presented to deal with the gap between forecast values and real-time values for both energy supply and demand sides in ESI. Specifically, in energy supply side, high penetration distributed generations (DG) bring about more and more randomness and fuzziness, which is considerably difficult to make potentially costly operational decisions for energy management system (EMS). Meanwhile, in energy demand side, although several sources of loads have strong coupling relationships with each other that may improve the forecasting accuracy, uncertain energy consumption fashion in local-area still poses an enormous dilemma regarding the appropriate implementation of prediction algorithms. Therefore, as the risks of different energy systems are gradually aggregated, the interaction among various energy sources becomes more relevant, as illustrated in Figure 2. A number of energy service issues will be more complex to solve without assessing system risk, such as the economic scheduling of distributed energy system, scheduling of energy purchase, system security assessment, and planning for energy transactions and demand response. Thus, how to effectively quantify the risk of ESI is still an urgent problem to be solved. Value-at-risk (VaR) and conditional value-at-risk (CVaR), as well-known risk measures, have been widely used in various energy management problems for different entities in the electricity market such as retailers [9], producers [10,11,12], distribution companies [13], and in generation operation planning [14], optimal power flow [15] as well as coordinated energy trading problems [16,17].

The main contributions of this paper can be summarized as follows.

- (1)
- To the best of our knowledge, the CVaR as risk evaluation approach has rarely been applied in local-area ESI operating strategy research. In this paper, risk assessment of local-area ESI is proposed to quantify the impact occurred by uncertainty of energy supply-side and demand-side.
- (2)
- In the modeling process, risk cost, which includes the fuel cost, maintenance cost and facility adjustment cost, is especially analyzed in the case of overestimation and underestimation as multiple sources of energy interact, and constraints of multi-energy systems network are fully taken into account.
- (3)
- By considering the advantage of the algorithm and the complexity of the ESI model, a bi-level optimization algorithm which combines particle swarm optimization (PSO) approach with interior point (IP) method is used to solve the stochastic multi-period mixed-integer model for dispatching issue.

The content of this paper is organized as follows. Section 2 presents the fundamental mathematical model related to energy supply equipment and uncertainty analysis on energy supply and demand side. Section 3 introduces the CVaR based economic dispatch model for integrated energy systems. The results of our numerical experiment and sensitivity analysis are presented in Section 4. Finally, the conclusion and plan for future work avenues are presented in Section 5.

## 2. Mathematical Model Formulation

#### 2.1. Mathematical Model of Electricity Supply Equipment in Local-Area ESI

#### 2.1.1. Micro Turbine CHP Model

Micro-turbine is a type of small gas turbine, whose rated power generally ranges from 25 kW to 300 kW. The efficiency of micro-turbine, which supplies energy source in the form of heat and electricity, can be up to 70%. Considering that the Capstone C65 micro is widely used in the practical application [18], power generation efficiency ${\eta}_{MT}$ can be approximated by Equation (1):
where P

$${\eta}_{MT}=0.0753\cdot {(\frac{{P}_{CHP}}{65})}^{3}-0.3095\cdot {(\frac{{P}_{CHP}}{65})}^{2}\text{}+0.4174\cdot (\frac{{P}_{CHP}}{65})+0.1068$$

_{CHP}denotes the electrical power of micro turbine; when the fluctuation of P_{CHP}is limited, ${\eta}_{MT}$ can be regarded as a fixed constant.LHV

_{ng}represents natural gas calorific value. The amount of nature gas consumed by CHP unit can be described as follow:
$${f}_{CHP}=\frac{{P}_{CHP}}{LH{V}_{ng}\cdot {\eta}_{MT}}$$

C

_{ng}represents the price of nature gas. The fuel cost of CHP C_{CHP}can be described as:
$${C}_{CHP}={C}_{ng}\cdot {f}_{CHP}$$

${\eta}_{l}$ denotes the heat loss rate, ${\eta}_{rec}$ denotes waste heat recovery efficiency, and COP

_{h}represents the heating coefficient of bromine cooler. The heating power of CHP can be noted as:
$${Q}_{CHP}=\frac{{P}_{CHP}(1-{\eta}_{MT}-{\eta}_{l})}{{\eta}_{MT}}\cdot {\eta}_{rec}\cdot CO{P}_{h}$$

#### 2.1.2. Fuel Cell Model

Fuel cell is a device that converts the chemical energy from a fuel into electricity through a chemical reaction of positively charged hydrogen ions with oxygen or another oxidizing agent [19]. The amount of nature gas consumed by FC per unit time can be calculated as:
where ${P}_{FC}$ presents generation power and ${\eta}_{FC}$ presents generation efficiency. The power efficiency of a fuel cell ${\eta}_{FC}$ and fuel cost of FC C

$${f}_{FC}=\frac{{P}_{FC}}{LH{V}_{ng}\cdot {\eta}_{FC}}$$

_{FC}can be described as follows:
$${\eta}_{FC}=-0.0005{P}_{FC}+0.6735$$

$${C}_{FC}={C}_{ng}\cdot {f}_{FC}$$

#### 2.1.3. Photovoltaic Power Generation Model

Photovoltaics (PV) are a type of equipment that convert light into electricity using semiconducting materials that exhibit the photovoltaic effect. Considering that the output power of PV is closely related to temperature, radiance, pressure humidity, etc., the output of the photovoltaic cell can be expressed by Equation (8)
where P

$${P}_{PV}(t)={P}_{STC}\cdot \frac{G(t)}{{G}_{STC}}[1+k\cdot ({T}_{c}(t)-{T}_{STC})]$$

_{PV}(t) is the output of PV. G_{STC}, T_{STC}and P_{STC}are radiance, photovoltaic cell temperature and maximum output power, respectively. G(t) and T_{c}(t) are radiance and photovoltaic cell temperature at t-th period, respectively. k is the power temperature coefficient.#### 2.1.4. Wind Power Generation Model

A wind turbine is a device that converts the wind‘s kinetic energy into electrical power. Specifically, cut-in wind speed v
where P

_{ci}rated wind speed v_{r}and cut-out wind speed v_{co}as three typical wind speed parameters and can comprehensively describe wind resource utilized by facility. The relationship between the WT output power and the wind speed are described in Equation (9):
$${P}_{WT}=\{\begin{array}{l}0,\hspace{1em}\hspace{1em}\hspace{1em}\hspace{1em}v\le {v}_{ci},\text{}v\ge {v}_{co}\\ {k}_{1}v+{k}_{2},\hspace{1em}{v}_{ci}v{v}_{r}\\ {P}_{r}\uff0c\hspace{1em}\hspace{1em}\hspace{1em}{v}_{r}\le v\le {v}_{co}\end{array}$$

_{WT}is actual output power of WT, P_{r}is rated power, and k_{1}and k_{2}are fitting parameters.#### 2.2. Mathematical Model of Heat Supply Equipment in Local-Area ESI

#### 2.2.1. Ground Source Heat Pump Model

Ground source heat pump model GSHP is a central heating or cooling system that transfers heat from the ground. It uses the earth as a heat source (in the winter) or a heat sink (in the summer) [20]. The design takes advantage of the moderate temperatures in the ground to boost efficiency and reduce the operational cost of heating and cooling systems. In this paper, we employ a quadratic function as mathematical model to simplify the relationship of input and output.
where a, b and c are the coefficients of the quadratic function.

$${P}_{\mathrm{GSHP}}=a+b{\Phi}_{\mathrm{GSHP}}+c{\Phi}_{\mathrm{GSHP}}^{2}$$

#### 2.2.2. Gas Boiler Model

Gas boiler (GB) is the most commonly used thermal facility; it directly burns natural gas to produce heat [21]. The amount of nature gas GB consumed per unit time can be calculated as follow:
where Q

$${f}_{GB}=\frac{{Q}_{GB}}{LH{V}_{ng}}\cdot CO{P}_{GB}$$

_{GB}is heating power and is heating coefficient.Fuel cost of GB C

_{GB}can be calculated as follow:
$${C}_{GB}={C}_{ng}\cdot {f}_{GB}$$

#### 2.3. Uncertainty Analysis in Local-Area IES

#### 2.3.1. Uncertainty of Energy Supply Side

Given that renewable energy sources including PV and WT usually possess the characteristic of randomness and uncertainty in the ESI energy supply side, the Weibull distribution and the β distribution are commonly used to describe the uncertainty of wind speed and radiance for long-term power system planning and operation scheduling issues in conventional fashion, which ignores coupling between adjacent periods. These strategies might not be suitable for ESI economic scheduling in short-term or very short-term range to simulate the actual operation scenario. Thus, we employ short-term forecasts of wind speed and radiance to predict WT and PV output the next day.

The forecasting error of the wind speed $\Delta v$ can be obtained from the deviation between the wind speed predicted value $\stackrel{\_}{v}$ and the actual value $v$, which can be calculated as $\Delta v=v-\stackrel{\_}{v}$. Some studies have shown that the prediction error of wind speed is subject to normal distribution [22] whose mean and standard deviation are 0 and ${\sigma}_{v}$, respectively. Thus, the probability of the actual wind speed is:

$${f}_{v}(v)=\frac{1}{\sqrt{2\pi {\sigma}_{v}}}\mathrm{exp}[-\frac{{(v-\stackrel{\_}{v})}^{2}}{2{\sigma}_{v}^{2}}]$$

The distribution function is:
where $\Phi $ is standard normal distribution function.

$${D}_{WT}(v)=\Phi (\frac{v-\stackrel{\_}{v}}{{\sigma}_{v}})$$

According to Equation (9), for the reason that the relationship between WT output and wind speed is nonlinear, the output of the WT is not subject to the normal distribution. The output power probability distributions of WT can be calculated by Equations (9) and (14):

$${P}_{r}\{{P}_{WT}=0\}=\Phi (\frac{{v}_{ci}-\stackrel{\_}{v}}{{\sigma}_{v}})+(1-\Phi (\frac{{v}_{co}-\stackrel{\_}{v}}{{\sigma}_{v}}))$$

$${P}_{r}\{{P}_{WT}={P}_{r}\}=\Phi (\frac{{v}_{co}-\stackrel{\_}{v}}{{\sigma}_{v}})-\Phi (\frac{{v}_{r}-\stackrel{\_}{v}}{{\sigma}_{v}})$$

The probability density function of WT output in interval [${v}_{ci}$, ${v}_{r}$] is:

$${f}_{P}({P}_{WT})=\frac{1}{\sqrt{2\pi {\sigma}_{v}}}\mathrm{exp}[-\frac{{(\frac{{P}_{WT}-{k}_{2}}{{k}_{1}}-\stackrel{\_}{v})}^{2}}{2{\sigma}_{v}^{2}}]$$

As per the analysis above, we can obtain the distribution of the WT output for the next 24 h after estimating the standard deviation ${\sigma}_{v}$.

Similarly, according to Ref. [23], PV output can be computed in a similar way.

#### 2.3.2. Uncertainty of Energy Demand Side

A large body of references suggests that the probability density distribution of electrical and heat load approximately obeys normal distribution. Therefore, the normal distribution model with boundary is used to describe the uncertainty of electrical and heat loads [24,25] because the maximum and minimum points always appear during on-peak and off-peak periods.

Suppose that the random variable $\mu $ is subject to the normal distribution in the interval [a, b], the probability density function of $\mu $ can be described as:
where ${\mu}_{0}$ is the mean of random variables $\mu $, and ${\sigma}_{0}$ is the standard deviation.

$$f(\mu )=\frac{\mathrm{exp}[-\frac{{(\mu -{\mu}_{0})}^{2}}{2{\sigma}_{0}^{2}}]}{{\displaystyle {\int}_{a}^{b}\mathrm{exp}[-\frac{{(\mu -{\mu}_{0})}^{2}}{2{\sigma}_{0}^{2}}]d\mu}}$$

Suppose that the predicted value of electrical load is ${P}_{0}$, the actual value is ${P}_{d}$. The minimum and maximum value are ${P}_{d,\mathrm{min}}$ and ${P}_{d,\mathrm{max}}$, respectively. In addition, ${P}_{d}$ is subject to the normal distribution with standard deviation, ${\sigma}_{d1}$, thus the probability density function of the load actual value ${P}_{d}$ in the interval [${P}_{d,\mathrm{min}}$, ${P}_{d,\mathrm{max}}$] can be described as:

$${f}_{d}({P}_{d})=\frac{\mathrm{exp}[-\frac{{({P}_{d}-{P}_{0})}^{2}}{2{\sigma}_{d1}^{2}}]}{{\displaystyle {\int}_{{P}_{d,\mathrm{min}}}^{{P}_{d,\mathrm{max}}}\mathrm{exp}[-\frac{{({P}_{d}-{P}_{0})}^{2}}{2{\sigma}_{d1}^{2}}]d{P}_{d}}}$$

Similarly, the probability density function ${f}_{d}({\Phi}_{d})$ of the heat load actual value ${\Phi}_{d}$ can also be obtained by method mentioned above.

#### 2.3.3. Reduction of Uncertainty Scenarios

In this paper, we employ the Monte Carlo based Latin Hypercube Sampling (LHS) technique to generate scenarios by means of randomly sampling and comparing the probability distance. More details are provided in Ref. [26].

## 3. CVaR Based Dispatching Model for Local-Area ESI

#### 3.1. Risk Modelling via CVaR

Conditional value at risk (CVaR) assessment is used to quantify the risk potential beyond VaR and represents an appropriate approach to integrate the inherent risk management problem in the commitment and dispatch procedures, which is an improved risk analysis method proposed by Rockafeller and Uryasev [27,28].

By definition, with respect to a specified probability level $\beta $, VaR of a portfolio is the lowest dispatch cost such that, with probability $\beta $, the dispatch cost will not exceed a considered amount, whereas the CVaR is the conditional expectation of dispatch cost above that amount.

Assuming that the probability density function of the random variable $\xi $ is $p(\xi )$, the distribution function of the loss function is:
where $f(X,\xi )$ is the loss function of portfolio X, and $\xi $ represents a continuous random variable that may affect the loss function.

$$\varphi (X,\tau )={\displaystyle {\int}_{f(X,\xi )\le \tau}p(\xi )d\xi}$$

For a given confidence level $\beta $, the VaR of Portfolio X can be described as:

$${VaR}_{\beta}=\mathrm{min}\{\tau \in R|\varphi (X,\tau )\ge \beta \}$$

The continuous CVaR can be illustrated as:

$$\begin{array}{ll}{CVaR}_{\beta}& =E[f(X,\xi )|f(X,\xi )>{VaR}_{\beta}]\\ & ={VaR}_{\beta}+\frac{1}{1-\beta}\cdot {\displaystyle \underset{\xi}{\int}\mathrm{max}\{f(X,\xi )-{VaR}_{\beta},0\}\cdot p(\xi )d\xi}\end{array}$$

Accordingly, the discrete CVaR can be calculated as:

$$\begin{array}{ll}{\mathrm{CVaR}}_{\beta}& =E[f(X,\xi )|f(X,\xi )>{VaR}_{\beta}]\\ & ={VaR}_{\beta}+\frac{1}{1-\beta}{\displaystyle \sum _{n=1}^{N}{Pr}_{n}\cdot {[f(X,\xi )-{VaR}_{\beta},0]}^{+}}\end{array}$$

Here, ${[f(X,\xi )-{VaR}_{\beta}]}^{+}=\mathrm{max}\text{{}f(X,\xi )-{VaR}_{\beta},0\}$, where n is number of period, and ${Pr}_{s}$ is the probability of occurrence for the s-th scenario.

The corresponding optimization formulation can be obtained according to Ref. [22]:
where $f(X,z)$ is CVaR

$$\mathrm{min}\text{\hspace{0.17em}}f(X,z)=z+\frac{1}{1-\beta}{\displaystyle \sum _{n=1}^{N}{\mathrm{Pr}}_{n}\cdot [f}(X,\xi )-z{]}^{+}$$

_{β}, and z is VaR_{β}.#### 3.2. Risk Cost of ESI

Since the predicted values of renewable energy source output and various types of loads may not able to track fluctuation of actual operational values comprehensively, which will lead to the unbalance of electrical flow, thermal flow, and natural gas flow, some measures must be taken to maintain the equilibrium state of ESI, which may bring about extra charge such as extra fuel cost, maintenance cost and additional adjustment expenses, besides the cost of purchasing natural gas and electricity. Thus, these sorts of extra charge can be defined as the risk cost of ESI economic scheduling, which can be divided into two categories: overestimated risk cost and underestimated risk cost.

#### 3.2.1. Overestimated Cost

On condition that the forecasting value of PV and WT output are higher than the actual value or the forecasting value of electrical and thermal load are lower than those of actual value, the extra expense incurred by action, such as increasing output of controllable generation or cutting part of electrical and thermal load, can be defined as overestimated cost, which includes fuel cost for the controllable equipment, maintenance cost, adjustment cost and compensation for interruption of load. The overestimated cost can be described separately in terms of electricity and heat.

#### Overestimated Cost for Electricity

Overestimated cost for electrical subsystem can be described as follows:

$${C}_{h,t}^{E}=\{\begin{array}{l}{\displaystyle \sum _{i=1}^{{N}^{E}}\left[{C}_{i,t}^{E}({P}_{i,t}+{\delta}_{i,t}^{E})-{C}_{i,t}^{E}({P}_{i,t})+{K}_{i}^{E}{\delta}_{i,t}^{E}+{c}_{T,i}^{E}{\delta}_{i,t}^{E}\right]},\text{\hspace{1em}}{\delta}_{h,t}^{E}\le {\displaystyle \sum _{i=1}^{{N}^{E}}{r}_{u,i}^{E}\Delta t}\\ {\displaystyle \sum _{i=1}^{{N}^{E}}\left[{C}_{i,t}^{E}({P}_{i,t}+{r}_{u,i}^{E})-{C}_{i,t}^{E}({P}_{i,t})+{K}_{i}^{E}{r}_{u,i}^{E}+{c}_{T,i}^{E}{r}_{u,i}^{E}\right]}+{c}_{loss}^{E}\Delta {P}_{loss,t},\text{}{\delta}_{h,t}^{E}\ge {\displaystyle \sum _{i=1}^{{N}^{E}}{r}_{u,i}^{E}\Delta t}\end{array}$$

Here, superscript E is electrical power; Subscript t and i represent the t-th period and the i-th electrical power generation equipment, respectively; ${C}_{h,t}^{E}$ is the overestimated cost; ${C}_{i,t}^{E}$ is the fuel cost function, whose calculation detail has mentioned in Section 2; ${P}_{i,t}$ is planning electrical power output; ${N}^{E}$ is the number of controllable power generation facility; ${\delta}_{i,t}^{E}$ is the adjustment electrical power; ${r}_{u,i}^{E}$ is the ramping up rate; ${K}_{i}^{E}$ is the maintenance cost; ${c}_{T,i}^{E}$ is the adjustment cost for per unit power; ${\delta}_{h,t}^{E}$ is the overestimated electrical power; ${c}_{loss}^{E}$ is the compensation cost for interruptible load; and $\Delta {P}_{loss,t}$ is the loss power for interruptible load. The second part of Equation (25) indicates that, even when all the controllable electrical power supply equipment operates at the maximum ramping up rate, the equilibrium point of ESI cannot be guaranteed, which will interrupt part of the load. The overestimated power can be described as follow:
where ${P}_{L,t}$ represents electrical load forecasting power; ${P}_{line,t}$ is the exchange electrical power between the ESI and utility grid; ${P}_{PV,i,t}$ and ${P}_{WT,j,t}$ are PV and WT forecasting power output, respectively; ${\delta}_{L,t}^{E}$, ${\delta}_{PV,i,t}$ and ${\delta}_{WT,i,t}$ are forecasting error of electrical load, PV and WT, respectively; and ${N}^{PV}$ and ${N}^{WT}$ are the number of PV and WT facilities, respectively.

$${\delta}_{h,t}^{E}=({P}_{L,t}+{\delta}_{L,t}^{E})-\text{}[{\displaystyle \sum _{i=1}^{{N}^{E}}{P}_{i,t}}+{P}_{line,t}+{\displaystyle \sum _{i=1}^{{N}^{PV}}({P}_{PV,i,t}+{\delta}_{PV,i,t})}+{\displaystyle \sum _{i=1}^{{N}^{WT}}({P}_{WT,i,t}+{\delta}_{WT,i,t})}]$$

The interrupt electrical load can be calculated as follow:

$$\Delta {P}_{loss,t}={\delta}_{h,t}^{E}-{\displaystyle \sum _{i=1}^{{N}^{E}}{r}_{u,i}^{E}\Delta t}$$

#### Overestimated Cost for Heat

The overestimated cost for heat is demonstrated as follows:
where superscript H is heat power; Subscript t and i represent the t-th period and i-th thermal power generation equipment, respectively; ${C}_{h,t}^{H}$ is the overestimated cost to guarantee thermal power balance; ${C}_{i,t}^{H}$ is the fuel cost function and its detail can be found in Section 2; ${\Phi}_{i,t}$ is the planning thermal power output; ${N}^{H}$ is the number of thermal equipment; ${\delta}_{i,t}^{H}$ is the adjustment power; ${r}_{u,i}^{H}$ is the climbing rate; ${K}_{i}^{H}$ is the maintenance cost for per unit thermal power; ${c}_{T,i}^{H}$ is the adjustment cost for per unit thermal power; ${\delta}_{h,t}^{H}$ is the overestimated heat; ${c}_{loss}^{H}$ is the compensation cost for interrupting thermal load; and $\Delta {\Phi}_{loss,t}$ is the interruption amount of the thermal load. The second part of Equation (28) indicates that, even when all the controllable thermal power supply equipment operates at the maximum ramping up rate, the equilibrium point of ESI cannot be guaranteed, which will interrupt part of the thermal load. The overestimated thermal power is noted as follow:
where ${\Phi}_{L,t}$ is the forecasting thermal load power, and ${\delta}_{L,t}^{H}$ is the prediction error of the thermal load.

$${C}_{h,t}^{H}=\{\begin{array}{l}{\displaystyle \sum _{i=1}^{{N}^{H}}\left[{C}_{i,t}^{H}({\Phi}_{i,t}+{\delta}_{i,t}^{H})-{C}_{i,t}^{H}({\Phi}_{i,t})+{K}_{i}^{H}{\delta}_{i,t}^{H}+{c}_{T,i}^{H}{\delta}_{i,t}^{H}\right]},\text{\hspace{0.17em}}{\delta}_{h,t}^{H}\le {\displaystyle \sum _{i=1}^{{N}^{H}}{r}_{u,i}^{H}\Delta t}\\ {\displaystyle \sum _{i=1}^{{N}^{H}}\left[{C}_{i,t}^{H}({\Phi}_{i,t}+{r}_{i,t}^{H})-{C}_{i,t}^{H}({\Phi}_{i,t})+{K}_{i}^{H}{r}_{i,t}^{H}+{c}_{T,i}^{H}{r}_{i,t}^{H}\right]}+{c}_{loss}^{H}\Delta {\Phi}_{loss,t},\text{\hspace{1em}}{\delta}_{h,t}^{H}\ge {\displaystyle \sum _{i=1}^{{N}^{H}}{r}_{u,i}^{H}\Delta t}\end{array}$$

$${\delta}_{h,t}^{H}=({\Phi}_{L,t}+{\delta}_{L,t}^{H})-{\displaystyle \sum _{i=1}^{{N}^{H}}{\Phi}_{i,t}}$$

The interrupt thermal load can be calculated as follow:

$$\Delta {\Phi}_{loss,t}={\delta}_{h,t}^{H}-{\displaystyle \sum _{i=1}^{{N}^{E}}{r}_{u,i}^{H}\Delta t}$$

#### 3.2.2. Underestimated Cost

On condition that the forecasting value of PV and WT output are lower than the actual value or the forecasting value of electrical and thermal load are higher than those of actual value, some measures should be taken to keep power balance, such as controllable generation power reduction, and renewable energy curtailment. In this case, the related cost is defined as underestimate costs, which include the fuel cost for adjusting the controllable equipment, the maintenance cost, the punishment cost of renewable energy curtailment, and the adjustment cost. The underestimated cost can be described separately in terms of electricity and heat.

#### Underestimated Cost for Electricity

Underestimated cost for electrical subsystem can be described as follows:
where ${C}_{d,t}^{E}$ is the underestimated cost for electricity; ${r}_{d,i}^{E}$ is the ramping down rate; ${\delta}_{d,t}^{E}$ is the underestimated electrical power; and ${c}_{pun}^{E}$ is penalty cost for wasting electrical power. The second part of Equation (31) indicates that, even when all the controllable electrical power supply equipment operates at the maximum ramping down rate, the equilibrium point of ESI cannot be guaranteed, which will waste part of the electrical power.

$${C}_{d,t}^{E}=\{\begin{array}{l}{\displaystyle \sum _{i=1}^{{N}^{E}}\left[{C}_{i,t}^{E}({P}_{i,t}-{\delta}_{i,t}^{E})-{C}_{i,t}^{E}({P}_{i,t})-{K}_{i}^{E}{\delta}_{i,t}^{E}+{c}_{T,i}^{E}{\delta}_{i,t}^{E}\right]},\hspace{1em}{\delta}_{d,t}^{E}\le {\displaystyle \sum _{i=1}^{{N}^{E}}{r}_{d,i}^{E}\Delta t}\\ {\displaystyle \sum _{i=1}^{{N}^{E}}\left[{C}_{i,t}^{E}({P}_{i,t}-{r}_{d,i}^{E})-{C}_{i,t}^{E}({P}_{i,t})-{K}_{i}^{E}{r}_{d,i}^{E}+{c}_{T,i}^{E}{r}_{d,i}^{E}\right]}+{c}_{pun}^{E}\Delta {P}_{was,t},\hspace{1em}{\delta}_{d,t}^{E}\ge {\displaystyle \sum _{i=1}^{{N}^{E}}{r}_{d,i}^{E}\Delta t}\end{array}$$

The underestimated electrical power is noted as follow:

$${\delta}_{d,t}^{E}=[{\displaystyle \sum _{i=1}^{{N}^{E}}{P}_{i,t}}+{P}_{line,t}+{\displaystyle \sum _{i=1}^{{N}^{PV}}({P}_{PV,t}+{\delta}_{PV,t})}+{\displaystyle \sum _{i=1}^{{N}^{WT}}({P}_{WT,t}+{\delta}_{WT,t})}]-({P}_{L,t}+{\delta}_{L,t}^{E})$$

The wasted electrical power is described as follow:

$$\Delta {P}_{was,t}={\delta}_{d,t}^{E}-{\displaystyle \sum _{i=1}^{{N}^{E}}{r}_{d,i}^{E}\Delta t}$$

#### Underestimated Cost for Heat

Underestimated cost for thermal subsystem can be described as follows:
where ${C}_{d,t}^{H}$ is the underestimated cost; ${r}_{d,i}^{H}$ is the climbing down rate; ${\delta}_{h,t}^{H}$ is the underestimated heat in the t period; and ${c}_{pun}^{E}$ is penalty cost for wasting thermal power. The second part of Equation (34) indicates that, even when all the controllable thermal power supply equipment operates at the maximum ramping down rate, the equilibrium point of ESI cannot be guaranteed, which will waste part of the thermal power.

$${C}_{d,t}^{H}=\{\begin{array}{l}{\displaystyle \sum _{i=1}^{{N}^{H}}\left[{C}_{i,t}^{H}({\Phi}_{i,t}-{\delta}_{i,t}^{H})-{C}_{i,t}^{H}({\Phi}_{i,t})-{K}_{i}^{H}{\delta}_{i,t}^{H}+{c}_{T,i}^{H}{\delta}_{i,t}^{H}\right]},\hspace{1em}{\delta}_{d,t}^{H}\le {\displaystyle \sum _{i=1}^{{N}^{H}}{r}_{d,i}^{H}\Delta t}\\ {\displaystyle \sum _{i=1}^{{N}^{H}}\left[{C}_{i,t}^{H}({\Phi}_{i,t}-{r}_{i,t}^{H})-{C}_{i,t}^{H}({\Phi}_{i,t})-{K}_{i}^{H}{r}_{d,i}^{H}+{c}_{T,i}^{H}{r}_{d,i}^{H}\right]}+{c}_{pun}^{H}\Delta {\Phi}_{was,t},\hspace{1em}{\delta}_{d,t}^{H}\ge {\displaystyle \sum _{i=1}^{{N}^{H}}{r}_{d,i}^{H}\Delta t}\end{array}$$

The underestimated thermal power is demonstrated as follow:

$${\delta}_{h,t}^{H}={\displaystyle \sum _{i=1}^{{N}^{H}}{\Phi}_{i,t}}-({\Phi}_{L,t}+{\delta}_{L,t}^{H})$$

The wasting heat is noted as follow:

$$\Delta {\Phi}_{was,t}={\delta}_{d,t}^{H}-{\displaystyle \sum _{i=1}^{{N}^{H}}{r}_{d,i}^{H}\Delta t}$$

#### 3.2.3. Total Cost

The total risk cost of the ESI economic dispatching in the t-th period is the sum of overestimated cost and underestimated cost:
where ${u}_{t}^{E}$ and ${u}_{t}^{H}$ are 0–1 variables; ${u}_{t}^{E}=1$ and ${u}_{t}^{H}=1$ indicate that overestimated cost of electrical power and thermal power supply will be incurred by the ESI operation, while ${u}_{t}^{E}=0$ and ${u}_{t}^{H}=0$ indicates that underestimated cost of electrical and thermal power supply will be incurred by the ESI operation.

$${C}_{\delta ,t}({P}_{i,t},{\delta}_{i,t}^{E},{\Phi}_{i,t},{\delta}_{i,t}^{H})={u}_{t}^{E}{C}_{h,t}^{E}+(1-{u}_{t}^{E}){C}_{d,t}^{E}+{u}_{t}^{H}{C}_{h,t}^{H}+(1-{u}_{t}^{H}){C}_{d,t}^{H}$$

Based on the analysis above, the total operating cost of the ESI in the s-th scenario for the entire T period can be calculated as follows
where the first and second terms of the equation are the operation cost of power supply equipment and heating equipment in ESI in the case of the planned output, respectively; and M(P

$$\begin{array}{l}{f}_{s}({P}_{i,t},{\delta}_{i,t,s}^{E},{\Phi}_{i,t},{\delta}_{i,t,s}^{H},{P}_{line,t},{\delta}_{line,t,s})\\ \hspace{1em}={\displaystyle \sum _{t=1}^{T}\begin{array}{l}[{\displaystyle \sum _{i=1}^{{N}^{E}}({C}_{i,t}^{E}({P}_{i,t})+M({P}_{i,t}))}+{\displaystyle \sum _{i=1}^{{N}^{H}}({C}_{i,t}^{H}({\Phi}_{i,t})}+M({\Phi}_{i,t}))+{C}_{\delta ,t}({P}_{i,t},{\delta}_{i,t,s}^{E},{\Phi}_{i,t},{\delta}_{i,t,s}^{H})\\ +{C}_{line,t}({P}_{line,t},{\delta}_{line,t,s})]\end{array}}\end{array}$$

_{i,t}) = ${K}_{i}^{E}$P_{i,t}and M(P_{i,t}) = ${K}_{i}^{E}$Φ_{i,t}are maintenance cost for the corresponding device. The third term of Equation (38) represents risk cost of ESI. The fourth item is the cost for electrical flow interaction between ESI and utility grid. ${P}_{i,t}$, ${\Phi}_{i,t}$ and ${P}_{line,t}$ without subscript variable s are the planned power output of controlled energy supply equipment. ${\delta}_{i,t,s}^{E}$, ${\delta}_{i,t,s}^{H}$ and ${\delta}_{line,t,s}$ with the subscript variable s are the actual adjustment output of the controllable energy supply equipment in the s-th scenario.#### 3.3. Objective and Constraint of ESI Economic Dispatch

#### 3.3.1. Objective Function

Total ESI operational cost based on CVaR is selected as the optimization objective to set up the economic dispatch model. Based on the theory of CVaR mentioned in Section 3.1, the formulation of the objective function can be presented as follow:

$$\begin{array}{l}F({P}_{i,t},{\delta}_{i,t,s}^{E},{\Phi}_{i,t},{\delta}_{i,t,s}^{H},{P}_{line,t},{\delta}_{line,t,s},z)\text{\hspace{0.17em}}\\ \hspace{1em}=z+\frac{1}{1-\beta}{\displaystyle \sum _{s=1}^{{N}_{s}}P{r}_{s}{[{f}_{s}({P}_{i,t},{\delta}_{i,t,s}^{E},{\Phi}_{i,t},{\delta}_{i,t,s}^{H},{P}_{line,t},{\delta}_{line,t,s})-z]}^{+}}\end{array}$$

#### 3.3.2. Constraint Conditions

#### The Upper and Lower Bound of Energy Supply Equipment Output

$$\{\begin{array}{l}{U}_{i,t}^{E}\cdot {P}_{i,\mathrm{min}}\le {P}_{i,t}\le {U}_{i,t}^{E}\cdot {P}_{i,\mathrm{max}}\\ {U}_{i,t}^{E}\cdot {P}_{i,\mathrm{min}}\le {P}_{i,t}+{\delta}_{i,t,s}^{E}\le {U}_{i,t}^{E}\cdot {P}_{i,\mathrm{max}}\\ {U}_{i,t}^{H}\cdot {\Phi}_{i,\mathrm{min}}\le {\Phi}_{i,t}\le {U}_{i,t}^{H}\cdot {\Phi}_{i,\mathrm{max}}\\ {U}_{i,t}^{H}\cdot {\Phi}_{i,\mathrm{min}}\le {\Phi}_{i,t}+{\delta}_{i,t,s}^{H}\le {U}_{i,t}^{H}\cdot {\Phi}_{i,\mathrm{max}}\end{array}$$

#### Power Balance Constraints

ESI operation should meet the requirement of balance on electrical power, thermal power and natural gas flow at any time:
where $\Delta {p}_{t,s}$ and $\Delta {\varphi}_{t,s}$ are power loss of electrical network and thermal network in the t-th period, respectively; f

$$\begin{array}{c}{\displaystyle \sum _{i=1}^{{N}^{E}}({P}_{i,t}+{\delta}_{i,t,s}^{E})}+({P}_{line,t}+{\delta}_{line,t})+{\displaystyle \sum _{i=1}^{{N}^{PV}}({P}_{PV,t}+{\delta}_{PV,t,s})}+{\displaystyle \sum _{i=1}^{{N}^{WT}}({P}_{WT,t}+{\delta}_{WT,t,s})}+\Delta {P}_{loss,t,s}+\Delta {p}_{t,s}\\ =({P}_{L,t}+{\delta}_{L,t,s}^{E})\end{array}$$

$$\sum _{i=1}^{{N}^{H}}({\Phi}_{i,t}+{\delta}_{i,t,s}^{H})}+\Delta {\Phi}_{loss,t,s}+\Delta {\varphi}_{t,s}=({\Phi}_{L,t}+{\delta}_{L,t,s}^{H})$$

$${f}_{source,t}={\displaystyle \sum _{i=1}^{{N}_{e}}({f}_{i,t}+{\delta}_{i,t}^{g})}$$

_{source,t}is the total amount of natural gas consumption of ESI in the t-th period; N_{e}is the number of power supply device using natural gas as primary energy; f_{i,t}is the amount of natural gas consumed by the i-th equipment in the t-th period; and ${\delta}_{i,t}^{g}$ is the variation of natural gas consumption due to the output adjustment of the energy supply equipment.#### Tie-Line Power Constraints

The exchange power of tie-line between the ESI and utility grid should meet the upper and lower bounds:
where P

$$\{\begin{array}{l}{P}_{line,\mathrm{min}}\le {P}_{line,t}\le {P}_{line,\mathrm{max}}\\ {P}_{line,\mathrm{min}}\le {P}_{line,t}+{\delta}_{line,t,s}\le {P}_{line,\mathrm{max}}\end{array}$$

_{line,max}and P_{line,min}are the power upper and lower bounds for exchange power of tie-line between the ESI and utility grid.#### Ramping Rate Constraints

The output variation of electrical power and thermal supply device needs to meet the ramping up rate and ramping down rate constraints:
where ${r}_{u,i}^{E}$ and ${r}_{d,i}^{E}$ are ramping up rate and ramping down rate of the electrical power supply device, respectively; and ${r}_{u,i}^{H}$ and ${r}_{d,i}^{H}$ are ramping up rate and ramping down rate of the thermal supply device, respectively.

$$\{\begin{array}{l}-{r}_{d,i}^{E}\Delta t\le {P}_{i,t}-{P}_{i,t-1}\le {r}_{u,i}^{E}\Delta t\\ -{r}_{d,i}^{E}\Delta t\le ({P}_{i,t}+{\delta}_{i,t,s}^{E})-({P}_{i,t-1}+{\delta}_{i,t-1,s}^{E})\le {r}_{u,i}^{E}\Delta t\\ -{r}_{d,i}^{H}\Delta t\le {\Phi}_{i,t}-{\Phi}_{i,t-1}\le {r}_{u,i}^{H}\Delta t\\ -{r}_{d,i}^{H}\Delta t\le ({\Phi}_{i,t}+{\delta}_{i,t,s}^{H})-({\Phi}_{i,t-1}+{\delta}_{i,t-1,s}^{H})\le {r}_{u,i}^{H}\Delta t\end{array}$$

#### Multi-Energy Flow Constraints

The state variables and control variables of each line, pipeline and node which belong to the electrical power subsystem, thermal subsystem and natural gas subsystem should meet the constraints of multi-energy flow. Details can be found in Reference [29].

#### System State Variables Constraints

To ensure the ESI operates in the safe zone, state variables
where ${\mathit{x}}_{t,s}$ is the state vector of the system in the s-th scenarios at the t-th $(t=1,\text{\hspace{0.17em}}2,\cdots ,\text{\hspace{0.17em}}T)$ period; and ${\mathit{x}}_{\mathrm{min}}$ and ${\mathit{x}}_{\mathrm{max}}$ are the column vectors for each state lower and upper bounds. Details can be found in Reference [29].

**x**= [**θ**,**V**,**m**,**T**_{s,load},**T**_{r,load},**Π**]^{T}in the power subsystem, thermal subsystem and natural gas subsystem should be in the specified range,
$${\mathit{x}}_{\mathrm{min}}\le {\mathit{x}}_{t,s}\le {\mathit{x}}_{\mathrm{max}}$$

#### 3.4. Solving Algorithm

The CVaR based ESI economic scheduling model is concerned to a hybrid optimization design problem with a large number of disperse and continuous variables. This nonlinear mixed integer programming problem requires considerable calculations and storage resources, which is complex to solve without comprehensively analyzing the relationship between the variables and the model. Therefore, given that characteristic of different algorithms, we deploy a bi-level optimization model [28] that combines particle swarm optimization (PSO) approach [30] with interior point (IP) method [31].

In this paper, the particle swarm optimization algorithm is used to solve the sub problem of upper level, and the interior point method is used to solve the sub problems of lower level, the optimal solution can be obtained by the constant iteration of the upper level and the lower level until the variation of error is less than the mismatch tolerance. Furthermore, for the system control variables and the state variables in the optimization model, when the control variables are fixed in iterative process, the state variables can be determined by multi-energy flow calculation algorithm mentioned in Reference [31], which analyzes the flow of various energy systems jointly based on extended Newton–Raphson algorithm. This method can significantly reduce the number of unknown variables and simplify model complexity.

**X**represents the variables that are independent of the uncertain scenarios, including the planning output of each device and z,

**X**

_{s}represents the variables related to the uncertain scenarios, which is the adjusted output of controllable energy supply equipment in each scenario. The optimization model based on CVaR is shown as Equation (47).

$$\begin{array}{l}\mathrm{min}\text{\hspace{0.17em}}F(\mathit{X},{\mathit{X}}_{s})=e(\mathit{X})+\frac{1}{1-\beta}{\displaystyle \sum _{s=1}^{{N}_{s}}{\mathrm{Pr}}_{s}\cdot {[{f}_{s}(\mathit{X},{\mathit{X}}_{s})-e(\mathit{X})]}^{+}}\\ s.t.\hspace{1em}\{\begin{array}{l}h(\mathit{X})=0\\ {h}_{s}(\mathit{X},{\mathit{X}}_{s})=0,\hspace{1em}s=1,\text{\hspace{0.17em}}2,\cdots ,\text{\hspace{0.17em}}{N}_{s}\\ g(\mathit{X})\le 0\\ {g}_{s}(\mathit{X},{\mathit{X}}_{s})\le 0\hspace{1em}s=1,\text{\hspace{0.17em}}2,\cdots ,\text{\hspace{0.17em}}{N}_{s}\end{array}\end{array}$$

In the simplified form of optimization model, the value of ${\mathit{X}}_{s}$ only has impact on the corresponding ${f}_{s}(\mathit{X},{\mathit{X}}_{s})$ solely, but $\mathit{X}$ has impacts on ${f}_{s}(\mathit{X},{\mathit{X}}_{s})$ and $F(\mathit{X},{\mathit{X}}_{s})$. In addition, we can see that ${f}_{s}(\mathit{X},{\mathit{X}}_{s})-e(\mathit{X})$ and ${f}_{s}(\mathit{X},{\mathit{X}}_{s})$ have positive correlation, both ${\mathrm{Pr}}_{s}$ and $1/(1-\beta )$ are positive numbers. Thus, the objective function $F(\mathit{X},{\mathit{X}}_{s})$ and ${f}_{s}(\mathit{X},{\mathit{X}}_{s})$ are positively correlated. Therefore, to get the minimum value of the objective function $F(\mathit{X},{\mathit{X}}_{s})$, the minimum value of function ${f}_{s}(\mathit{X},{\mathit{X}}_{s})$ can be obtained by adjusting ${\mathit{X}}_{s}$, when $\mathit{X}$ is fixed.

According to the above analysis, the bi-level optimization model is described as follows:

#### Upper Level Optimization Model

$$\begin{array}{l}\mathrm{min}\hspace{1em}F({P}_{i,t},{\delta}_{i,t,s}^{E},{\Phi}_{i,t},{\delta}_{i,t,s}^{H},{P}_{line,t},{\delta}_{line,t,s},z)\\ \hspace{1em}\hspace{1em}=z+\frac{1}{1-\beta}{\displaystyle \sum _{s=1}^{{N}_{s}}{\mathrm{Pr}}_{s}{[{f}_{s}({P}_{i,t},{\delta}_{i,t,s}^{E},{\Phi}_{i,t},{\delta}_{i,t,s}^{H},{P}_{line,t},{\delta}_{line,t,s})-z]}^{+}}\\ s.t.\hspace{1em}(40),(44),(45)\end{array}$$

The multi-energy flow in the upper level optimization model is calculated by the extended Newton–Raphson algorithm [31].

#### Lower Level Optimization Model

The lower level optimization model contains ${N}_{s}$ sub-problems, and the objective function and constraints of the s-th (s = 1, 2,⋯, N

_{s}) sub-problem are shown as follows:
$$\begin{array}{l}\mathrm{min}\hspace{1em}{f}_{s}({P}_{i,t},{\delta}_{i,t,s}^{E},{\Phi}_{i,t},{\delta}_{i,t,s}^{H},{P}_{line,t},{\delta}_{line,t,s})\\ \hspace{1em}\hspace{1em}={\displaystyle \sum _{t=1}^{T}\begin{array}{l}[{\displaystyle \sum _{i=1}^{{N}^{E}}({C}_{i,t}^{E}({P}_{i,t})+M({P}_{i,t}))}+{\displaystyle \sum _{i=1}^{{N}^{H}}({C}_{i,t}^{H}({\Phi}_{i,t})}+M({\Phi}_{i,t}))\\ +{C}_{\delta ,t}({P}_{i,t},{\delta}_{i,t,s}^{E},{\Phi}_{i,t},{\delta}_{i,t,s}^{H})+{C}_{line,t}({P}_{line,t},{\delta}_{line,t,s})]\end{array}}\text{\hspace{0.17em}}\\ s.t.\hspace{1em}\hspace{1em}(40),(41),(43),(44),(45),(45)\end{array}$$

Besides the constraints mentioned above, the inequalities and equality constraints in Ref. [31] are also included in constraints.

The flowchart of hybrid algorithm is illustrated in Figure 3.

## 4. Case Study

The suitability of the proposed approach for conducting CVaR based economic dispatch studies was tested on the system network shown in Figure 4. EBi, HBi and GBi served as the nodes of the power, thermal, and gas systems, respectively. A gas compressor was installed in the gas subsystem to ensure pressure and gas supply. The electrical power subsystem is connected to the utility grid via the node EB12. PV with rated power of 160 kWp and 240 kWp is installed at nodes EB3 and EB8, and WT with rated power 1000 kW is installed at node EB4. CHP unit works in the following the electric load (FEL) model. The forecasting values of PV, WT, electrical load and heat load in each period are demonstrated in Figure 5 and Figure 6. The parameters of power supply equipment in ESI are shown in Appendix A. The power factor of each electric load node is 0.9. Assuming that the forecasting errors of PV and WT are subject to the normal distribution with variance of $\sigma =10\%\mu $ and $\sigma =15\%\mu $, respectively, the forecasting errors of the electrical load and thermal load are both subject to the normal distribution with variance of $\sigma =5\%\mu $, respectively.

The time of use share price (TOU) for the electrical power exchange between the ESI and the external utility grid is demonstrated in Table 1. The price of natural gas is 2.51 Yuan/m

^{3}. The adjustment cost of the electrical power supply facility is 0.52 Yuan/kW. The adjustment cost of the thermal power supply facility is 0.42 Yuan/kW. The compensation cost for interrupting electrical loads and thermal loads are 0.612 Yuan/kWh and 0.452 Yuan/kWh, respectively. The penalty cost for wasting electrical power and thermal power are 0.32 Yuan/kWh and 0.22 Yuan/kWh, respectively. For line constants of the ESI, refer to Appendix B.The dispatching period is $T=24\text{}\mathrm{h}$, time interval is $\Delta t=1\text{}\mathrm{h}$. Most of the experiments could be completed on machine with a Core i7 central processing unit and 8 GB of memory using the 2014a MATLAB environment.

#### 4.1. Simulation Based on Different Confidence Level

To analyze the influence of confidence level parameter on simulation results, the operating cost of VaR and CVaR under different confidence levels (β = 0.80, 0.85, 0.90, and 0.95) are presented in Figure 7. The output of different energy supply facilities under different confidence levels is shown in Table 1 and the output of energy supply facilities under different confidence levels is shown in Table 2.

Conclusions can be drawn from the simulation results. As the confidence level β increases, VaR and CVaR improve simultaneously, which means the dispatching risk of the ESI is aggregated. When β is increased proportionally, the difference between the VaR and the CVaR is gradually diminished because forecasting error of supply side and demand side are subject to the normal distribution. The potential risk of the energy systems gradually moves to the tail of the normal distribution, which makes the expected value of the corresponding cost increase, while the growth rate slows down. On the other hand, the mathematical model of the energy supply facilities deployed in the risk based economic dispatch possesses nonlinear characteristics, and the output variation of energy supply equipment presents no obvious regularity.

#### 4.2. The Influence of Multi-Energy Flow Constraints on Simulation Results

The multi-energy flow constraints, which include the line, branch or pipeline limits of each subsystem, have been taken into account. To further analyze the influence of multi-energy flow constraints on simulation results, in the selected Ns scenario, we track the dynamic variation of essential variables during the dispatching process. The maximum and minimum value of voltage, temperature, and pressure, which belong to different subsystems, under different confidence levels, are illustrated in Figure 8, Figure 9 and Figure 10.

In Figure 8, Figure 9 and Figure 10, we can see that the nodal voltage of electricity subsystem, the temperature of thermal subsystem and the nodal pressure of natural gas subsystem are within the allowable range no matter in which confidence level. Compared with the conventional dispatching model based on CVaR, which neglects constraints of multi-energy flow, the proposed approach enables that ESI operates in the safe zone considerably, which can effectively eliminate the violated limit phenomenon and provide a reference for operator to control the system state of each node.

#### 4.3. The Influence of Equipment Adjustment Cost on Simulation Results

For the sake of testing the influence of adjustment on simulation results, we define ${c}_{T0}$ as the original adjustment cost of energy supply equipment for per unit power. When ${c}_{T}$ are set as 0.25 times, 0.5 times, 0.75 times, 1.25 times and 1.75 times ${c}_{T0}$ under the condition that β = 0.90, the variation of the operating cost expectation value E, VaR and CVaR is presented in Figure 11.

In Figure 11, we can see that the distribution of the total operating cost is affected by ${c}_{T}$: as ${c}_{T}$ increases, the expected value of the total operating cost E varies very limited. On the contrary, both VaR and CVaR decrease sharply, which means the scheduling risk of energy systems decreases at this time. Given these simulation results, EMS can effectively make corresponding decisions to reduce the risk cost.

#### 4.4. Convergence Analysis

To further illustrate the convergence of hybrid optimization algorithm based on PSO and IP for solving the proposed model, the convergence curves under the confidence levels β = 0.80, 0.85, 0.90, and 0.95 are demonstrated in Figure 12. We can see that the four groups of curves can converge effectively after 200 iterations, and the optimal solutions are obtained.

## 5. Conclusions

A CVaR-based optimization algorithm for energy management problem of ESI in the presence of uncertainty on energy demand and supply side was proposed in the paper, which has fully considered the constraints of electrical network, thermal network and natural gas network. Risk cost, including overestimated risk cost and underestimated risk cost, has been clearly analyzed according to practical demand. A bi-level optimization method based on the fast particle swarm algorithm and interior point method is used to solve ESI model.

Through a case study, we can see the CVaR method can well evaluate the risk level of the ESI dispatching problem, which effectively avoids economic losses caused by the uncertain factors. As the confidence level increases, the scheduling risk increases accordingly. Furthermore, multiple constraints considering electricity, heat and gas flow ensure the system operation safely, which has more significance on theory and engineering. The hybrid optimization algorithm we deployed has good convergence property.

## Acknowledgments

This work was supported by Fundamental Research Funds for the Central Universities (2016XS10), National Natural Science Foundation of China (51507061) and Development of international standards for power grid technology (201510207-3).

## Author Contributions

Jiaqi Shi and Yingrui Wang designed the study; Jiaqi Shi and Ruibin Fu performed the experiments and wrote the paper; and Jianhua Zhang reviewed and edited the manuscript. All authors read and approved the manuscript.

## Conflicts of Interest

The authors declare no conflict of interest.

## Appendix A

Equipment Name | Minimum Power Output (kW) | Maximum Power Output (kW) | Ramping up Rate (kW/min) | Ramping down Rate (kW/min) | Maintenance Cost (Yuan/kW) |
---|---|---|---|---|---|

CHP | 5 | 130 | 5 | 10 | 0.0149 |

FC | 10 | 200 | 10 | 10 | 0.009 |

GSHP | 0 | 200 | 5 | 5 | 0.0311 |

GB | 100 | 1500 | 5 | 6 | 0.025 |

Utility grid | −600 | 600 | - | - | - |

## Appendix B

Direction of Line | Length (m) | Direction of Line | Length (m) |
---|---|---|---|

12–2 | 50 | 2–10 | 50 |

2–3 | 130 | 8–9 | 100 |

3–4 | 100 | 10–9 | 100 |

4–5 | 100 | 11–10 | 100 |

3–6 | 100 | 1–11 | 50 |

7–6 | 100 | - | - |

Direction of Pipeline | Length (m) | Diameter (mm) | Direction of Pipeline | Length (m) | Diameter (mm) |
---|---|---|---|---|---|

4–3 | 50 | 100 | 1–2 | 150 | 100 |

5–3 | 100 | 100 | 7–1 | 100 | 100 |

2–4 | 150 | 100 | 6–4 | 50 | 100 |

Direction of Pipeline | Length (m) | Diameter (mm) | Direction of Pipeline | Length (m) | Diameter (mm) |
---|---|---|---|---|---|

1–2 | 100 | 200 | 3–4 | 100 | 200 |

2–3 | 300 | 200 | 3–5 | 350 | 200 |

## References

- Rifkin, J. The Third Industrial Revolution; Zhang, T.W., Sun, Y.L., Eds.; CITIC Press: Beijing, China, 2012. [Google Scholar]
- Shiming, T.; Wenpeng, L.; Dongxia, Z.; Caihao, L.; Yaojie, S. Technical Forms and Key Technologies on Energy Internet. Proc. CSEE
**2015**, 35, 3482–3494. [Google Scholar] - Sun, Q.; Wang, B.; Huang, B.; Ma, D. The Optimization Control and Implementation for the Special Energy Internet. Proc. CSEE
**2015**, 35, 4571–4580. [Google Scholar] - Parisio, A.; Vecchio, C.D.; Vaccaro, A. A robust optimization approach to energy hub management. Int. J. Electr. Power Energy Syst.
**2012**, 42, 98–104. [Google Scholar] [CrossRef] - Qadrdan, M.; Wu, J.; Jenkins, N.; Ekanayake, J. Operating Strategies for a GB Integrated Gas and Electricity Network Considering the Uncertainty in Wind Power Forecasts. IEEE Trans. Sustain. Energy
**2014**, 5, 128–138. [Google Scholar] [CrossRef] - Alabdulwahab, A.; Abusorrah, A.; Zhang, X.; Shahidehpour, M. Coordination of Interdependent Natural Gas and Electricity Infrastructures for Firming the Variability of Wind Energy in Stochastic Day-Ahead Scheduling. IEEE Trans. Sustain. Energy
**2015**, 6, 606–615. [Google Scholar] [CrossRef] - Bai, L.; Li, F.; Cui, H.; Jiang, T.; Sun, H.; Zhu, J. Interval optimization based operating strategy for gas-electricity integrated energy systems considering demand response and wind uncertainty. Appl. Energy
**2016**, 167, 270–279. [Google Scholar] [CrossRef] - Zhang, X.; Shahidehpour, M.; Alabdulwahab, A.S.; Abusorrah, A. Security-Constrained Co-Optimization Planning of Electricity and Natural Gas Transportation Infrastructures. IEEE Trans. Power Syst.
**2015**, 30, 2984–2993. [Google Scholar] [CrossRef] - Garcia-Bertrand, R. Sale prices setting tool for retailers. IEEE Trans. Smart Grid
**2013**, 4, 2028–2035. [Google Scholar] [CrossRef] - Morales, J.M.; Conejo, A.J.; Perez-Ruiz, J. Short-term trading for a wind power producer. IEEE Trans. Power Syst.
**2010**, 25, 554–564. [Google Scholar] [CrossRef] - Catalao, J.P.S.; Pousinho, H.M.I.; Mendes, V.M.F. Optimal offering strategies for wind power producers considering uncertainty and risk. IEEE Syst. J.
**2012**, 6, 270–277. [Google Scholar] [CrossRef] - Baringo, L.; Conejo, A.J. Risk-constrained multi-stage wind power investment. IEEE Trans. Power Syst.
**2013**, 28, 401–411. [Google Scholar] [CrossRef] - Safdarian, A.; Fotuhi-Firuzabad, M.; Lehtonen, M. A stochastic framework for short-term operation of a distribution company. IEEE Trans. Power Syst.
**2013**, 28, 4712–4721. [Google Scholar] [CrossRef] - Lu, G.; Wen, F.; Chung, C.Y.; Wong, K.P. Conditional value-a trisk based mid-term generation operation planning in electricity market environment. In Proceedings of the IEEE Congress on Evolutionary Computation, Singapore, 25–28 September 2007; pp. 2745–2750. [Google Scholar]
- Zhang, Y.; Giannakis, G.B. Robust optimal power flow with wind integration using conditional value-at-risk. In Proceedings of the IEEE Smart Grid Communications, Vancouver, BC, Canada, 21–24 October 2013; pp. 654–659. [Google Scholar]
- Al-Awami, A.T.; El-Sharkawi, M.A. Coordinated trading of wind and thermal energy. IEEE Trans. Sustain. Energy
**2011**, 2, 277–287. [Google Scholar] [CrossRef] - De la Nieta, A.A.S.; Contreras, J.; Munoz, J.I. Optimal coordinated wind-hydro bidding strategies in day-ahead markets. IEEE Trans. Power Syst.
**2013**, 28, 798–809. [Google Scholar] [CrossRef] - Le, L.I. Study on Economic Operation of Microgrid. Master’s Thesis, North China Electric Power University, Beijing, China, June 2011. [Google Scholar]
- Sharma, S.; Pollet, B.G. Support materials for PEMFC and DMFC electrocatalysts—A review. J. Power Sources
**2012**, 208, 96–119. [Google Scholar] [CrossRef] - Terhan, M.; Comakli, K. Energy and exergy analyses of natural gas-fired boilers in a district heating system. Appl. Therm. Eng.
**2017**, 121, 380–387. [Google Scholar] [CrossRef] - Sivasakthivel, T.; Murugesan, K.; Sahoo, P.K. Optimization of ground heat exchanger parameters of ground source heat pump system for space heating applications. Energy
**2014**, 78, 573–586. [Google Scholar] [CrossRef] - Wang, J.; Shahidehpour, M.; Li, Z. Security-Constrained Unit Commitment with Volatile Wind Power Generation. IEEE Trans. Power Syst.
**2008**, 23, 1319–1327. [Google Scholar] [CrossRef] - Nguyen, D.T.; Le, L.B. Risk-Constrained Profit Maximization for Microgrid Aggregators with Demand Response. IEEE Trans. Smart Grid
**2015**, 6, 135–146. [Google Scholar] [CrossRef] - Gao, Y.; Li, R.; Liang, H.; Zhang, J.; Ran, J.; Zhang, F. Two step optimal dispatch based on multiple scenarios technique considering uncertainties of intermittent distributed generations and loads in the active distribution system. Proc. Chin. Soc. Electr. Eng.
**2015**, 35, 1657–1665. [Google Scholar] - Deng, C.; Ju, L.; Liu, J.; Tan, Z. Stochastic scheduling multi-objective optimization model for hydro-thermal power systems based on fuzzy CVaR theory. Power Syst. Technol.
**2016**, 40, 1447–1454. [Google Scholar] - Uryasev, S. Conditional value-at-risk: Optimization algorithms and applications. In Proceedings of the IEEE Computational Intelligence for Financial Engineering, New York, NY, USA, 28 March 2000; pp. 49–57. [Google Scholar]
- Rockafellar, R.T.; Uryasev, S. Conditional value-at-risk for general loss distributions. J. Bank. Financ.
**2002**, 26, 1443–1471. [Google Scholar] [CrossRef] - Zhang, F.; Duan, Y.; Qiu, J.; Feng, X.-Q. Research on reactive power flow based on particle swarm optimization and interior point method. Power Syst. Prot. Control
**2010**, 38, 11–16. [Google Scholar] - Shi, J.; Wang, L.; Wang, Y.; Zhang, J. Generalized Energy Flow Analysis Considering Electricity Gas and Heat Subsystems in Local-Area Energy Systems Integration. Energies
**2017**, 10, 514. [Google Scholar] [CrossRef] - Liu, B.; Wang, L.; Jin, Y.H. An Effective PSO-Based Memetic Algorithm for Flow Shop Scheduling. IEEE Trans. Syst. Man Cybern. Part B Cybern.
**2007**, 37, 18–27. [Google Scholar] [CrossRef] - Yu, W. Case Analysis and Application of Optimization Algorithm by MATLAB; Tsinghua University Press: Beijing, China, 2015; pp. 174–179. [Google Scholar]

**Figure 3.**The solving process based on particle swarm optimization (PSO) and interior point (IP) method.

**Figure 11.**The influence of energy supply equipment unit power adjustment cost on simulation results.

Name | Peak Period | Normal Period | Valley Period |
---|---|---|---|

Period | 10:00–15:00 18:00–21:00 | 7:00–10:00 15:00–18:00 21:00–23:00 | 23:00–7:00 |

Electricity purchasing price (Yuan/kWh) | 0.83 | 0.49 | 0.17 |

Electricity Selling price (Yuan/kWh) | 0.65 | 0.38 | 0.13 |

β | Electrical Power Output (kWh) | Thermal Power Output (kWh) | |||
---|---|---|---|---|---|

CHP | FC | Grid | GSHP | GB | |

0.80 | 1741.5 | 2759.4 | 2012.1 | 2287.1 | 13,642.0 |

0.85 | 2028.2 | 2527.0 | 1953.1 | 2265.9 | 13,291.0 |

0.90 | 1607.8 | 2727.7 | 2336.0 | 3000.4 | 13,103.0 |

0.95 | 1738.0 | 2091.0 | 2831.1 | 2949.0 | 12,985.0 |

© 2017 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).