Next Article in Journal
Application of the Double Diode Model of Photovoltaic Cells for Simulation Studies on the Impact of Partial Shading of Silicon Photovoltaic Modules on the Waveforms of Their Current–Voltage Characteristic
Next Article in Special Issue
Optimal Sizing and Operation of Electric and Thermal Storage in a Net Zero Multi Energy System
Previous Article in Journal
Enhanced Tight Oil Recovery by Volume Fracturing in Chang 7 Reservoir: Experimental Study and Field Practice
Previous Article in Special Issue
Optimal Sizing Procedure for Electric Vehicle Supply Infrastructure Based on DC Microgrid with Station Commitment
Open AccessArticle

Robust Optimization of Energy Hubs Operation Based on Extended Affine Arithmetic

Department of Engineering (DING), University of Sannio, Piazza Roma, 21, 82100 Benevento, Italy
Department of Electrical and Energy Engineering, University of Cantabria, Avda. Los Castros s/n, 39005 Santander, Spain
Author to whom correspondence should be addressed.
Energies 2019, 12(12), 2420;
Received: 27 May 2019 / Revised: 14 June 2019 / Accepted: 19 June 2019 / Published: 24 June 2019
(This article belongs to the Special Issue Optimization of Multicarrier Energy Systems)


Traditional energy systems were planned and operated independently, but the diffusion of distributed and renewable energy systems led to the development of new modeling concepts, such as the energy hub. The energy hub is an integrated paradigm, based on the challenging idea of multi-carrier energy systems, in which multiple inputs are conditioned, converted and stored in order to satisfy different types of energy demand. To solve the energy hub optimal scheduling problem, uncertainty sources, such as renewable energy production, price volatility and load demand, must be properly considered. This paper proposes a novel methodology, based on extended Affine Arithmetic, which enables the solving of the optimal scheduling problem in the presence of multiple and heterogeneous uncertainty sources. Realistic case studies are presented and discussed in order to show the effectiveness of the proposed methodology.
Keywords: power systems; energy hub; Affine Arithmetic; energy efficiency; multi carrier energy systems; optimal scheduling power systems; energy hub; Affine Arithmetic; energy efficiency; multi carrier energy systems; optimal scheduling

1. Introduction

Modern energy systems are facing new and challenging issues, which are mainly related to the ever-increasing energy demand, the large uncertainties affecting modern power system operation, the need for increasing grid resilience to catastrophic events and the strict requirements defined by new environmental and climate policies.
Driven by these challenges, power systems underwent an historical change from a centralized architecture, where energy was produced mainly by large thermal power plants, to a distributed system, with the massive deployment of renewable power generators and decentralized energy resources, such as Combined Heating and Power (CHP), energy storage, plug-in hybrid electric vehicles, and tri-generation systems [1].
The large-scale pervasion of these technologies in existing energy systems required a novel holistic framework aimed at modeling and operating heterogeneous energy infrastructures and multiple energy carriers in an integrated and coordinated way, rather than considering them as separate and independent systems characterized by their own state variables [2]. In this context, the concept of energy loads should also evolve from pure passive entities, which could only receive energy, to dynamic and cooperative entities that are capable of providing flexibility services to the available energy systems [3].
The most promising technologies aimed at enabling this evolution include the energy hub, which is a functional unit where multi-energy carriers can be conditioned, stored and converted, and the energy interconnectors, which are transmission elements that can carry multiple simultaneous energy flows throughout different nodes. The conceptualization of these elements, which generalizes the concepts of nodes and edges of multi-carrier energy networks, allows the modeling of different technologies characterized by different levels of complexity, for a variety of applications [4].
In particular, an energy hub consists of a network of interconnected energy converters and storage systems, which aim at processing the input energy carriers (e.g., electric energy, gas, and district heating) in order to supply electrical, thermal and chemical loads. Different hub architectures, which are based on proper combinations of Combined Heating and Power (CHP), Electric or Gas Heat Pumps (EHP/GHP), fuel cells, and boilers, have been proposed in the literature, and deployed for bottom-up modeling, for example, in designing multi-agent energy systems, or top-down applications, for example, in addressing optimal energy flow analyses or real-time pricing schemes [5,6]. Various contexts and scales have been considered: References [7,8,9] focus on residential hubs, References [10,11] describe the application of the concept to wider communities, while Reference [12] focuses on large-scale networks.
Although these studies demonstrated that energy hubs can offer increased flexibilities in solving complex planning and operation energy problems, some open problems need to be addressed in order to fully exploit these benefits. In this context, one of the most critical problems is their economic assessment, which can refer to both operation scheduling, that is, optimal hub dispatch, and planning, that is, optimal hub sizing. Such problems are traditionally formulated as deterministic constrained optimization problems, the aim of which is to minimize costs, considering the technical feasibility of the solutions obtained [2,13,14,15]. Anyway, these formulations do not consider the effects of the heterogeneous uncertainties affecting some strategic input data, such as the volatility of energy costs, random load fluctuations, energy production from renewable sources and non-idealities related to the elements of an energy hub, which could sensibly affect the robustness of the obtained solutions. Hence, advanced methodologies aimed at solving uncertain optimization problems are required to identify effective and robust energy hub operation strategies [16,17,18,19,20].
To solve this challenging problem, the adoption of stochastic optimization methods, based on both sampling and analytical techniques, has been proposed in the literature [21,22,23,24]. Although these methods allow insight into energy hub optimization problems and making more reliable decisions in complex situations, their deployment in realistic operation scenario is not immune from drawbacks and shortcomings. In particular, sampling-based methods may require a set of simulations extremely large, requiring prohibitively expensive computational burden, especially in the presence of many uncertainty sources [25]. Analytical techniques, instead, are more efficient but in order to be used properly, they need a series of simplifying assumptions and the characterization of random variables in terms of their probability distribution. Such data is not always available to decision makers and the adoption of partial information in terms of probability distributions may lead to unrealistic results.
To overcome these limitations, more sophisticated techniques for uncertainty modeling based on the self-validating computing theory have been recently proposed in several papers [26,27]. The main idea inside these techniques is to represent the decision variables of the optimization problem by affine combinations of some primitive uncertain variables, which describe the main sources of uncertainty affecting the energy hub operation state [28]. The adoption of this computing paradigm allows solving the optimal dispatch problem by considering the effects of multiple and heterogeneous uncertainty sources, as far as to assess the impacts of each one of them on the energy hub operation state, overcoming the dependency problem and the wrapping effect, which could lead to an excessive over-conservatism of the solutions [29,30]. Despite these benefits, the adoption of Affine Arithmetic (AA)-based computing in energy-hub operation optimization is in its infancy and several problems need to be fixed in order to further improve the effectiveness of these solution-based approaches. In this domain, one of the most challenging issue to address relies on the large number of new noise symbols generated by the non-linear AA-based operators to represent the endogenous uncertainties. A strategy frequently adopted to reduce these noise symbols, and the corresponding uncertainty level, is to compact the non-primitive noise symbols in a new single one, the partial deviation of which is the sum of the reduced partial deviations [31]: this approximation simplifies the computations, reducing the complexity and the memory requirements of the solution algorithm at the expense of a loss of correlation and estimation accuracy.
The need to preserve high-order correlation in non-linear AA-based operations represents an important issue to address in solving the energy-hub operation scheduling problem, where the non-linearities of both the objective function and the system constraints involve multiplication chains, which tend to absorb the variable correlations. To solve this problem, this paper proposes the adoption of mathematical operators based on general quadratic forms, which are an extension of AA that keep track of second-order noise symbols dependency. The adoption of this computing paradigm allows solving the energy hub optimal scheduling problem satisfying the genericity and self-verification requirements, which dictate that the final result of each mathematical operation on affine forms include the exact solution without requiring a posteriori analyses. Detailed simulation studies developed on realistic case studies are presented and discussed in order to prove the effectiveness of the proposed methods.
The paper is organized as follows: Section 2 describes the energy hub model and the problem formulation for the economic dispatch; Section 3 introduces the extended Affine Arithmetic-based solution method; Section 4 presents a realistic case study on the economic dispatch of an energy hub using extended Affine Arithmetic; and the last Section is devoted to the conclusions and discussion of possible further work.

2. The Energy Hub and the Optimal Dispatch Problem

2.1. Energy Hub

An energy hub can be represented as an open system, with multiple inputs and multiple outputs and consisting of several technologies capable of converting input energy carriers in the required output form.
A general model, considering a steady state system, is represented in Figure 1.
It consists of a series of input energy carriers: E = [ E 1 , E 2 , ... , E N ] , a series of loads L = [ L 1 , L 2 , ... , L M ] and various converting technologies represented by a value of energy conversion efficiency c n , m . Input i is connected to output j by the following relation:
L j = c i , j E i
Considering an entire energy hub, the aforementioned relation can be written in matrix form, as a set of linear equations:
L 1 L 2 L M = c 1 , 1 c 1 , 2 c 1 , M c 2 , 1 c 2 , 2 c 2 , M c N , 1 c N , 2 c N , M E 1 E 2 E N
The matrix of conversion coefficients can be called the coupling matrix C: its elements, c i , j are zero, if input i is not correlated to output j, or equal to the conversion efficiency of a single device or a proper combination of the efficiencies of multiple devices in case input i and output j are connected. The model can be easily extended to take into account energy storage systems, as described in Reference [8].

2.2. Deterministic Optimal Dispatch

Once the model of an energy hub has been established, a critical problem is how to optimize its operation in order to minimize the operational costs, losses or greenhouse gases emissions.
The problem—referred to as optimal scheduling—can be mathematically formalized by a constrained optimization problem, whose general form is:
min x f ( x ) s . t . g i ( x ) = 0 i = 1 , ... , n g h j ( x ) 0 , j = 1 , ... , n h
The vector x of decision variables, in this particular case, is the optimal dispatch strategy E , while the objective function refers to the criterion chosen to optimize the system.
The equality constraints are linear and they are defined by the model of energy hub previously described:
L = C P
The inequality constraints are related to feasible operating ranges, that is, the minimum and maximum values that are allowable for the decision variables:
E ̲ E E ¯
The deterministic optimal dispatch problem considered does not take into account all the uncertainty sources that appear in a real-scenario setting [32,33]:
  • Energy prices: Electricity and natural gas prices are uncertain. Depending on the considered energy system, they are characterized by different degrees of volatility, which can be estimated [34].
  • Load dynamics: Loads are predictable only with a certain degree of accuracy. Different external factors, such as economic, weather and social aspects, affect their dynamics, thus their behaviour is uncertain.
  • Renewable energy generation: Production from solar and wind power are intrinsically uncertain [35].
Hence, a more robust and reliable formulation should be defined in order to properly manage these uncertainty sources. To address this issue, in this paper a novel approach based on Affine Arithmetic is proposed.

3. Affine Arithmetic

In affine arithmetic, a quantity x ^ is represented by an expression of the form [36]:
x ^ = x 0 + x 1 ε 1 + ... + x n ε n
which is a first-degree polynomial of the variables ε i , which are called noise symbols, that are bounded in the interval [−1, 1], and represent independent sources of uncertainty.
The central value of the affine form x ^ is x 0 , and x i corresponds to a partial deviation from that value due to effect of the i-th uncertainty source.
Linear mappings for affine forms are defined as follows:
x ^ ± y ^ = x 0 ± y 0 + ( x 1 ± y 1 ) ε 1 + ( x 2 ± y 2 ) ε 2 + ... + ( x n ± y n ) ε n
α x ^ = ( α x 0 ) + ( α x 1 ) ε 1 + ( α x 2 ) ε 2 + ... + ( α x n ) ε n α R
x ^ ± λ = ( x 0 ± λ ) + x 1 ε 1 + x 2 ε 2 + ... + x n ε n λ R
In the case of a non-linear function of an affine form f ( x ^ ) , the result cannot be an affine form itself; hence, it is necessary to approximate the function f ( ε 1 , ε 2 , ... , ε N ) over its domain to find an affine form that approximates the function.
f α ( ε 1 , ε 2 , ... , ε N ) = z 0 + z 1 ε 1 + ... z N ε N
In such a case, a new term that takes into account the approximation error must be introduced and the resulting affine form will be:
z ^ = f α ( ε 1 , ε 2 , ... , ε N ) + z N + 1 ε N + 1 = z 0 + z 1 ε 1 + ... z N ε N + z N + 1 ε N + 1
The term z N + 1 ε N + 1 represents the error defined as:
e ( z 0 + z 1 ε 1 + ... + z N ε N ) = f ( ε 1 , ... , ε N ) f α ( ε 1 , ... , ε N )
and z N + 1 R + represents an upper bound for its absolute magnitude. Affine Arithmetic has been successfully applied to different problems in power systems, in order to deal with uncertain data, as explained in [37,38], and it can be applied to energy hubs as well. Rather than approximating the non-linear function by introducing a new noise symbol, the so-called endogenous uncertainty, in this paper an alternative approach is adopted.
The main idea is to generalize the basic notion of the affine form, defined in Equation (5), by introducing the concept of extended affine form, which allows a more accurate description of non linear functions based on products between affine forms. This form can be represented by the following:
z ^ ^ = x ^ · y ^ = x 0 y 0 + i = 1 N ( x i y 0 + y i x 0 ) ε i + i = 1 n x i j = 1 n y j ε i ε j = z 0 + i = 1 N z i ε i + i , j = 1 n z i j ε i j
where the term extended, refers to the presence of the noise symbols ε i j .
The main complexity in dealing with the extended affine forms is that the upper and lower bounds require the solution of a maximization /minimization problem, mainly:
Upper bound:
sup ( x ^ ^ ) = max ε i ( x 0 + i = 1 N x i ε i i , j = 1 N x i , j ε i , j ) 1 ε i 1
Lower bound:
inf ( x ^ ^ ) = min ε i ( x 0 + i = 1 N x i ε i + i , j = 1 N x i , j ε i , j ) 1 ε i 1
r a d ( x ^ ^ ) = sup ( x ^ ^ ) inf ( x ^ ^ ) 2
According to these definitions, the following mathematical operators can be inferred:
Equality operator:
x ^ ^ = y ^ ^ x 0 = y 0 x i = y i i = 1 , ... , N x i j = y i j i , j = 1 , ... , N
Inequality operator:
x ^ ^ y ^ ^ sup ( x ^ ^ ) inf ( y ^ ^ )
Minimization operator:
min x i , x i j x ^ ^ min x i , x i j ( x 0 , r a d ( x ^ ^ ) )
By analysing the last operator, it is worth observing that the minimization of an extended affine form requires the solution of a min-max optimization problem. The nature of the problem describes the risk attitude of the analyst, which can decide to minimize the central value, or the radius, if a reliable solution is required. A direct correlation with the theory of robust optimization can be inferred and will be explored in future papers.
A simple numerical example is provided to illustrate the extended affine arithmetic-based optimization. Consider the following two affine forms as decision variables:
x ^ = x 0 + x 1 ε 1 + x 2 ε 2 y ^ = y 0 + y 1 ε 1 + y 2 ε 2
And z ^ ^ = x ^ y ^ as the optimization function.
The constrained optimization problem to be solved is the following:
min x ^ , y ^ r a d ( z ^ ^ ) s . t . x ^ + y ^ = 20 + 5 ε 1 + 7 ε 2 0 x ^ 20 0 y ^ 10
This problem can be rewritten as a simple deterministic optimization by writing the constraints as:
min x 0 , x 1 , x 2 , y 0 , y 1 , y 2 r a d ( z ^ ^ ) s . t . x 0 + y 0 = 20 x 1 + y 1 = 5 x 2 + y 2 = 7 x 0 + i = 1 2 | x i | 30 y 0 + i = 1 2 | y i | 20 x 0 i = 1 2 | x i | 0 y 0 i = 1 2 | y i | 0
The affine forms that solve the previously described optimization problem are shown in Table 1:
Extended Affine Arithmetic can be used to solve the optimal scheduling problem of an energy hub in the presence of multiple uncertainty sources. As previously explained, three main uncertain input variables are considered in this study, namely energy prices C i , loads demand L j and renewable energy generation E r e n , k , which are expressed by the following affine forms.
C ^ i = C p , 0 + ε C p p = 1 , . . . N L ^ j = L j , 0 + ε L j j = 1 , . . . M E ^ r e n , k = E r e n , k , 0 + ε E r e n , k k = 1 , . . . , P
Once the uncertainty sources are established, decision variables E i can be expressed as the sum of a central value and a series of partial deviations equal to the number of uncertainty sources considered:
E ^ i = E i , 0 + p = 1 N E i , p ε C p + j = 1 M E i , j ε L j + k = 1 P E i , k ε E r e n , k i = 1 , . . . , N
where N is the number of input energy carriers, that is, the decision variables, and thus the number of uncertain costs considered, M is the number of loads and P the renewable energy generators. The total number of uncertainty sources and thus partial deviations of a decision variable in a particular problem is N + P + M .
The total cost, in this case, is an extended affine form with respect to the noise symbols ε i and it is equal to the following expression:
C t o t = i = 1 N C ^ i E ^ i = i = 1 N ( C i , 0 + ε C i ) · ( E i , 0 + p = 1 N E i , p ε C p + j = 1 M E i , j ε L j + k = 1 P E i , k ε E r e n , k )
When formulating an optimization problem, different criteria can be chosen depending on the risk attitude of the analyst. A reliable solution can be found by minimizing the radius of C t o t , that is, by finding the decision variables E i ^ that minimize its upper value with respect to every ε i , where the upper value can be found by solving a sub-level optimization problem with respect to ε . In this case, the decision variables will be affine forms E i ^ , thus, in the optimization problem, the values to be found will be N + N Q : E = { E i , j } i = 1 , ... , N , j = 0 , ... , Q .
The equality constraints in affine forms can be reformulated as a system of deterministic constraints, each associated to a noise symbol, as shown in the following example. Assuming only one uncertain load L and Q total uncertain sources:
L 0 + L 1 ε 1 = i = 1 N η i ( E i , 0 + E i , 1 ε 1 + E i , 2 ε 2 + ... + E i , Q ε Q )
The previous constraint becomes a series of Q deterministic equality constraints:
L 0 = i = 1 N η i E i , 0 L 1 = i = 1 N η i E i , 1 0 = i = 1 N η i E i , 2 0 = i = 1 N η i E i , Q
Thus, for M loads and Q uncertainty sources, the total number of equality constraints will be M + Q M , and it can be written in matrix form as L ^ = C E ^ . The inequality constraints can be written in the following form, where | E i , j | represents the absolute value of the j-th partial deviation related to the i-th decision variable, E i ̲ is the minimum and E i ¯ , the maximum value:
E i , 0 j = 1 Q | E i , j | E i ̲ i = 1 , . . . , N
E i , 0 + j = 1 Q | E i , j | E i ¯ i = 1 , . . . , N
Finally, the whole problem can be written as the following optimization problem:
min E r a d ( C t o t ( E ) ) s . t . L ^ = C E ^ E i , 0 j = 1 Q | E i , j | E i ̲ i = 1 , ... , N E i , 0 + j = 1 Q | E i , j | E i ¯ i = 1 , . . . , N
The solution of this problem is represented by a series of affine forms E i ^ which minimizes the radius of the total cost and is guaranteed to satisfy the constraints. Such affine forms have a strategic importance for the efficient scheduling of an energy hub, since they enclose the value of the objective function in a known range, which is guaranteed to contain the actual value despite the effects of data uncertainty.
Once the affine forms are known, the real-time dispatch values E i can be computed by calculating the noise symbols associated to the deterministic values C p , r e a l , L j , r e a l , E r e n , k , r e a l :
E ^ i = E i , 0 + i = 1 N E i , p ε C p + j = 1 M E i , j ε L j + k = 1 P E i , k ε E r e n , k i = 1 , . . . , N
ε C p = C p , r e a l C p , 0 C p , 1 p = 1 , . . . , N ε L j = L j , r e a l L j , 0 L j , 1 j = 1 , . . . , Q ε E r e n , k = E r e n , k , r e a l E r e n , k , 0 E r e n , k , 1 k = 1 , . . . , P

4. Case Study

To show the effectiveness of the proposed technique, in this paper, the energy hub shown in Figure 2 is considered. It consists of six converters, a thermal load L t h , an electrical load L e l and a renewable energy generator E r e n . The input carriers are electric energy, natural gas, hydrogen and district heating although they are divided into six different inputs in order to keep the mathematical model linear: E H 2 , E e l n e t , E e l E H P , E g a s b o i l , E g a s C H P , E D H .
The converters considered are:
  • Transformer: it connects the electric energy input from the grid to the electric load, η T = 0.98 .
  • Electric Heat Pumps (EHP): they serve the thermal load by efficiently converting input electric energy, the coefficient of performance (COP) is set to 2.5 .
  • Boilers: they simply work by burning natural gas and serving thermal load, η b o i l = 0.8 .
  • Combined Heat and Power (CHP): such elements serve both loads, and they are fed by natural gas. The efficiencies for electric and thermal conversion are: η e l C H P = 0.35 , η t h C H P = 0.405 .
  • Fuel Cells (FC): they can produce both electric energy and heat by converting hydrogen η e l F C = 0.35 , η t h F C = 0.45 .
  • Heat Exchangers (HE): thermal load can be served by district heating, through the heat exchangers, whose heat transfer efficiency is set to η H E = 0.9 .
The energy balance equations can be written in matrix form as:
1 η e l F C η T 0 0 η e l C H P 0 0 η t h F C 0 C O P η b o i l η t h C H P η H E · E r e n E H 2 E e l n e t E e l E H P E g a s b o i l E g a s C H P E D H = L e l L t h
The sources of uncertainty considered in this case are related to electric energy and natural gas costs, loads and renewable energy production, while hydrogen and district heating costs are supposed to be known with certainty, thus five affine forms and two scalar values are defined as input.
L ^ e l = L e l , 0 + L e l , 1 ε L e l L ^ t h = L t h , 0 + L t h , 1 ε L t h C ^ e l = C e l , 0 + C e l , 1 ε C e l C ^ g a s = C g a s , 0 + C g a s , 1 ε C g a s E ^ r e n = E r e n , 0 + E r e n , 1 ε E r e n C H 2 = C H 2 , 0 C D H = C D H , 0
The central values and the partial deviations considered in this case study are described in Table 2.
Since the renewable energy production is considered completely uncertain, the central value is assumed to be equal to the partial deviation.
Since there are five uncertainty sources, the affine forms of the decision variables are described by the following:
E ^ e l n e t = E e l , 0 n e t + i = 1 5 E e l , i n e t ε i E ^ e l E H P = E e l , 0 E H P + i = 1 5 E e l , i E H P ε i E ^ g a s b o i l = E g a s , 0 b o i l + i = 1 5 E g a s , i b o i l ε i E ^ g a s C H P = E g a s , 0 C H P + i = 1 5 E g a s , i C H P ε i E ^ H 2 = E H 2 , 0 + i = 1 5 E H 2 , i ε i E ^ D H = E D H , 0 + i = 1 5 E D H , i ε i
The total costs are C t o t = C e l , t o t + C g a s , t o t , where the single components are calculated as follows:
C t o t = ( C e l , 0 + C e l , 1 ε 3 ) · [ ( E e l , 0 n e t + E e l , 0 E H P ) + i = 1 5 ε i ( E e l , i n e t + E e l , i E H P ) ] + ( C g a s , 0 + C g a s , 1 ε 4 ) · [ ( E g a s , 0 C H P + E g a s , 0 b o i l ) + i = 1 5 ε i ( E g a s , i C H P + E g a s , i b o i l ) ] + C H 2 , 0 · [ E H 2 , 0 + i = 1 5 ε i E H 2 , i ] + C D H , 0 · [ E D H , 0 + i = 1 5 ε i E D H , i ]
The equality constraints, related to the energy balance on the energy hub are:
L e l , 0 + L e l , 1 ε 1 = η n e t ( E e l , 0 n e t + i = 1 5 E e l , i n e t ε i ) + η e l C H P ( E g a s , 0 C H P + i = 1 5 E g a s , i C H P ε i ) + η e l F C ( E H 2 , 0 + i = 1 5 E H 2 , i ε i )
L t h , 0 + L t h , 1 ε 2 = C O P ( E e l , 0 E H P + i = 1 5 E e l , i E H P ε i ) + η g a s ( E g a s , 0 b o i l + i = 1 5 E g a s , i b o i l ε i ) + η t h C H P ( E g a s , 0 C H P + i = 1 5 E g a s , i C H P ε i ) + η t h F C ( E H 2 , 0 + i = 1 5 E H 2 , i ε i ) + η H E ( E D H , 0 + i = 1 5 ε i E D H , i )
The inequality constraints describe the allowable operating points of each technology, that is, i :
E e l , 0 n e t i = 1 5 | E e l , i n e t | E e l , m i n n e t E e l , 0 n e t + i = 1 5 | E e l , i n e t | E e l , m a x n e t E e l , 0 E H P i = 1 5 | E e l , i E H P | E e l , m i n E H P E e l , 0 E H P + i = 1 5 | E e l , i E H P | E e l , m a x E H P E g a s , 0 b o i l i = 1 5 | E g a s , i b o i l | E g a s , m i n b o i l E g a s , 0 b o i l + i = 1 5 | E g a s , i b o i l | E g a s , m a x b o i l E g a s , 0 C H P i = 1 5 | E g a s , i C H P | E g a s , m i n C H P E g a s , 0 C H P + i = 1 5 | E g a s , i C H P | E g a s , m a x C H P E H 2 , 0 i = 1 5 | E H 2 , i | E H 2 , m i n E H 2 , 0 + i = 1 5 | E H 2 , i | E H 2 , m a x E D H , 0 i = 1 5 | E D H , i | E D H , m i n E D H , 0 + i = 1 5 | E D H , i | E D H , m a x
The affine forms obtained as a solution to the aforementioned problem are described in Table 3, which lists the central value and the partial deviations of each decision variable. Figure 3 shows the resulting intervals. The total cost, depending on the value of gas, electric energy, hydrogen and district heating prices, loads and renewable energy production is guaranteed to stay in the following range: C t o t = [ 1439 , 2003 ] €.
To assess the reliability of the solution found, a Montecarlo simulation has been performed. Considering 100,000 random samples, the results related to cost are shown in Figure 4. It can be seen that the total cost remains in the calculated range for each possible scenario, including the worst case instance of the considered uncertainty sources.
Results were compared to stochastic and robust optimization: in the first case the cost was in the range: C t o t = [ 1347 , 1996 ] €, while considering the worst case scenario, the cost was C t o t = 2021 €.
The extended affine arithmetic method provides results that are coherent with similar optimization techniques in the presence of uncertainty, although such a method provides more flexible and computationally more efficient results.
In the case of extended affine arithmetic optimization, once the real-time values of the uncertain quantities are known: L ¯ e l , L ¯ t h , C ¯ e l , C ¯ t h , E ¯ r e n , the value of the noise symbol can be calculated as:
ϵ 1 = L ¯ e l L e l , 0 L e l , 1 ϵ 2 = L ¯ t h L t h , 0 L t h , 1 ϵ 3 = C ¯ e l C e l , 0 C e l , 1 ϵ 4 = C ¯ g a s C g a s , 0 C g a s , 1 ϵ 5 = E ¯ r e n E r e n , 0 E r e n , 1
Thus, every decision variable and the cost associated to a certain event can be precisely calculated for each scenario without solving a new optimization problem.
For example, consider a scenario in which the values of the input variables are the following: L e l = 19.82 MWh, L t h = 19.63 MWh, C e l = 60.93 €/MWh, C g a s = 40.19 €/MWh and E r e n = 0.27 MWh.
In this case: ε 1 = 0.348 , ε 2 = 0.407 , ε 3 = 0.116 , ε 4 = 0.865 , ε 5 = 0.862 .
The corresponding decision variables associated to this scenario are obtained by substituting each noise symbol ε i in the resulting affine forms:
E ^ k j = E k , 0 j + i = 1 5 E k , i j ε i
Hence obtaining the following values: E e l n e t = 16 MWh, E e l E H P =5.68 MWh, E g a s b o i l = 0.12 MWh, E g a s C H P = 6.54 MWh, E H 2 = 3.55 MWh, E D H = 0.5 MWh.

5. Conclusions

This paper presented a novel methodology based on extended Affine Arithmetic to reliably manage multiple uncertainties in the optimal scheduling of an energy hub.
After introducing the energy hub model and the main sources of uncertainty affecting the optimal scheduling problem, a description of generalized Affine Arithmetic has been given. Then, this new methodology was applied to an energy hub’s optimal scheduling problem in the presence of uncertainty and a novel mathematical formulation was established.
The proposed technique represents a strategic tool for an analyst whose aim is to minimize operational costs of an energy hub. The affine forms calculated offer a powerful tool for short time planning and real-time dispatching. The case study’s results, assuming that the uncertainty interval of input variables is known, showed the robustness of the obtained solution. Furthermore, given a decision variable expressed as an affine form and its associated range, the analyst can properly adjust his decisions to match the expected robustness level.
Future work on this subject may focus on the application of extended Affine Arithmetic to manage uncertainty for different energy hub models, including storage systems and thus inter-temporal constraints, as far as in exploring a formal connection between extended Affine Arithmetic and robust optimization.

Author Contributions

A.P. and A.V. conceived and designed the methodology; A.P. performed the experiments; A.P. and A.V. analyzed the data; A.P., A.V., M.M. wrote the paper.


This research received no external funding.

Conflicts of Interest

The authors declare no conflicts of interest.


  1. Ackermann, T.; Andersson, G.; Söder, L. Distributed generation: A definition. Electr. Power Syst. Res. 2001, 57, 195–204. [Google Scholar] [CrossRef]
  2. Mancarella, P. MES (multi-energy systems): An overview of concepts and evaluation models. Energy 2014, 65, 1–17. [Google Scholar] [CrossRef]
  3. Geidl, M.; Koeppel, G.; Favre-Perrod, P.; Klockl, B.; Andersson, G.; Frohlich, K. Energy hubs for the future. IEEE Power Energy Mag. 2006, 5, 24–30. [Google Scholar] [CrossRef]
  4. Krause, T.; Andersson, G.; Frohlich, K.; Vaccaro, A. Multiple-energy carriers: Modeling of production, delivery, and consumption. Proc. IEEE 2010, 99, 15–27. [Google Scholar] [CrossRef]
  5. Mohammadi, M.; Noorollahi, Y.; Mohammadi-Ivatloo, B.; Yousefi, H. Energy hub: From a model to a concept—A review. Renew. Sustain. Energy Rev. 2017, 80, 1512–1527. [Google Scholar] [CrossRef]
  6. Ma, T.; Wu, J.; Hao, L.; Yan, H.; Li, D. A real time pricing scheme for energy management in integrated energy systems: A stackelberg game approach. Energies 2018, 11, 2858. [Google Scholar] [CrossRef]
  7. Qi, F.; Wen, F.; Liu, X.; Salam, M. A residential energy hub model with a concentrating solar power plant and electric vehicles. Energies 2017, 10, 1159. [Google Scholar] [CrossRef]
  8. Brahman, F.; Honarmand, M.; Jadid, S. Optimal electrical and thermal energy management of a residential energy hub, integrating demand response and energy storage system. Energy Build. 2015, 90, 65–75. [Google Scholar] [CrossRef]
  9. Moghaddam, I.G.; Saniei, M.; Mashhour, E. A comprehensive model for self-scheduling an energy hub to supply cooling, heating and electrical demands of a building. Energy 2016, 94, 157–170. [Google Scholar] [CrossRef]
  10. Wu, R.; Mavromatidis, G.; Orehounig, K.; Carmeliet, J. Multiobjective optimisation of energy systems and building envelope retrofit in a residential community. Appl. Energy 2017, 190, 634–649. [Google Scholar] [CrossRef]
  11. Orehounig, K.; Evins, R.; Dorer, V. Integration of decentralized energy systems in neighbourhoods using the energy hub approach. Appl. Energy 2015, 154, 277–289. [Google Scholar] [CrossRef]
  12. Almassalkhi, M.; Hiskens, I. Optimization framework for the analysis of large-scale networks of energy hubs. In Proceedings of the Power Systems Computation Conference, Stockholm, Sweden, 22–26 August 2011. [Google Scholar]
  13. Ha, T.; Zhang, Y.; Hao, J.; Thang, V.; Li, C.; Cai, Z. Energy hub’s structural and operational optimization for minimal energy usage costs in energy systems. Energies 2018, 11, 707. [Google Scholar] [CrossRef]
  14. Zhong, Y.; Xie, D.; Zhai, S.; Sun, Y. Day-ahead hierarchical steady state optimal operation for integrated energy system based on energy hub. Energies 2018, 11, 2765. [Google Scholar] [CrossRef]
  15. Chen, Y.; Wang, Y.; Ma, J. Multi-objective optimal energy management for the integrated electrical and natural gas network with combined cooling, heat and power plants. Energies 2018, 11, 734. [Google Scholar] [CrossRef]
  16. Parisio, A.; Del Vecchio, C.; Vaccaro, A. A robust optimization approach to energy hub management. Int. J. Electr. Power Energy Syst. 2012, 42, 98–104. [Google Scholar] [CrossRef]
  17. Pazouki, S.; Haghifam, M.R.; Moser, A. Uncertainty modeling in optimal operation of energy hub in presence of wind, storage and demand response. Int. J. Electr. Power Energy Syst. 2014, 61, 335–345. [Google Scholar] [CrossRef]
  18. Canfora, G.; Troiano, L. The importance of dealing with uncertainty in the evaluation of software engineering methods and tools. In Proceedings of the 14th International Conference on Software Engineering and Knowledge Engineering, Ischia, Italy, 15–19 July 2002; ACM: New York, NY, USA, 2002; pp. 691–698. [Google Scholar]
  19. Vahid-Pakdel, M.; Nojavan, S.; Mohammadi-Ivatloo, B.; Zare, K. Stochastic optimization of energy hub operation with consideration of thermal energy market and demand response. Energy Convers. Manag. 2017, 145, 117–128. [Google Scholar] [CrossRef]
  20. Najafi, A.; Marzband, M.; Mohamadi-Ivatloo, B.; Contreras, J.; Pourakbari-Kasmaei, M.; Lehtonen, M.; Godina, R. Uncertainty-based models for optimal management of energy hubs considering demand response. Energies 2019, 12, 1413. [Google Scholar] [CrossRef]
  21. Rakipour, D.; Barati, H. Probabilistic optimization in operation of energy hub with participation of renewable energy resources and demand response. Energy 2019, 173, 384–399. [Google Scholar] [CrossRef]
  22. Sanjani, K.; Vahabzad, N.; Nazari-Heris, M.; Mohammadi-ivatloo, B. A robust-stochastic approach for energy transaction in energy hub under uncertainty. In Robust Optimal Planning and Operation of Electrical Energy Systems; Springer: Cham, Switzerland, 2019; pp. 219–232. [Google Scholar]
  23. Najafi-Ghalelou, A.; Nojavan, S.; Zare, K.; Mohammadi-Ivatloo, B. Robust scheduling of thermal, cooling and electrical hub energy system under market price uncertainty. Appl. Therm. Eng. 2019, 149, 862–880. [Google Scholar] [CrossRef]
  24. Mukherjee, U.; Maroufmashat, A.; Narayan, A.; Elkamel, A.; Fowler, M. A stochastic programming approach for the planning and operation of a power to gas energy hub with multiple energy recovery pathways. Energies 2017, 10, 868. [Google Scholar] [CrossRef]
  25. Fouskakis, D.; Draper, D. Stochastic optimization: A review. Int. Stat. Rev. 2002, 70, 315–349. [Google Scholar] [CrossRef]
  26. La Scala, M.; Vaccaro, A.; Zobaa, A. A goal programming methodology for multiobjective optimization of distributed energy hubs operation. Appl. Therm. Eng. 2014, 71, 658–666. [Google Scholar] [CrossRef]
  27. Vaccaro, A.; Pisani, C.; Zobaa, A.F. Affine arithmetic-based methodology for energy hub operation-scheduling in the presence of data uncertainty. IET Gener. Transm. Distrib. 2015, 9, 1544–1552. [Google Scholar] [CrossRef]
  28. De Figueiredo, L.H.; Stolfi, J. Affine arithmetic: Concepts and applications. Numer. Algorithms 2004, 37, 147–158. [Google Scholar] [CrossRef]
  29. Krämer, W. Generalized Intervals and the Dependency Problem. Available online: (accessed on 23 June 2019).
  30. Neumaier, A. The wrapping effect, ellipsoid arithmetic, stability and confidence regions. In Validation Numerics; Springer: Vienna, Austria, 1993; pp. 175–190. [Google Scholar]
  31. Bilotta, G. Self-verified extension of affine arithmetic to arbitrary order. Le Matematiche 2008, 63, 15–30. [Google Scholar]
  32. Soroudi, A.; Amraee, T. Decision making under uncertainty in energy systems: State of the art. Renew. Sustain. Energy Rev. 2013, 28, 376–384. [Google Scholar] [CrossRef]
  33. Ghasemi, A.; Banejad, M.; Rahimiyan, M. Integrated energy scheduling under uncertainty in a micro energy grid. IET Gener. Transm. Distrib. 2018, 12, 2887–2896. [Google Scholar] [CrossRef]
  34. Troiano, L.; Mejuto, E.; Kriplani, P. An alternative estimation of market volatility based on fuzzy transform. In Proceedings of the 2017 Joint 17th World Congress of International Fuzzy Systems Association, Otsu, Japan, 27–30 June 2017; In Proceedings of the 9th International Conference on Soft Computing and Intelligent Systems (IFSA-SCIS), Otsu, Japan, 27–30 June 2017; IEEE: Piscataway, NJ, USA, 2017; pp. 1–6. [Google Scholar]
  35. Daryani, N.; Tohidi, S. Economic dispatch of multi-carrier energy systems considering intermittent resources. Energy Environ. 2019. [Google Scholar] [CrossRef]
  36. Stolfi, J.; de Figueiredo, L.H. An introduction to affine arithmetic. Trends Appl. Comput. Math. 2003, 4, 297–312. [Google Scholar] [CrossRef]
  37. Vaccaro, A.; Canizares, C.A.; Villacci, D. An affine arithmetic-based methodology for reliable power flow analysis in the presence of data uncertainty. IEEE Trans. Power Syst. 2009, 25, 624–632. [Google Scholar] [CrossRef]
  38. Gu, W.; Luo, L.; Ding, T.; Meng, X.; Sheng, W. An affine arithmetic-based algorithm for radial distribution system power flow with uncertainties. Int. J. Electr. Power Energy Syst. 2014, 58, 242–245. [Google Scholar] [CrossRef]
Figure 1. General model of an energy hub.
Figure 1. General model of an energy hub.
Energies 12 02420 g001
Figure 2. Energy Hub.
Figure 2. Energy Hub.
Energies 12 02420 g002
Figure 3. Affine intervals obtained as a solution to the optimization problem.
Figure 3. Affine intervals obtained as a solution to the optimization problem.
Energies 12 02420 g003
Figure 4. Frequency of occurrence of total cost for randomly generated scenarios.
Figure 4. Frequency of occurrence of total cost for randomly generated scenarios.
Energies 12 02420 g004
Table 1. Simple numerical example of Extended Affine Arithmetic.
Table 1. Simple numerical example of Extended Affine Arithmetic.
Affine Form Valuesxy
Central value10.049.96
P. dev. 12.512.5
P. dev. 23.523.48
Table 2. Central value and partial deviations of each uncertain quantity.
Table 2. Central value and partial deviations of each uncertain quantity.
Affine Form Values C el (€/MWh) C gas (€/MWh) L el (MWh) L th (MWh) E ren (MWh)
Central value604420200
Table 3. Central value and partial deviations for each affine form.
Table 3. Central value and partial deviations for each affine form.
Affine Form Values E el , i EHP (MWh) E el , i net (MWh) E gas , i CHP (MWh) E gas , i boil (MWh) E H 2 , i (MWh) E DH , i (MWh)
Central value5.9814.764.650.1224.790.51
P. dev. 10.030.570.211−0.04−0.370
P. dev. 20.640.58−1.310−0.130.01
P. dev. 30.791.29−1.18−0.07−2.27−0.36
P. dev. 40.440.84−1.850−0.25−0.08
P. dev. 5−0.31−2.620.0301.590.04
Back to TopTop