Skip to main content

Implementation of a Scheduling and Pricing Model for Natural Gas

  • Chapter
  • First Online:
Handbook of Networks in Power Systems II

Part of the book series: Energy Systems ((ENERGY))

Abstract

Since 1999, the Australian state of Victoria has operated a natural gas spot market to both determine daily prices for natural gas and develop an optimal schedule for the market based on an LP (Linear Programming) approximation to the underlying inter-temporal nonlinear aspects of the gas flow optimization problem. This market employs a dispatch optimization model and a related market clearing model. Here we present the model employed for both the operational scheduling and price determination. The basic dispatch optimization formulation covers the key physical relationships between pressure, flow, storage, with flow controlled by valves, and assisted by compressors, where flow and storage are measured with respect to energy rather than in terms of mass. But we also discuss a range of sophisticated mathematical techniques which have had to be employed to create a practical dispatch tool, including iterating between piecewise and successive linearization; iterating between barrier and simplex algorithms to manage numerical accuracy and solution speed issues, and special methods developed to deal with scheduling flexibility. The market clearing model is a variation on the dispatch optimization model which replaces the gas network with an infinite storage tank with unlimited transport capacity. We address the performance of the model including accuracy and run time.

The authors wish to thank the Australian Energy Market Operator (AEMO) for providing information used in this chapter and for review of the content.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 129.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 169.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 169.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    The use of common carriage is due to the similarities with electricity markets. Victoria actually use the term “market carriage” to represent its pool based market, contrasting with “contract carriage” which relates to more traditional scheduling under bilateral contracts for access to each individual transmission pipelines.

  2. 2.

    As of the Victorian gas market recently coming under Australia’ National Gas Rules the PTS is now called the DTS, or Determined Transmission System.

  3. 3.

    Based on information supplied by AEMO for winters 2007 to 2009 inclusive

  4. 4.

    Storage of LNG is limited, and it is possible to use a significant proportion of the storage quite quickly if LNG is used too freely. Peak LNG vaporization for 1 h can take about 1 day to replace at the (emergency) maximum rate of LNG production, though more typically takes several days to replace.

  5. 5.

    In this formulation, variables are generally upper case, and constants lower case, whereas Read et al. [1] use lower case for variables, and upper case for constants. Upper and lower limits are still represented by over and under bars, respectively. Unless otherwise stated, all variables in this formulation are positive.

  6. 6.

    slack is a variable, yet it is also a vector, and as such it is stated in lower case.

  7. 7.

    Although this terminology is common in such models these are not really “slack” variables in the traditional sense. They do indicate how far the final solution point is from the constraint, but it lies outside the feasible region, not inside. Thus they have the form of generalized slack variables, which are positive when the constraint is slack, but negative when it is violated.

  8. 8.

    Market participants submit supply offers to the market, these ‘bids’ are composed of up to 10 price and quantity tranches, where we call each individual tranche a ‘step’.

  9. 9.

    The “slack” variables applied to such constraints, have very small penalties, so as to encourage, but not force, tie-breaking.

  10. 10.

    Parameters associated with a number of these constraints limits/bounds may also be scaled in a pre-processing step so as to resolve conflicts between quantities of gas previously scheduled and quntities actually observed, for example.

  11. 11.

    PS indicates the number of “pressure states”, although actually there are PS + 1, including state 0.

  12. 12.

    For a 2 dimensional representation like this, every point can actually be defined as a weighted sum of three particular grid points. But, in order to define a convex feasible region, we need to leave the model to determine which grid points it prefers to use.

  13. 13.

    Together, these two constraints actually mean all weights must lie in the range [0,1].

  14. 14.

    Another potential advantage of the convex combination approach to piece-wise linearization is that, if and when convexity issues arise, they could be dealt with by employing an integer type formulation, employing Special Ordered Sets (SOS2) as in Martin et al. [14], to force the model to apply weights only to adjacent grid points. A similar strategy is mentioned by DeWolf and Smeers (2000a), but dismissed on computational efficiency grounds. Still, that approach has been applied successfully in modeling HVDC link losses in the New Zealand electricity market model.

  15. 15.

    Early experience with the model showed that most cases solved within 14 iterations. Also, cases which did not solve showed negligible improvement in convergence after 14 successive approximations.

  16. 16.

    In practice, it is usual for the axes to be reversed to match compressor manufactures data relating to efficiency curves, however we present them in this orientation for consistency

  17. 17.

    There are actually two null operational states one for the minimum inlet pressure, and the other for the maximum outlet pressure, although they appear as one point in Fig. 6

  18. 18.

    In theory, operating states between zero and the minimum operating level could actually be achieved, on average, by operating efficiently for only part of the time. If so, the convex approximation to performance in that region could actually be valid. Hydro generators, for example, can be validly operated, and represented, in that way. In this case, though, the savings in operational efficiency would probably be outweighed by increased startup/shutdown costs.

  19. 19.

    This lower limit here defines the minimum running boundary of the feasible region if we force the compressor to be “on”, thus eliminating the null states. As shown, this boundary is actually non-convex, but it can reasonably be approximated by a straight line, at the cost of eliminating a relatively small set of operating states that are seldom utilized, in practice.

  20. 20.

    In other words, the pressure can decline significantly without implying the increase in flow rate one would otherwise expect for such a decline.

  21. 21.

    This being important because it determines who faces penalties and/or receives constrained-on/off payments when the actual dispatch schedule differs from the market trading schedule.

  22. 22.

    Energy = Work = Force × Displacement and Pressure = Force÷Area; so combining these two results in Pressure × Length = Force × Displacement÷Area which then equals the flow of energy past a point, which is Work÷Area = Energy÷Area

References

  1. Read EG, Ring BJ, Starkey SR, Pepper W (2012) An LP formulation for a natural gas market. A. Sorokin et al. (eds.), Handbook of Networks in Power Systems II, Energy Systems, Springer-Verlag Berlin Heidelberg

    Google Scholar 

  2. Ruff LE (1997) Victorian Gas Market Clearing Logic Version MCL 1.2. Released by Energy Projects Division, Department of Treasury and Finance, 30 October.

    Google Scholar 

  3. Pepper W (1999) AEMO market clearing engine: mathematical formulation. Version 1.20.4 Draft Report by ICF Consulting to VENCorp (now AEMO)

    Google Scholar 

  4. Zhu G, Henson MA, Megan L (2001) Dynamic modeling and linear model predictive control of gas pipeline networks. J Process Control 11(2):129–148

    Article  Google Scholar 

  5. Johnson AT, Marquart BC, Istre ML, Walloopillai RK (2000) Integrating an expert system and pipeline simulation to enhance gas pipeline operation, profitability and safety. www.psig.org/papers/2000/0007_OnlinePDF.pdf. Accessed 23 Nov 2010

  6. Hogan WW (1992) Contract networks for electric power transmission. J Reg Econ 4(3):211–242. ICFI (2010) ICFI gas market model. www.icfi.com/markets/energy/doc_files/nangasweb_OnlinePDF.pdf. Accessed 28 Oct 2010

    Article  Google Scholar 

  7. AEMO (2010) National gas rules, Part 20 at http://www.aemc.gov.au/Gas/National-Gas-Rules/Current-Rules.html. Accessed 2 Sep 2010

  8. Zheng QP, Rebennack S, Iliadis N, Pardalos PM(2010) Optimization models in the natural gas industry. In: Rebennack IS, Pardalos PM, Pereira MVF, Iliadis NA (eds) Handbook of power systems I. Springer-Verlag Berlin Heidelberg, pp 121–148

    Chapter  Google Scholar 

  9. Wu S, Rios-Mercado RZ, Boyd EA, Scott LR (2000) Model relaxations for the fuel cost minimization of steady-state gas pipeline networks. Math Comput Model 31:197–220

    Article  Google Scholar 

  10. De Wolf D, Smeers Y (2000a) The gas transmission problem solved by an extension of the simplex algorithm. Manag Sci 46:1454–1465

    Article  Google Scholar 

  11. De Wolf D, Smeers Y (2000b) The simplex algorithm extended to piecewise-linearly constrained problems. http://citeseerx.ist.psu.edu/viewdoc/summary?. doi=10.1.1.14.8090. Accessed 23 Nov 2010

  12. Tomasgard A, Rømo F, Fodstad M, Midthun KT (2007) Optimization models for the natural gas value chain, In: Hasle G, Lie KA, Quak E (eds), Geometric modelling, numerical simulation, and optimization: applied mathematics at SINTEF, Springer-Verlag Berlin Heidelberg, pp 521–558

    Google Scholar 

  13. Midthun KT, Bjørndal M, Tomasgard A (2009) Modeling optimal economic dispatch and system effects in natural gas networks. Energy J 30(4):155–180

    Article  Google Scholar 

  14. Martin A, Moller M, Moritz S (2006) Mixed integer models for the stationary case of gas network optimization. Math Program Ser B 105:563–582

    Article  MathSciNet  Google Scholar 

  15. Van der Hoeven, T. (2004), Math in gas and the art of linearization, PhD thesis International Business School and Research Center for Natural Gas, Groningen, The Netherlands

    Google Scholar 

  16. Read EG, Whaley R (1997) A gas market model for Victoria: dispatch/pricing formulation. Report by Putnam, Hayes & Bartlett – Asia Pacific Ltd. to VENCorp (now AEMO)

    Google Scholar 

  17. Dorin B, Toma-Leonida D (2008) On modelling and simulating natural gas transmission systems (part I). J Contr Eng Appl Infor 10(3):27

    Google Scholar 

  18. Hager W (2003) Blasius: a life in research and education. Exp Fluids 34(5):566–571

    Article  Google Scholar 

  19. Peretti A, Toth P (1982) Optimization of a pipeline for the natural gas transport. Eur J Oper Res 11:247–254

    Article  Google Scholar 

  20. Pepper W, Lo G (1999). Application of linear program to gas market and pipeline model in the state of Victoria, Australia. In: INFORMS conference, Cincinnati, May 1999

    Google Scholar 

  21. Rios-Mercado RZ (2002) Natural gas pipeline optimization. In: Pardalos PM, Resende MGC (eds) Handbook of applied optimization. Oxford University Press, New York, pp 813–826

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to E. G. Read .

Editor information

Editors and Affiliations

Appendix: Detailed Pressure Flow Equations for Flow Rates and Linepack

Appendix: Detailed Pressure Flow Equations for Flow Rates and Linepack

In this Appendix we present the key equations for deriving natural gas flows and pressures in the Victorian pipe network. The derivation is based on six initial equations described in Eqs. 16, 17, 18, 19, 20, 21) below.

$$ {P_l} = {\rho_l}{\hbox{RTz}} $$
(16)

The ideal gas law equation 1 describes pressure, P l at a point l along a pipeline of length 0 < l < L. R is the ideal gas constant in units of kPa*m3/(°K × kg), T is the temperature of the pipeline in °K, and z is the supercompressibility of gas, while ρ l is the density in units of kg/m3.

$$ {q_l} = {\rho_l}{v_l}{\hbox{A}} $$
(17)

The gas flow rate q l at a point l, in kg/s, is described in (17). Where A is the pipe cross-sectional area in units of m2, ν l is the velocity of gas in m/s in the pipe at point l, at the point l measured at sea level.

$$ \frac{{dP}}{{dl}} \times 1000 = - \frac{f}{\hbox{2D}}{\rho_l}v_l^2 $$
(18)

The Fanning equation 18 describes the rate of change of pressure at position l along a pipeline. D is the pipe diameter in units of m while f is the Fanning friction factor.

$$ Re = \frac{{{\rho_l}{v_l}{\text{D}}}}{{{\mu }}} $$
(19)

The Reynolds Number, Re, is defined by (19). In this equation μ is the viscosity of gas measured in kg/ms.

$$ f = \frac{{0.316}}{{{\eta }}}{\left( {\frac{1}{{Re}} + {{\left( {\frac{{fturb}}{{0.316}}} \right)}^4}} \right)^{{0.25}}} $$
(20)

The Fanning friction factor formulation in (20) utilizes the Blasius formulation [18], where η is the pipeline efficiency (a fraction). It describes friction as gas flows along a pipe. This makes use of a turbulent friction factor, fturb.

$$ fturb = 0.0053 + 0.1662{\left( {\frac{\text{e}}{\hbox{1000D}}} \right)^{{0.35}}} $$
(21)

Smooth pipelines have no turbulence while rough pipelines have more turbulence. Turbulence becomes more important as the Reynolds Number increases. Given e, a measure of the roughness of the pipeline in mm, then the relative roughness of a pipeline can be defined with respect to its diameter as (e/D). Using empirical data the form of the turbulent friction factor shown in (21) was developed by gas system engineers working on the development of the MCE. Now, using Eq. 17 to substitute for ν l in (18) we get:

$$ \frac{{dP}}{{dx}} = - \left[ {\frac{\text{f}}{\hbox{D}} \times \frac{{q_l^2}}{{{{\hbox{A}}^2}{\rho_l} \times 2}}} \right] \div 1000 $$
(22)

Equation 22 can be further refined by using Eq. 16:

$$ \frac{{dP}}{{dx}} = - 0.5{{\hbox{G}}_{\rm{f}}}\frac{1}{{{P_l}}}q_l^2 $$
(23)

Where:

$$ {{\hbox{G}}_{\rm{f}}}{ = }\frac{\text{fRTz}}{{{\hbox{1,000D}}{{\hbox{A}}^{{2}}}}} $$
(24)

By integrating (23) with respect to l and observing that for l = 0, P l= P o, the origin pressure of the pipeline gives:

$$ {P_l} = {\left( {P_0^2 - {{\hbox{G}}_{\rm{f}}}q_l^2 \times l} \right)^{{0.5}}} $$
(25)

Using (25) to define the value of P l where l = L, i.e. the destination pressure, and assuming a constant flow (q l= q), friction factor, and supercompressibility, then the steady state flow rate can be derived as:

$$ q = {\left( {\frac{{P_0^2 - P_L^2}}{{{{\hbox{G}}_{\rm{f}}}{\hbox{L}}}}} \right)^{{0.5}}} $$
(26)

Here Eq. 26 is closely related to the Weymouth panhandle equation referred to by Zheng et al. [8] and Midthun et al. [13]. It is used later to define friction factors as a function of flow rate. However, we can derive another flow rate equation by assuming no friction arises from turbulence (fturb = 0), and substituting the Reynolds Number from (20) into (19) and the resultant equation for f into (22) to give:

$$ {P_l} \times \frac{{d{P_l}}}{{dl}} = - 0.5{\hbox{G}} \times q_l^{{1.75}} $$
(27)

Where:

$$ {{\rm G = }}\frac{{{0}{.316}{{\mu }}^{{{0}{.25}}}}{\text{RTz}}}{{{{1,000 \eta Di}}{{{a}}^{{{1}{.25}}}}{{{\rm A}}^{{{1}{.75}}}}}}$$
(28)

Integrating (27) with the assumption that the flow is constant along the pipe segment and the requirement that for l = 0, P l= P o (the origin pressure) we get:

$$ {P_l} = {\left( {P_0^2 - {\hbox{G}}{q^{{1.75}}} \times l} \right)^{{0.5}}} $$
(29)

Using (29) to define the value of P l where l = L, i.e. destination pressure, then for a non-constant friction factor and constant supercompressibility the steady state flow rate can be derived as:

$$ {q_l} = {\left( {\frac{{P_0^2 - P_L^2}}{{{\hbox{G}}L}}} \right)^{{({{1} \left/ {{1.75}} \right.})}}} $$
(30)

Equations 6 and 30 describe flow rates under different assumptions about friction factors. These are used later to define more general flow rate equations. However, before exploring that, it is necessary to consider the linepack equations. The linepack, I, in a pipe segment can be calculated by integrating the volume of gas in each slice of pipeline along the length of the pipeline:

$$ I = \int\limits_0^{\rm{L}} {{\rho_l}{\hbox{A}}dl = } \int\limits_0^{\rm{L}} {\frac{{{P_l}{\text{A}}}}{\hbox{RTz}}dl} $$
(31)

Assuming a constant friction factor this can be rewritten as:

$$ I = \frac{\text{A}}{\hbox{RTz}} \times \int\limits_0^{\rm{L}} {{P_l}dl} $$
(32)

We also haveFootnote 22:

$$ dF(l) = {P_l}dl $$
(33)

Substituting this into (32), we derive:

$$ I = \frac{\text{A}}{\hbox{RTz}} \times \left\{ {F({\hbox{L}}) - F(0)} \right\} $$
(34)

Substituting the expression for P l from (25), which was based on a constant fraction factor, into (33), then integrating over l, we get, for a non-zero flow rate:

$$ dF(l) = {P_l}dl = {\left( {P_0^2 - {{\hbox{G}}_{\rm{f}}}q_1^2 \times l} \right)^{{0.5}}}dl $$
(35)

Given the rule (f(x))n differentiated by x gives n × df/dx × f(x)n-1 then we can integrate dF(l) by the reverse transformation to give:

$$ F(l) = \frac{{{{\left( {P_0^2 - {{\text{G}}_{\rm{f}}}{q^2} \times l} \right)}^{{1.5}}}}}{{ - 1.5{{\hbox{G}}_{\rm{f}}}{q^2}}} $$
(36)

Evaluation of (36) for F(0) and for F(L), and substituting these into (34) gives:

$$ I = \frac{\text{A}}{\hbox{RTz}}\frac{{\left( {P_0^3 - P_{\rm{L}}^3} \right)}}{{1.5{{\hbox{G}}_{\rm{f}}}{q^2}}} $$
(37)

Further, substituting for q from (26) gives linepack for non-zero flow of:

$$ I = \frac{\text{AL}}{{{1}{\hbox{.5RTz}}}}\frac{{\left( {P_0^3 - P_{\rm{L}}^3} \right)}}{{\left( {P_{{0}}^2 - P_{\rm{L}}^2} \right)}} $$
(38)

Where the flow rate is zero, then P l= P 0 for all l, and (16) implies

$$ I = {P_0}\frac{\text{AL}}{{\hbox{RTz}}} = \frac{\text{AL}}{{\hbox{RT}}}\frac{{{P_0}}}{\hbox{z}} $$
(39)

Equations 38 and 39 can be represented in terms of an average pressure on the pipeline P a:

$$ I = \frac{\text{AL}}{{\hbox{RT}}}\frac{{{P_a}}}{\hbox{z}} $$
(40)

Hence

$$ \begin{array}{lllll} {{P_a} = \frac{2}{3}\frac{{\left( {P_{{0}}^3 - P_{\rm{L}}^3} \right)}}{{\left( {P_0^2 - P_{\rm{L}}^2} \right)}}} & {:{\hbox{if}}} & {{P_0}\, >\, {P_{\rm{L}}}} \end{array} $$
(41)

Or:

$$ \begin{array}{llllll} {{P_a} = {P_0}} & {:{\hbox{if}}} & {{P_{{0}}} = {P_{\rm{L}}}} \\\end{array} $$
(42)

Given user defined values of typical low and high pressures in the system, P low and P high, and corresponding supercompressibility values z low and z high it is possible to define an average supercompressability z a as:

$$ {z_a}({P_a}) = {z_{{low}}} + \frac{{({P_a} - {P_{{low}}})}}{{({P_{{high}}} - {P_{{low}}})}} \times ({z_{{high}}} - {z_{{low}}}) $$
(43)

To take advantage of the linear relationship between linepack and pressure in (40), the MCE formulation uses this equation to compute linepack for all cases, including the case when the pipeline inlet and outlet pressure values are different. The term (P 0 /z) is replaced by the average value of the supercompressibility-adjusted-pressures at the inlet and outlet nodes. Further adjustments are made to these equations to allow for altitude. The model also combines the results of (26) and (30) to determine flows which address the impact of a varying friction factor, non-zero fturb, and varying supercompressibility along the pipeline, for given pressures at the origin and destination of the pipe. All of these values are refined using an iterative approach that converges quickly and tests have demonstrated that a further iteration past the current stopping point would typically impact final flows by less than 0.2%.

Rights and permissions

Reprints and permissions

Copyright information

© 2012 Springer-Verlag Berlin Heidelberg

About this chapter

Cite this chapter

Pepper, W., Ring, B.J., Read, E.G., Starkey, S.R. (2012). Implementation of a Scheduling and Pricing Model for Natural Gas. In: Sorokin, A., Rebennack, S., Pardalos, P., Iliadis, N., Pereira, M. (eds) Handbook of Networks in Power Systems II. Energy Systems. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-23406-4_1

Download citation

Publish with us

Policies and ethics