Abstract
In this letter, we propose a market-based bi-level conic optimal energy flow (OEF) model of integrated electricity and natural gas systems (IENGSs). Conic alternating current optimal power flow (ACOPF) is formulated in the upper-level model, and the generation cost of natural gas fired generation units (NGFGUs) is calculated based on natural gas locational marginal prices (NG-LMPs). The market clearing process of natural gas system is modeled in the lower-level model. The bi-level model is then transferred into a mixed-integer second-order cone programming (MISOCP) problem. Simulation results demonstrate the effectiveness of the proposed conic OEF model.
THE optimal energy flow (OEF) is of great significance to integrated electricity and natural gas systems (IENGSs) [
With the above motivations, the market-based OEF problem of IENGS is modeled in this letter as a bi-level conic optimization problem. The upper-level model is for the AC optimal power flow (ACOPF) problem of the electricity system, while the lower-level model is for the market-based natural gas OEF problem.

Fig. 1 Bi-level conic OEF model.
In IENGS, NGFGUs are the main coupling elements, which purchase gas to generate electricity. In the proposed OEF model, the generation cost of an NGFGU is equal to its gas purchasing cost measured by NG-LMPs. NG-LMPs can be calculated via the market clearing process of a natural gas system, which corresponds to the lower-level model. The ACOPF of an electricity system is the upper-level model, and the market-based bi-level OEF problem can be formulated as the following optimization model:
(1) |
s.t.
(2) |
(3) |
(4) |
(5) |
(6) |
(7) |
(8) |
(9) |
(10) |
(11) |
(12) |
(13) |
(14) |
(15) |
(16) |
(17) |
(18) |
s.t.
(19) |
(20) |
(21) |
(22) |
(23) |
(24) |
where cg1 and are the cost coefficients of non-NGFGU g1 and NGFGU g2, respectively; pg1 and pg2 are the power outputs of non-NGFGU g1 and NGFGU g2, respectively; and are the sets of non-NGFGUs and NGFGUs, respectively; and are the sets of buses and transmission lines in the electricity system, respectively; is the element of incidence matrix associated with power injection of bus i and power transmission of line l; is the element of incidence matrix associated with power injection of bus i and loss of line l; is the square of line current; C is the element of branch-path incidence matrix; ui is the square voltage of bus i; and are the upper and lower limits of the voltage of bus i, respectively; ue,l is the square voltage of the receiving end of line l; pg1,i and qg1,i are the active and reactive power generation of non-NGFGU g1 at bus i, respectively; pg2,i and qg2,i are the active and reactive power outputs of NGFGU g2, respectively; and are the active and reactive losses of line l, respectively; is the power transmission limit of line l; , , , and are the active power limits of non-NGFGU g1 and NGFGU g2, respectively; , , , and are the reactive power limits of g1 and g2, respectively; and are the active and reactive power loads, respectively; Rl and Xl are the resistance and reactance, respectively; and are the active and reactive power flows, respectively; bettagf is the efficiency factor of NGFGUs; gf and pgf are the index and power output of NGFGUs, respectively; is the set of NGFGUs connected to node G in gas network; is the cost coefficient of NGFGUs; is the NG-LMPs of node G with NGFGUs, and can be calculated by the dual variables of the gas balance
Equations (
Equations (
Equations (
For the proposed conic OEF model, for a given upper decision yG, the lower-level model is an SOCP problem. Hence, the lower-level model can be replaced by its primal-dual counterpart [
(25) |
s.t.
(26) |
(27) |
(28) |
(29) |
(30) |
where y and x are the vectors of variables of the upper- and lower-level model, respectively; g and k are constant vectors; the constant matrices (, , , , , , , ) are associated with the corresponding variables; and (, , , ) are the vectors of dual variables for the constraints of the lower-level model. Equations (
In this section, the IEEE 9-bus power system with 7-node gas system and the IEEE 118-bus power system with 14-node gas system are utilized to illustrate the performance of the proposed market-based conic OEF model. The data of natural gas systems are given in [
The topology of the IEEE 9-bus power system with 7-node gas system is shown in

Fig. 2 Topology of IEEE 9-bus power system with 7-node gas system.

Fig. 3 Generation costs and outputs of NGFGU with various load levels. (a) Generation costs. (b) Outputs of NGFGU.
As can be seen from
To further demonstrate the validity of the bi-level conic OEF model, the IEEE 118-bus power system with a 14-node gas system with modified nodal pressure limits is applied, the topology of which is shown in

Fig. 4 Topology of IEEE 118-bus power system with 14-node gas system.
We compare the proposed ACOPF-based bi-level OEF model with the DCOPF-based OEF model. For the DCOPF-based OEF model, linear programming DCOPF model is at the upper level. The main difference between the ACOPF- and DCOPF-based OEF models is that voltage constraints, reactive power constraints, and electricity network losses are considered in the ACOPF-based model. The ACOPF-based bi-level OEF model is more accurate than the DCOPF-based model. A comparison of the outputs of the NGFGUs from the two models is shown in

Fig. 5 Comparison of results for ACOPF- and DCOPF-based bi-level OEF models. (a) Comparison of outputs of NGFGUs. (b) Comparison of nodal pressures.
The approximate error results, i.e., SOC relaxation gap, of Weymouth equations of the natural gas system are depicted in

Fig. 6 Approximate error results of SOC relaxation for natural gas system.
To further verify the validity of the proposed OEF model on large systems, the IENGS composed of the IEEE 1354-bus power system integrated with -node gas systems is utilized, the topology of which is shown in

Fig. 7 Topology of IEEE 1354-bus power system with -node gas systems.
The parameters of the 48-node natural gas system are given in [
In this letter, a market-based bi-level conic OEF model of IENGS is proposed. The ACOPF of a power system is considered as the upper-level model, and a natural gas market clearing process is modeled and considered as the lower-level model. The proposed model is transferred and formulated as an MISOCP problem. The results verify the validity of the proposed model, and demonstrate that the energy system load levels of would affect the operation of both energy systems. The effectiveness of considering ACOPF in OEF of IENGS is further verified.
REFERENCES
G. Sun, S. Chen, Z. Wei et al., “Multi-period integrated natural gas and electric power system probabilistic optimal power flow incorporating power-to-gas units,” Journal of Modern Power Systems and Clean Energy, vol. 5, no. 3, pp. 412-423, May 2017. [Baidu Scholar]
H. Haghighat and B. Zeng, “Bilevel conic transmission expansion planning,” IEEE Transactions on Power Systems, vol. 33, no. 4, pp. 4640-4642, Jul. 2018. [Baidu Scholar]
M. Baradar, M. Hesamzadeh, and M. Ghandhari, “Second-order cone programming for optimal power flow in VSC-type AC-DC grids,” IEEE Transactions on Power Systems, vol. 28, no. 4, pp. 4282-4291, Nov. 2013. [Baidu Scholar]
C. He, L. Wu, T. Liu et al., “Robust co-optimization scheduling of electricity and natural gas systems via ADMM,” IEEE Transactions on Sustainable Energy, vol. 8, no. 2, pp. 658-670, Apr. 2017. [Baidu Scholar]
R. Zhang, T. Jiang, G. Li et al., “Stochastic optimal energy management and pricing for load serving entity with aggregated TCLS of smart buildings: a Stackelberg game approach,” IEEE Transactions on Industrial Informatics, vol. 17, no. 3, pp. 1821-1830, Mar. 2021. [Baidu Scholar]
Y. He, M. Shahidehpour, Z. Li et al., “Robust constrained operation of integrated electricity-natural gas system considering distributed natural gas storage,” IEEE Transactions on Sustainable Energy, vol. 9, no. 3, pp. 1061-1071, Jul. 2018. [Baidu Scholar]
X. Fang, H. Cui, H. Yuan et al., “Distributionally-robust chance constrained and interval optimization for integrated electricity and natural gas systems optimal power flow with wind uncertainties,” Applied Energy, vol. 252, pp. 1-13, Oct. 2019. [Baidu Scholar]
S. Wu, R. Z. Rios-Mercado, E. Boyd et al., “Model relaxation for the fuel cost minimization of steady-state gas pipeline networks,” Mathematical and Computer Modelling, vol. 31, no. 23, pp. 197-220, Jan.-Feb. 2000. [Baidu Scholar]