{'fraction_non_alphanumeric': 0.026171928385950526, 'fraction_numerical': 0.012846795134618012, 'mean_word_length': 4.858686949559647, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Gas-to-electricity investment planning for power system stability improvement and environmental sustainability in Nigeria

Power outage is a prominent feature of the current Nigerian power system. However, a properly planned energy sector can help the nations quest for energy sustainability and economic development. Techno-economic assessment of the Nigerian energy facilities for efficient gas-to-grid power integration is presented in this paper using the particle swarm optimization algorithm (PSO) for solving a voltage stability-constrained optimal power flow model on Matlab environment. Investment in gas-fired DG technology can be an economic and sustainable approach for reducing the detrimental effeccts of gas-flaring practices of the petroleum industries on the environment. The technical benefits such as voltage profile improvement and voltage stability enhancement are the main focus of the technical analysis carried out in this study.


Introduction
Voltage stability issues and the extreme problems of indiscriminate voltage collapse remain a crucial challenge to the reliable and economic operation of power systems in Nigeria [1]. According to the Transmission Company of Nigeria, the existing generating capacity of the national grid currently stands at 12,522 MW; out of which the average available daily generation is just about 4,000 MW [2]. Only about 59.3 % of the entire population has access to electricity; and the actual national electricity demand is currently above 20,000 MW and still increasing [3]. On the average, more than 20 occurrences of system collapse, both partial and total, is reported yearly in Nigeria [4]. The reason for this has been attributed to the grossly insufficient generation and inadequate transmission network [5]. As it currently stands, the main threat to achieving the Sustainable Development Goals in Nigeria, like in other developing nations, is the problem of poor economy which is principally due to the erratic nature of the energy industry. However, gas-fired distributed generation (DG) technology is helping to change the power system situation in many parts of the world due to cheap source of primary fuel and closeness to the loads. Properly designed DG systems can reduce the risk of stressing the already overloaded transmission lines and improved the system voltage stability [6].
Gas flaring is a common practice that has contributed hugely to both economic losses and environmental degradation within Nigeria. Gas flaring involves the combustion of gas (including useful natural gas) in open flame at oil production sites with no useful mechanism for harvesting useful energy. The economic and environmental impacts assessment of gas flaring has shown that about 47 percent of the total gas produced and 18 percent of the total produced natural gas in Nigeria is flared yearly [7]. An average of about 2.5 billion cubic feet of gas from crude oil production is reportedly being wasted via gas flaring per year in Nigeria [8]. This amounts to credible economic and environmental resources wastage, and has significantly affected the quality of living in terms atmosphere, land and water pollution. However, sufficient amount of useful energy can be produced from gases if proper investment is made on modern and highly efficient natural gas-based energy conversion technologies [9]. By investing in the recent state-of-the-art gas-driven energy technologies and the development of necessary human resources and passing of the petroleum industry bill (PIB), which enables a competitive market for gas sales and ensures better return on investments made on gas infrastructures, Nigeria can rapidly be on her way to economic growth and sustainable development realization.
The renewable technology is still relatively immature in Nigeria, as it is in most of the sub-Saharan African region, due to several reasons ranging from lack of adequate technical know-how to finding suitable sites and obtaining land right-of-way; as well as huge investment financial requirement [10]. However, In [11], it is projected that up to 5000 MW of electricity could be produced daily if the flared estimated 700 million SCF of gas is properly harnessed. A technical and economic analysis of flared gas to electricity potential in Nigeria can help increase the daily direct electricity production by 7500 MW [9]. The transportation Sector, just like the power sector, can also experience massive transformation by the introduction of efficient natural gas reclamation and gas-to-energy conversion technologies using cleanburning and efficient natural gas-driven vehicles in Nigeria [12]. The lifecycle CO 2 emission content of natural gas as primary fuel compared to other energy sources and the possible utilization options for clean natural gases for Nigerian situation is illustrated in Table  1 and Figure 1.

Voltage stability and DG injection planning
The study of the problems (technical and otherwise) that threatens the secure and reliable operation of power systems under different conditions is known as power system stability analysis. Voltage stability problem, also known as Load stability, is a prominent dynamic power system stability issue that is mainly due to the interaction of the power system loading and insufficient generation and reactive power transfer capacity of existing grid infrastructures [14]. Severe voltage instability can appear in a part or the entire power system due to gross inadequacy of the existing generation and transmission facilities. Hence, monitoring the voltage stability conditions of grid networks is crucial for effective planning of additional power injection from DGs. Several major power system's failure (black outs) in recent times are traceable to the problem of voltage collapse. Hence, while planning for increase generation to meet the growing electricity needs, there is a huge need to give adequate consideration to the capacity and condition of the existing grid facility. One important issue to be considered when adding DG units to power systems is the effects it will have on the power flow and voltage stability margin of the power system. This can be observed by monitoring the nearby buses and transmission lines at the point of DG power injection.

Effect of DG on voltage stability Margin
The voltage stability margin is usually estimated as the maximum amount of load increase that a power system can bear without violating the stability condition. It is a measure of the shortest distance from current operating point to the point of voltage collapse as illustrated on r ik + jx ik Considering Figure 3, at any point of DG injection, the net effective demand using the constant PQ load model is :

Fig. 3: Illustration of DG injection at a sub-station
Resolving the above equation (2) and separating the real and reactive power components yields: The voltage stability condition of a power system is obtained from algebraic solution of the Eqns. 3 and 4 as [15]: Fig. 4: Voltage stability margin on (P-Q) plane [15]. Figure 4 is a two-dimensional illustration of the real and reactive power loading at the receiving end bus considering a particular bus voltage value. The voltage stability margin, which is the nearest distance of a current operating point, K(P o ,Q o ) to a point, C(X,Y) on critical stability boundary is obtained using the Lagrange multiplier approach as given below : The set of equations obtained from the partial derivatives of equation (6) w.r.t. (X,Y,λ) are solve simultaneously to obtain the maximum (critical) real and reactive power loading (X,Y), and the corresponding VSM is obtained according to equations (7)-(9) ; The closer the CBI value of any of the transmission lines to zero, the closer the power system to voltage collapse.

Voltage stability index
In a more conventional approach, the assessment of power system voltage stability has been achieved by using several mathematical models collectively known as the voltage stability indices [14]. Some of these voltage stability indices are FVSI, NLSI and LQP and their mathematical expressions are given in reference [16]. These tools are used for planning effective enhancement of power system steady-state performances, based on real or/and reactive power optimal rescheduling while considering DG action and other power system enhancement devices. The system is highly unstable and prone to voltage collapse occurrence if the values of NLSI, FVSI and LQP approach 1.0.

Objective function
The mathematical formulation of GEOPF adopted in this work is expressed as a minimization of the total cost of operating the gas-to-grid network infrastructures [17] : (10) where C total (x) is the net cost which consists of the following constituent costs: the conventional hydrothermal generator operating cost C HT , the production and Investment cost on gas turbine C CGT. , cost of grid enhancement based on additional power injection C Grid, cost of gas pipeline maintenance C Gpipe and the environmental benefit/sustainability cost of gas (flaring reduction) C gs ; as expressed below: ng is the total number of existing hydro-thermal generators, G is the number of selected injection point/combined cycle generating plants, Npipe is the number of pipelines and ngs is the total number of natural gas source points. a, b and c are the quadratic fuel cost coefficients and Pg is the active power generated by each unit of the existing generators. K G and K grid are the corresponding cost per MW of gas plant investment and grid enhancement, respectively. A linear cost model based on the average distance from the oil producing zones to the industrial and commercial zones. k net is the net cost of gas at each source node in $/MMBTU. Q gs is the optimal amount of natural gas consumed by the generator in CF and GHV is the gas gross heating value in BTU/CF. (BTU means British thermal unit and CF means cubic foot). The cost k net consists of the actual cost of selling the power from the gas to the grid plus the cost of social benefits in terms of reduced environmental pollution less the cost of selling the gas by the gas suppliers. Hence, the total cost of gas C gs is treated as a positive social benefit which is to be maximized.

Power balance and system limit constraints
The system generator, bus and line constraints are given in [10]. The negative PQ load model for DG injection analysis is considered for the power balance equation in the load flow analysis [18].

Voltage stability margin constraint
To keep the power system secure and within the stability limits, the additional constraints based on the critical stability margin (CBI) is considered as given: 0.3; 1, 2,3... CBI i nl i ≥ = (16) nl is the number of transmission lines.

Particle Swarm Optimization (PSO) Algorithm with time-varying acceleration coefficient
The PSO algorithm based on the social behavior and interaction of particles within a swarm is adopted for solving the non-linear optimization problem described in this work; the detail of PSO algorithm is given in [19]. The social and cognitive factors are taken to be varying instead of being constant using the time varying acceleration coefficent (TVAC-PSO) approach described in [20]. Figure 5 is a flowchart that shows the TVAC-PSO algorithm. The PSO and hydrothermal generator parameters are as given in [10]. The natural gas parameters, using a conversion rate of 3412.14 CF of natural gas = 1 MWh of electricity and 1.00 USD = 360 Naira, are given in Table 2. Table 2. Natural gas data [7,9].

Symbol
Value (

Result and discussion
The real Nigerian grid, given in Figure 6, at overloaded operating condition is used for the analysis presented in this study. The system has 28 buses and 52 transmission lines. The voltage stability analysis using CBI parameters are used to select DG power injection points, as indicated in Figure 7. Two conditions were considered in selecting the candidate buses; the optimal voltage stability margin of the transmission line described in equation (5)-(9) and the real power loss sensitivity factor, given by equation (16) as obtained from the exact loss formula [18]. (16) Where; The receiving end buses of the lines with sufficient voltage stability margin (based on real power loadability) and low loss sensitivity are selected. Figure 8 shows the convergence characteristics using TVAC-PSO with optimal total cost of US $1.285 x 10 7 with a gas consumption of 6.312 x 10 6 SCF (i.e. Q gs ) and injected DG power of 477.45 MW (i.e. P G ). There is a credible improvement in the voltage profile with the placement of DGs as it can be seen on Figure 9. However, there is a need for voltage compensation at the buses 16 and 22 to stay within the set voltage magnitude threshold of 0.95 p.u. The injected power from the gas-fired DGs has plausible improving effects on stability margin of most of the lines, especially the real power stability margin as seen in Figure 10. Also, there is an increase in the optimal stability margin of most of the ill-conditioned lines while all the healthier lines, such as lines 1, 2, 3, 4, 14 etc. remains within the tolerant stability margin.    The overall influence on the voltage stability condition of the power system was analyzed using the NLSI (equation 17) and presented in Figure 11. (17) The stability condition of the power system is improved as reflected on the reduction in the NLSI value for almost all the transmission lines. For lines 23, 24 and 25, which are the most critical lines, there is a reduction from 0.7000 to about 0.4023. This improves the security of the power system and keep it farther away from voltage collapse.

Conclusion
Universal access to clean and reliable energy, while keeping the environment pollution-free is a key component of the United Nations' Sustainable Development Goals. Hence, there is currently great interest around the world on the adoption of alternative energy sources, both renewable and non-renewable (clean burning), towards achieving energy and environment sustainability. A techno-economic approach to achieve some of these targets at minimal cost and with positive impact on the immediate environment has been investigated and analyzed in this work, using the Nigerian energy sector situation. The optimization goal is to ensure a voltage-secured use of the existing grid facility and the sustainability goal is to demonstrate how much social, technical and economic benefits can be derived from the judicious use of available energy resources and infrastructures, especially for an oilproducing and developing nation like Nigeria.