<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>A note on local convergence of iterative processes for pipe network analysis</title></titleStmt>
			<publicationStmt>
				<publisher>Springer</publisher>
				<date>07/01/2025</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10598841</idno>
					<idno type="doi">10.1007/s40314-025-03158-2</idno>
					<title level='j'>Computational and Applied Mathematics</title>
<idno>2238-3603</idno>
<biblScope unit="volume">44</biblScope>
<biblScope unit="issue">5</biblScope>					

					<author>Huong Luu</author><author>Marek Chrobak</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[<title>Abstract</title> <p>Analysis of pipe networks involves computing flow rates and pressure differences on pipe segments in the network, given the external inflow/outflow values. This analysis can be conducted using iterative methods, among which the algorithms of Hardy Cross and Newton-Raphson have historically been applied in practice. In this note, we address the mathematical analysis of the local convergence of these algorithms. The loop-based Newton–Raphson algorithm converges quadratically fast, and we provide estimates for its convergence radius to correct some estimates in the previous literature. In contrast, we show that the convergence of the Hardy Cross algorithm is only linear. This provides theoretical confirmation of experimental observations reported earlier in the literature.</p>]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>The analysis of pipe networks is a well-studied problem in civil engineering that arises in the design and modeling of large-scale hydraulic networks, such as water municipal systems, sewage systems, or substance distribution networks. In this paper we focus on the most common formulation, where the objective is to determine the flow rates and pressure differences in all pipe segments within the network, given its topology, nodal inflows/outflows, and the parameters of the pipes and fluid (diameter, friction, fluid density, etc.) <ref type="bibr">Stephenson (1984)</ref>. At a fundamental level, this problem is analogous to the analysis of electrical circuits. These two problems share two similar physical principles: mass (or flow) conservation and energy conservation. The law of flow conservation states that at each node, the total inflows and outflows are equal; and the principle of conservation of energy requires that around a closed loop the total sum of pressure differences is zero. However, in contrast to their electrical counterparts, in large-scale pipe networks the equation governing the relationship between flow and pressure difference in a pipe segment is non-linear. <ref type="foot">1</ref> This equation, known as the Darcy-Weisbach equation, asserts that the pressure difference in a pipe segment e is proportional to the square of its flow: | e p| = &#956; e q 2 e , where | e p| is the positive pressure difference, q e is the flow value, and &#956; e is a constant coefficient that is inversely proportional to the pipe's diameter, and proportional to the friction factor, pipe length, and fluid density.</p><p>Pipe network analysis boils down to solving the system of the above-mentioned equations, namely the flow conservation equations for all nodes and the energy conservation equations for all pipe segments. The specific choice of variables, be it pressure values or flow values, leads to different formulations of these equations, with three common approaches known as the loop method, the flow method, and the node method <ref type="bibr">(Boulos et al. 2006)</ref>. (See Sect. 2 and Appendix B.) In either formulation, the resulting system of equations is non-linear, and computing its exact solution is not feasible. Instead, iterative techniques that compute approximate solutions have been widely adopted in the scientific literature and in practice.</p><p>Past work One of the earliest approaches to pipe network analysis was proposed by <ref type="bibr">Cross (1936)</ref>. He introduced both the loop and node variants of his method, 2 that we denote HCloop and HC-node, respectively. Due to its simplicity, Algorithm HC-loop has been used to analyze small networks with spreadsheets or hand calculations. Another frequently used approach involves applying the generic Newton-Raphson algorithm for solving non-linear equations. This algorithm can be applied to any of the above three settings: flow, loop or node, and we use notations NR-flow, NR-loop and NR-node for its respective variants.</p><p>In this work we focus mainly on algorithms based on the loop method. This method assumes that some initial flow satisfying the boundary conditions and flow conservation is given, and its unknowns are the flow adjustments along the network's cycles with respect to this initial flow (Sect. 2 for a detailed description).</p><p>While there is a fair amount of literature on experimental performance of these algorithms, relatively little is known about their provable convergence properties. In <ref type="bibr">Cross (1936)</ref>, Cross claimed that Algorithm HC-loop's convergence is "sufficiently rapid", though this claim was not supported by rigorous analysis. <ref type="bibr">Adams (1955)</ref> provided an analysis of the accuracy of the flow corrections generated by Algorithm HC-loop by comparing it with the exact correction values. This result is useful for convergence analysis of simple systems that consist of only one cycle; however, for larger systems, the mathematical analysis is incomplete. Empirical results in Gameiro <ref type="bibr">Lopes (2004)</ref> show fast convergence of HC-loop for several networks in the dataset. Altman and Boulos reported in <ref type="bibr">Altman and Boulos (1995)</ref> an attempt to analyze local convergence of NR-flow; however, as we explain in Appendix A, their analysis is flawed. In <ref type="bibr">Brki&#263; (2009)</ref>, Brki&#263; conducted a comparative study of NR-loop and HC-loop, and his experimental results support the earlier observations that NR-loop exhibits faster convergence.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Our results</head><p>We present an analysis of the local convergence of Algorithms NR-loop and HC-loop in Sects. 3 and 4. We show that Algorithm NR-loop converges quadratically fast if the initial flow is sufficiently close to the solution, and we provide a bound on the radius of its quadratic convergence. The quadratic convergence of the Newton-Raphson method is not surprising-in fact it is known to converge quadratically under some fairly mild assumptions. Our aim here was to correct and refine the analysis of the convergence radius provided in paper <ref type="bibr">(Altman and Boulos 1995)</ref>.</p><p>For Algorithm HC-loop, we prove a similar local convergence property, although in this case the convergence rate is only linear. We also show that this bound is tight by exhibiting an example where Algorithm HC-loop's convergence is not better than linear. These results provide a theoretical confirmation of experimental observations, discussed earlier, about the superiority of NR-loop over HC-loop.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Additional comments</head><p>As for other methods, <ref type="bibr">Shamir and Howard commented in Shamir (1968)</ref>; <ref type="bibr">Shamir and Howard (1977)</ref> that Algorithm NR-node might not converge if it encounters a singular derivative matrix or if it enters and infinite loop, although no specific examples were given there. In Appendix B we provide an example on which Algorithm NR-node enters an infinite looop. A fairly extensive empirical comparison of different formulations of both Algorithm HC and Algorithm NR was presented by <ref type="bibr">Wood (1981)</ref>. The results indicate that the loop methods encounter fewer convergence issues than the respective node methods, and that the Newton-Raphson algorithm is more reliable for all formulation variants.</p><p>The network model we focus on in the paper is quite basic: the only network elements are pipes and junctions, and the boundary conditions are specified by external inflows and outflows. The loop method does not extend naturally to models that capture other features of practical pipe networks (see <ref type="bibr">(Stephenson (1984)</ref>, Chapter 3), for example), so in these models typically other formulations of the Newton-Raphson algorithm are used. For instance, in some network models the boundary conditions may be specified by pressure values at some nodes, rather than only inflows and outflows. And in more complex networks other hydraulic elements such as pumps, valves, and reservoirs are used to regulate and control pressure and flow. Shamir and Howard discussed in <ref type="bibr">Shamir (1968)</ref> a special procedure to incorporate these elements into the system of governing equations. They also noted that these elements introduce complications to the convergence analysis as their characteristic equations may not have continuous derivatives. For recent progress on designing algorithms for the analysis of more complex pipe networks we refer the reader to the work by <ref type="bibr">Srinivasan et al. (2023)</ref>, who study gas-pipe networks involving compressors. Besides the issues of feasibility and solution uniqueness, this paper also discusses a method for improving numerical conditioning of the Newton-Raphson algorithm.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">Preliminaries</head><p>Flow graphs A pipe system can be represented by an undirected graph G = (V , E), where |V | = n and |E| = m. In G, the pipe junctions are represented by vertices and pipe segments by edges. We assume that G is biconnected, as otherwise its biconnected components can be analyzed separately. For notational reasons, it will be convenient to assign orientations to edges. To this end, we assume that V = {1, 2, ..., n}, and we define the orientation of an edge e between two different vertices u and v as being from u to v if u &lt; v, and from v to u otherwise. For simplicity, the edges in E will be identified by numbers 1, 2, ..., m. Let D be the m &#215; n incident matrix where D ev = 1 if edge e is incident with vertex v and is oriented toward v, D ev = -1 if e is oriented away from v, and D ev = 0 if e is not incident with v. The specification of a flow graph also involves the consumption vector w &#8712; R n that satisfies n v=1 w v = 0. This vector represents external inflows and outflows, which serve as the boundary conditions of the flow.</p><p>Cycles A closed loop in the pipe network corresponds to a cycle in its flow graph G. More generally, we define a cycle in G as an even-degree subgraph of G. A cycle is called simple if it is connected and all of its vertices have degree two. If we view cycles as vectors in Z m 2 (Z 2 is the finite field of two elements 0 and 1), the set of all cycles in G forms a linear space over Z 2 with vector addition being the operation of symmetric difference. The dimension of this space is k = mn + 1. A cycle basis in G is a collection of k linearly independent simple cycles. Each cycle in G can be obtained as a linear combination of the cycles in the basis.</p><p>For our analysis, we assume that an arbitrary cycle basis C is provided for the flow graph G.</p><p>The total length of C, denoted &#8467; C , is defined as the sum of the lengths of its cycles. Each simple cycle in a basis C has two possible orientations, which we refer to as clockwise and counter-clockwise. These orientations are determined by the two cyclic orderings of vertices in the cycle. The clockwise orientation can be chosen arbitrarily and independently for each cycle in the basis. An edge e on cycle c is called clockwise on c if its orientation agrees with the clockwise orientation of c, and otherwise e is called counter-clockwise on c. It is worth noting that an edge can be part of multiple cycles and may be clockwise in one cycle while being counter-clockwise in another.</p><p>Given a cycle basis C, we will number its cycles 1, 2, ..., k. We can then define the edgecycle matrix A of size m &#215; k representing C. The value A ec &#8712; {-1, 0, 1} indicates the relationship between the orientations of edge e and cycle c. Specifically, it is 1 if edge e is clockwise on c, -1 if e is counter-clockwise on c, and 0 if e is not part of c.</p><p>The flow method A flow in G is represented by a vector q &#8712; R m , with q e denoting the flow on edge e. The sign of q e indicates the flow direction: q e &gt; 0 iff the flow direction of q agrees with the orientation of e and vice versa. Recall that e p denotes the pressure difference along an edge e; that is, if e is oriented from u to v then e p is equal to the pressure at u minus the pressure at v. From the Darcy-Weisbach equation, e p can be written as e p = |q e | q e . (For simplicity, we assume that for all edges e the coefficient &#956; e in the Darcy-Weisbach equations is equal 1. Our derivation can be easily adapted to arbitrary coefficients, although the final formulas can't be then expressed in terms of graph invariants only.)</p><p>The goal of the flow method is to compute a flow q that satisfies:</p><p>where</p><p>that is, U is the diagonal matrix whose entries are the absolute values of the flows, and 0 denotes the zero-vector of the appropriate dimension. Equation ( <ref type="formula">1</ref>) is the flows conservation property, and Equation ( <ref type="formula">2</ref>) is the energy conservation property. Equation (2) states that the pressure differences along each cycle need to add up to 0. The energy conservation principle applies to all cycles in G, although for our purposes it is sufficient to include only the k equations for cycles in the given cycle basis C.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>The loop method</head><p>The loop method is fundamentally equivalent to the flow method. In the loop method, the flow conservation equations (1) are eliminated by the introduction of an arbitrary reference flow &#968; &#8712; R m that already satisfies this equation. Then, the flows in G can be expressed as:</p><p>where x &#8712; R k is a variable whose value represents the flow adjustments along cycles in C. Thus the flow on an edge e is q e (x) = &#968; e + k c=1 A ec x c . In other words, along each cycle c, x c is added to the flows on its clockwise edges and subtracted from the flows on its counter-clockwise edges. In this setting, we define the error function F : R k &#8594; R k to represent the deviation from the energy conservation equations and, expressed using function, the objective of the loop method is to find an x that satisfies</p><p>where U (x) is the m &#215; m diagonal matrix defined above for the flow q(x). That is, if</p><p>We assume that this system has a solution and that the solution is unique. Both existence and uniqueness can be established by using the equivalence to the flow method, and reducing the flow method equations to solving a convex optimization problem <ref type="bibr">(Singh and Kekatos 2021)</ref>. In <ref type="bibr">Singh and Kekatos (2021)</ref>, a different proof of uniqueness is also given.</p><p>Iterative algorithms Our focus is on the analysis of solving the non-linear system (4) using two iterative algorithms discussed in the introduction: NR-loop and HC-loop. In general, an iterative algorithm starts with some initial candidate solution x (0) , and then it produces successive approximate solutions x (t) , attempting to reduce the value of F(x (t) ) . The process repeats until some stopping criteria are satisfied. Such criteria may involve, for example, an upper bound on the maximum number of iterations, or the improvement being below a desired value. This improvement can be measured either by x (t)x (t-1) or F(x (t) ) -F(x (t-1) ) . An iterative algorithm is called convergent if it generates a sequence of values that converges to the actual solution, that is F(x (t) ) -&#8594; t 0, if it's allowed to run indefinitely. The efficiency of an iterative process can be measured by its rate of convergence, which captures how quickly the generated sequence approaches the solution. The sequence x (t) is said to converge to a solution x * with &#969; -order <ref type="bibr">(Jay 2001)</ref>, for some &#969; &#8805; 1, if there exist two constants &#949; &#8805; 0 and t &#8805; 1 such that for all t &#8805; t:</p><p>For &#969; = 1 we additionally require that &#949; &lt; 1, and in this case the convergence is said to be linear. For &#969; = 2 the convergence is called quadratic.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">Analysis of Newton-Raphson algorithm</head><p>The Newton-Raphson algorithm is an iterative process widely used for finding zeros of non-linear functions. For single-argument functions R &#8594; R, the algorithm obtains a new approximation value as the intersection of the tangent line to its graph at the current value with the x-axis. This concept can be naturally extended to multi-variate functions R k &#8594; R k by using the k &#215; k Jacobian matrix, which represents the first-order partial derivatives.</p><p>Given a flow graph G, a cycle basis C of G and a reference flow &#968;, we apply the Newton-Raphson algorithm (NR-loop) to solve the system of equations ( <ref type="formula">4</ref>) starting from some initial solution x (0) . (Note that we can as well assume that x (0) = 0, for otherwise we can add x (0)  to the reference flow and set up the equations for this modified reference flow.) At each step t &#8805; 1, the new solution x (t) is obtained from the previous one using the formula:</p><p>where F (x) denotes the Jacobian of F at x. The partial derivatives &#8706; f c &#8706; x d (x) are always well defined and equal to 2 m e=1 A ec A ed |q e (x)|. Thus, F (x) can be expressed compactly in matrix form as:</p><p>It is interesting to note that from the setup, it might seem that the flows q(x (t) ) obtained by applying the adjustment x (t) would be different for different cycle bases of G. However, upon closer examination, we find that it is not the case. This observation aligns with Nielsen's finding in <ref type="bibr">Nielsen (1989)</ref>. We offer a straightforward proof below.</p><p>Proposition 1 Given a flow graph G, a reference flow &#968; and and initial approximation x (0) , the flows obtained at each step of Algorithm NR-loop are independent of the choice of cycle basis for G.</p><p>Proof Let A, B be two edge-cycle matrices that correspond to two different cycle bases of G. Using A and B, set up the two error functions F A , F B and let their respective Jacobians be</p><p>B the adjustments at step t acquired from applying Algorithm NRloop on F A , F B respectively. As explained earlier in this section, we can assume that x (0)</p><p>It is sufficient to show that the flow values on the edges are the same after the first step, no matter whether we use cycle base A or B, for we can then simply repeat this argument inductively to all steps. That is, we will show that A x</p><p>(1)</p><p>We have B = AW for some k &#215; k change of basis matrix W . For any given flow, its corresponding matrix U is independent of the cycle base, so U A ( 0) = U B ( 0). Assuming that F A ( 0) and F B ( 0) are invertible, we thus have:</p><p>Since the new flows are the same, we have U A (x (1)</p><p>A ) is invertible. This completes the proof.</p><p>The convergence of the Newton-Raphson algorithm for non-linear systems has been studied extensively for decades. The rate of convergence can be as fast as quadratic if the function satisfies certain conditions, for example, when the initial approximation is in close neighborhood of the root and the Jacobians at all successive approximations are invertible. However, the root itself being unknown, it is generally difficult to determine if the initial point is "sufficiently" close to it. The <ref type="bibr">Kantorovich (1948</ref><ref type="bibr">Kantorovich ( , 1964) )</ref> theorem circumvents this challenge by giving the local convergence conditions in terms of the initial point and some general properties of the function. Our statement of this theorem, given below, follows the formulation in <ref type="bibr">Ortega (1968)</ref> but is adapted to functions on Euclidean spaces with one unique root.</p><p>For s &#8712; R k and r &#8712; R, by B(s, r ) we denote the ball centered at s with radius r , that is</p><p>Theorem 1 <ref type="bibr">(Kantorovich)</ref> Let F : R k &#8594; R k be a differentiable function, F (x) be the k &#215; k Jacobian matrix of F(x), and x (0) &#8712; R k be an initial approximation of the Newton-Raphson process for F(x) = 0. Assume that:</p><p>With these assumptions, if h = &#946;&#951;L &lt; 1 2 then the sequence x (t) generated by the Newton-Raphson's iteration process starting at x (0) is well-defined, contained in the ball B(x (0) , r ) for r = (1 -&#8730; 1 -2 h)/(&#946; L), and converges quadratically to the unique solution x * of F(x) = 0.</p><p>Any induced matrix norm &#8226; can be used in this theorem. In our work, we assume the infinity norm on R k , that is &#8226; = &#8226; &#8734; . Specifically, the norm of a vector x &#8712; R k is x = max 1&#8804;c&#8804;k |x c |, and the norm of a matrix</p><p>Given a flow graph G, we can use Theorem 1 to estimate the radius r of quadratic convergence expressed in terms of properties of F and attributes of G. To this end, we need to estimate the constants in (i), (ii) and (iii) from Theorem 1. (Before proceeding, we stress that, as the loop method computation is expressed in terms of flow-adjustment vectors x &#8712; R k , the parameters &#946;, &#951; and L in the theorem may depend on the chosen cycle basis, even though, by Proposition 1, the actual sequence of edge-flow vectors in R m obtained in this computation is not.)</p><p>Computing F(x (0) ) is straightforward, while the inverse of F (x ( <ref type="formula">0</ref>) ) requires more computation. However, since no provably accurate and efficient estimates for F (x) -1 are known, we can use &#946; = F (x (0) ) -1 and &#951; = F (x (0) ) -1 F(x (0) ) .</p><p>Our attention is now directed towards the bound (iii), which involves the Lipschitz condition on the Jacobian matrix F . Let &#8467; = &#8467; C be the total length of C. We present a general estimate of L in terms of &#8467;:</p><p>Proof The derivation for this bound uses the formulas (6) for the Jacobian of F(x) and (3) for the flow values. First, compute:</p><p>, with the last inequality following from the observation that for each cycle d = c, at least one of its edge is not on c.</p><p>We are now ready to state sufficient conditions for quadratic convergence of Algorithm NR-loop on the loop equation ( <ref type="formula">4</ref>). This condition applies to a flow graph G = (V , E), a cycle basis C of G with total length &#8467;, a reference flow &#968;, and an initial solution x (0) where F (x (0) ) is invertible: <ref type="formula">0</ref>) ) -1 F(x (0) ) , and L = 2k(&#8467;-k+1). If &#946;&#951;L &lt; 1 2 , then Algorithm NR-loop converges to the unique solution x * of F(x) = 0 with quadratic order.</p><p>In what follows, we discuss more specific estimates for L. The estimate of the convergence radius in Theorem 2 critically depends on the choice of the cycle basis. Trivially, for any basis, we have &#8467; &#8804; kn. Therefore, in Theorem 2, &#8467; can be replaced by kn if this bound is sufficient. However, in general, using a cycle basis C with small total length &#8467; is likely (but not guaranteed) to improve the convergence radius.</p><p>The problem of computing cycle bases with small total length has been well studied. In <ref type="bibr">Rizzi (2009)</ref>, Rizzi introduced an O(mn)-time algorithm that generates a cycle basis of total length &#8467; = O(m log n), which is within a 2 log n factor of the optimum length. This length bound was further refined to &#8467; = O(m log n/ log(m/n)) by Kaufmann and Michail, as mentioned in <ref type="bibr">(Kavitha et al. (2009)</ref>,Theorem 4.5). If the loop equations are built upon the aforementioned cycle basis, the enhanced Lipschitz constant L becomes 2k(&#964; m log n/ log(m/n)k + 1) for some constant &#964; .</p><p>For certain types of graphs, better estimates are possible. In particular, planar graphs emerge naturally when studying flows in pipe networks. If G is planar, the bound on the Lipschitz constant L can be improved by using a cycle basis in which each cycle is a face of G.</p><p>Observation 1 If G is planar and C is a face-based cycle basis then F (x) -F (y) &#8804; L xy , where L = 8n.</p><p>As a function of the graph size, this is at least an order-of magnitude improvement over the bound from Claim 1.</p><p>To justify Observation 1, note first that in a face-based cycle basis each edge belongs to at most two cycles, implying the inequality k j=1 |A ej | &#8804; 2. Then the observation follows from the bound (7) in the proof of Claim 1, by applying first this inequality twice (for j = i and j = d) and then inequality m e=1 A ec &#8804; n that holds for any simple cycle c. Example 1 We illustrate the local convergence conditions on the simple flow graph depicted in Figure <ref type="figure">1</ref>. The graph is planar and has 4 vertices, 6 edges, 2 inlets and 1 outlet. The cycle basis that is used to set up the loop equations is the cycle basis consisting of internal faces. The clockwise directions of the cycles are shown in this figure. The corresponding edge-cycle matrix A is shown on the right-hand side.</p><p>Let the reference flow be &#968; = [1, 1, 0, 1, 0, 2]. The left-hand sides of the loop equations are: and, the Jacobian is:</p><p>where</p><p>Let the initial guess be x (0) = [1.38, 1, 0.93]. It can be verified that F (x (0) ) is invertible. The constants in (1) and ( <ref type="formula">2</ref>) are &#946; = 0.7 &gt; F (x (0) ) -1 and &#951; = 0.005 &gt; F (x (0) ) -1 F(x (0) ) . As for the constant in (iii), we can set L = 8n = 32 since the face cycle basis is used. This gives &#946;&#951;L &lt; 0.12, so the convergence condition is satisfied, and the system converges with quadratic order starting at the given x (0) .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">Analysis of Hardy Cross algorithm</head><p>In order to simplify the calculation of the new solution x (t) in equation ( <ref type="formula">5</ref>), a linear operator H (x), typically associated with the Jacobian F (x), can be used in lieu of it:</p><p>This variation of the Newton-Raphson method has been thoroughly explored in the literature. In the context of pipe network analysis, Algorithm HC-loop can be viewed as a simplified version of the Newton-Raphson method, using operator H (x) defined as follows:</p><p>where &#8706; f c /&#8706; x c are the diagonal entries of the matrix F (x), defined in equation ( <ref type="formula">6</ref>).</p><p>As the computation of H (x) is straightforward, Algorithm HC-loop was designed to support manual analysis of small-scale water distribution systems. The process also begins with a reference flow &#968; that satisfies the flow conservation equation (1). It then iteratively produces new flow adjustments using equation ( <ref type="formula">8</ref>) until the energy conservation equation ( <ref type="formula">2</ref>) is satisfied, within some specified tolerance, for all cycles in the cycle basis used in the algorithm.</p><p>It is important to note that although equation ( <ref type="formula">8</ref>) may give the impression that the adjustments for all cycles need to be computed simultaneously, they can be performed for each cycle c &#8712; C separately as follows:</p><p>1) c -m e=1 A ec |q (t-1) e |q (t-1) e 2 m e=1 A 2 ec |q (t-1) e | where q (t-1) e = &#968; e + k i=1 A ei x (t-1) i</p><p>is the flow value on edge e at step t -1. The difference between Algorithm HC-loop and Algorithm NR-loop lies in the fact that in Algorithm NR-loop each adjustment takes into account the interaction between overlapping cycles, whereas in Algorithm HC-loop these adjustments are computed independently for each cycle.</p><p>Local convergence of variants of the Newton-Raphson algorithm that use a linear operator different from the Jacobian matrix was studied by <ref type="bibr">(Rheinboldt (1968)</ref>,Theorem 4.3). Below, we state his results, adapting it to functions in Euclidean spaces with a unique root.</p><p>Theorem 3 Let F : R k &#8594; R k be a differentiable function, F (x) be the k &#215;k Jacobian matrix of F(x), H : R k &#8594; R k be a linear operator, and x (0) &#8712; R k be an initial approximation of the iterative process (8) for F(x) = 0. Assume that:</p><p>for some constants &#946;, &#951;, L, K &gt; 0 and &#948; 0 , &#948; 1 &#8805; 0.</p><p>With these assumptions, if &#946;&#948; 0 &lt; 1 and h = &#946;&#951; max(L, K + &#948; 1 )/(1 -&#946;&#948; 0 ) 2 &#8804; 1 2 , then the sequence x (t) generated by equation ( <ref type="formula">8</ref>) starting at x (0) is well-defined, contained in the ball B(x (0) </p><p>)), and converges to the unique solution x * of F(x) = 0. If both &#948; 0 , &#948; 1 are nonzero, then the order of convergence is linear with a factor (&#946;&#948; 0 + &#946;&#948; 1 r )/(1 -&#946; K r).</p><p>We apply Theorem 3 to Algorithm HC-loop in a similar manner to our use of Theorem 1 for Algorithm NR-loop. The bound in (iii) involving L remains consistent with those outlined in Sect. 3. For (i), the computation of the inverse of the diagonal matrix H (x (0) ) is straightforward:</p><p>Similarly, the bound in (ii) can be taken as &#951; = H (x (0) ) -1 F(x (0) ) . For (iv) and (v), the estimates for K , &#948; 0 , and &#948; 1 depend on the cycle basis C, similar to L. We show some general estimates of these constants in the following claims. Recall that k = mn + 1 is the size of the cycle basis C and &#8467; is its total length.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Claim 2</head><p>The constants K , &#948; 0 and &#948; 1 in Theorem 3 can be bounded as follows:</p><p>Proof (a) Here is the derivation of K :</p><p>Here is the derivation of &#948; 0 and &#948; 1 :</p><p>where the right-hand side of ( <ref type="formula">10</ref>) is bounded by observing that for each cycle c &#8712; C:</p><p>Above, we use the fact that k d=1 m e=1 |A ec | |A ed | &#8804; &#8467;k + 1 (see the justification in the proof of Claim 1), and that m e=1 A 2 ec &#8805; 3, because c has at least 3 edges. The following theorem states the sufficient condition for linear convergence of Algorithm HC-loop for loop equation F(x) = 0, a flow graph G = (V , E) with a given cycle basis C of total length &#8467;, a reference flow &#968; with the maximum absolute flow value &#968; max , and an initial solution x (0) for which H (x (0) ) is invertible:</p><p>2 , then Algorithm HC-loop converges to the unique solution x * of F(x) = 0. If both &#948; 0 , &#948; 1 are non-zero, then the order of convergence is linear.</p><p>Note that the condition on &#948; 0 , &#948; 1 being non-zero will be true in non-degenerate scenarios, because &#948; 0 &gt; 0 as long as &#968; is non-zero (which is the case when the total inflows are non-zero), and the only case when &#948; 1 = 0 is when the network is just one cycle with three edges.</p><p>Similar to our analysis of Algorithm NR-loop in Sect. 3, the bounds on the constants in Theorem 3 can be improved for types of graphs that arise in practical networks, in particular for planar graphs.</p><p>Observation 2 If G is planar and C is a face-based cycle basis then 0) where &#948; 0 = 2n &#968; max + 2 x (0) , &#948; 1 = 4n, and</p><p>Proof Part (a) follows from the bound (9) in the proof of Claim 2(a), using the fact that k i=1 |A ei | &#8804; 2 for each edge e (because each edge belongs to at most two cycles in C) and that m e=1 A 2 ec &#8804; n. For part (b), we modify the derivation in the proof of Claim 2(a), as follows: </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Lower bound on convergence</head><p>We now demonstrate that, in general, the guaranteed local convergence rate of Algorithm HC-loop is not better than linear. To illustrate this, consider the flow graph G with 2 vertices, 3 edges, 1 inlet and 1 outlet. The cycle basis consists of two cycles, whose clockwise directions are shown in the figure below.</p><p>Let the reference flow be &#968; = [0, 0, 3]. The loop equations are:</p><p>The solution is x * 1 = x * 2 = 1. We are interested in the case where the initial adjustment x (0) is sufficiently close to the solution, particularly when x</p><p>(0) 1 = x (0) 2 = 1 + for some 123 0 &lt; | |</p><p>1. The first adjustment is:</p><p>x</p><p>(1)</p><p>Thus, x (1)x * = /2 = 1 2 x (0)x * . The convergence order is linear with convergence rate 1 2 .</p><p>The other mistake involves the sign issue in the energy equation for each cycle. The authors used a fixed indicator &#947; wu for the orientation of flow in cycle w in <ref type="bibr">(Altman and Boulos (1995)</ref>, eq. ( <ref type="formula">6</ref>)):</p><p>This would be true if all flow directions remained the same; in other words, if the sign of each Q u was constant through the whole iterative process. However, it is not guaranteed. Thus, when Q u flips sign, &#947; wu needs to be changed accordingly for the energy equation to be valid.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Appendix B An example for non-convergence of algorithm NR-node</head><p>Shamir mentioned the issue with non-convergence encountered in certain systems in <ref type="bibr">Shamir (1968)</ref>. We provide a simple flow graph in which Algorithm NR-node enters an infinite loop. Using a similar setup for the node method as in <ref type="bibr">Shamir (1968)</ref>, the unknowns are pressures p v for nodes v = 1, 2, &#8226; &#8226; &#8226; , n, and the system of equations includes flow conservation equations for each node of the form: The equation (B1) has the form f (x) = -x/ &#8730; |x| = 0. The iteration step is:</p><p>xf (x)/ f (x) = xx &#8226; 2 &#8730; |x|/ &#8730; |x| = -x. So for any initial value x = 0, the algorithm will oscillate between x and -x.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="1" xml:id="foot_0"><p>This non-linearity is due to fluid turbulence. In small-scale networks, such as those that arise in microfluidics, flows tend to be laminar and their behavior can be modeled with linear equations.</p></note>
		</body>
		</text>
</TEI>
