Algorithm Search⌘K

Techniqueintro

Block diagram reduction

Also called block diagram algebra.

Rules that merge series, parallel and feedback blocks of a linear diagram, and move summing and takeoff points, until one transfer function from the input to the output is left.

In plain words

A block diagram shows a linear system as boxes joined by arrows. Each box multiplies its incoming signal by a transfer function, each circle adds or subtracts signals, and each branch point copies a signal. Block diagram reduction replaces small patterns in the diagram by single boxes with the same input-output behaviour: two boxes in a row become their product, two boxes side by side become their sum, and a feedback loop becomes one fraction. When no pattern fits, one moves an adder or a branch point past a box, with a correction box, until a pattern appears. At the end one box is left, and its transfer function is the answer.

When it applies

  • Every block is linear and time invariant, with a transfer function (a rational function, or one with a delay factor e−sτe^{-s\tau}). The result is the transfer function of the system at rest, with zero initial conditions.
  • The diagram is well posed, so that each signal is uniquely defined. For proper blocks and a negative feedback loop with loop gain L=GHL = GH, this is 1+L(∞)≠01 + L(\infty) \ne 0.
  • The diagram is small enough to reduce by hand, with a few nested loops. For a tangled diagram with many interlocking loops, Mason's gain formula is shorter, and for numeric work a state-space interconnection is safer.
  • With several inputs and outputs, the blocks are matrices and the order of products matters. The same rules hold with the matrix forms below.

The template

The three merge rules, for scalar blocks:

pattern replaced by
G1G_1 then G2G_2 in series G2G1G_2 G_1
G1G_1 and G2G_2 in parallel into an adder G1±G2G_1 \pm G_2
forward block GG, feedback block HH, negative feedback G/(1+GH)G / (1 + G H)
forward block GG, feedback block HH, positive feedback G/(1−GH)G / (1 - G H)

The four move rules, which keep every signal that leaves the diagram unchanged:

move correction
adder from after GG to before GG the side input passes through 1/G1/G
adder from before GG to after GG the side input passes through GG
branch point from after GG to before GG the branch passes through GG
branch point from before GG to after GG the branch passes through 1/G1/G
  1. BLOCK-DIAGRAM-REDUCE(D, r, y)
  2. 1name every signal of D; check that each block is LTI and that D is well posed
  3. 2repeat
  4. 3merge every pair of blocks in series, and every pair in parallel
  5. 4pick a LOOP of D with no outside adder input or branch point between its blocks
  6. 5if such a loop exists then replace it by G / (1 + G H), with the SIGN of its adder
  7. 6else move one ADDER OR BRANCH POINT past one block by the move rules, to free a loop
  8. 7until D is one block from r to y
  9. 8write the block as N(s)/D(s), cancel common factors, and list each factor cancelled
  10. 9return the block

The holes are the choice of LOOP at L4 (innermost loops first keeps the algebra small), the SIGN convention at each adder, and the choice of ADDER OR BRANCH POINT to move at L6. Line L8 matters: each factor cancelled there is a mode that the input-output map does not show, and the pitfalls below explain when it is dangerous.

Why the feedback rule holds. With negative feedback, e=r−Hye = r - H y and y=Gey = G e, so y=Gr−GHyy = G r - G H y and y(1+GH)=Gry (1 + G H) = G r. When 1+GH≠01 + G H \ne 0, y=G/(1+GH) ry = G/(1 + GH)\, r.

A worked example. Take the diagram with the signals

e1=r−c,e2=e1+H1x2,x1=G1e2,e3=x1−H2c,x2=G2e3,c=G3x2.e_1 = r - c, \quad e_2 = e_1 + H_1 x_2, \quad x_1 = G_1 e_2, \quad e_3 = x_1 - H_2 c, \quad x_2 = G_2 e_3, \quad c = G_3 x_2.

No loop is free: the loop through H2H_2 starts at cc, after G3G_3, and ends before G2G_2, so the branch point of x2x_2 for H1H_1 sits inside it. Move the branch point for H2H_2 from cc back to x2x_2; by the move rules the branch now passes through G3G_3, so the feedback block becomes G3H2G_3 H_2. Now the loop around G2G_2 alone is free, and it becomes G2/(1+G2G3H2)G_2/(1 + G_2 G_3 H_2). In series with G1G_1, inside the positive loop through H1H_1, this gives

G1G21+G2G3H2−G1G2H1.\frac{G_1 G_2}{1 + G_2 G_3 H_2 - G_1 G_2 H_1}.

In series with G3G_3 and closed by the unity feedback of e1e_1:

CR=G1G2G31−G1G2H1+G2G3H2+G1G2G3.\frac{C}{R} = \frac{G_1 G_2 G_3}{1 - G_1 G_2 H_1 + G_2 G_3 H_2 + G_1 G_2 G_3}.

With G1=1/(s+1)G_1 = 1/(s + 1), G2=1/(s+2)G_2 = 1/(s + 2), G3=1/sG_3 = 1/s, H1=1H_1 = 1 and H2=2H_2 = 2, multiplying the top and the bottom by s(s+1)(s+2)s(s + 1)(s + 2) gives C/R=1/(s3+3s2+3s+3)C/R = 1/(s^3 + 3s^2 + 3s + 3). Mason's formula gives the same result in one step: the three loops G1G2H1G_1 G_2 H_1, −G2G3H2-G_2 G_3 H_2 and −G1G2G3-G_1 G_2 G_3 all pass through x2x_2, so they all touch, and the one forward path touches all of them.

Classic examples

  • The unity feedback loop. In the feedback control loop with controller CC and plant PP, the reference-to-output map is T=PC/(1+PC)T = PC/(1 + PC), and the disturbance at the plant input reaches the output through P/(1+PC)P/(1 + PC). Both are one application of the feedback rule.
  • Cascade control. In cascade control, an inner loop with controller C2C_2 around the plant part P2P_2 is reduced first, to T2=C2P2/(1+C2P2)T_2 = C_2 P_2/(1 + C_2 P_2). The outer loop then sees T2P1T_2 P_1, and the reference-to-output map is C1T2P1/(1+C1T2P1)C_1 T_2 P_1 /(1 + C_1 T_2 P_1).
  • The Smith predictor. In the Smith predictor, the controller CC has an inner feedback through the model P0(1−e−sτ)P_0 (1 - e^{-s\tau}). The feedback rule gives the equivalent controller C/(1+CP0(1−e−sτ))C/(1 + C P_0 (1 - e^{-s\tau})). With the plant equal to the model P0e−sτP_0 e^{-s\tau}, the reference-to-output map reduces to CP0e−sτ/(1+CP0)C P_0 e^{-s\tau}/(1 + C P_0), so the delay leaves the characteristic equation.
  • Internal model control. In internal model control, the controller QQ acts on the error between the output and a model P0P_0 driven by the same input. The feedback rule turns this into an ordinary feedback controller C=Q/(1−QP0)C = Q/(1 - Q P_0).
  • Two degrees of freedom. In two-degree-of-freedom control, u=C(Fr−y)u = C (F r - y) with a prefilter FF. The series rule and the feedback rule give y=F PC/(1+PC) ry = F\, PC/(1 + PC)\, r: FF shapes the response to rr without changing the loop.

Variations

  • Mason's gain formula. The gain formula on the signal-flow graph of the diagram gives the result with no moves, from the paths and the loops.
  • Several inputs and outputs. With matrix blocks, series is G2G1G_2 G_1 (the later block on the left), and negative feedback gives (I+GH)−1G(I + G H)^{-1} G. The push-through rule G(I+HG)−1=(I+GH)−1GG (I + H G)^{-1} = (I + G H)^{-1} G moves a matrix past a loop. See transfer function matrix.
  • State-space interconnection. Software connects the realizations of the blocks into one state-space model and reduces it to a minimal realization only at the end. This keeps every mode in view and is the safe form for numeric work.
  • Linear fractional transformations. A linear fractional transformation writes any interconnection as one feedback loop between a fixed block and the part of interest, for example an uncertainty block.

Pitfalls

  • Cancellation hides modes. A reduced transfer function can be stable while the system is not internally stable. With P=1/(s−1)P = 1/(s - 1) and C=(s−1)/(s+1)C = (s - 1)/(s + 1), the reference-to-output map is 1/(s+2)1/(s + 2), but the map from a disturbance at the plant input is (s+1)/((s−1)(s+2))(s + 1)/((s - 1)(s + 2)), which is unstable (see poles and zeros). Check the four maps SS, PSPS, CSCS and TT of a loop (the gang of four), not one, where SS is the sensitivity function.
  • Signs. Write the sign at each adder before reducing. A positive feedback loop gives 1−GH1 - GH in the denominator; a wrong sign here changes the closed-loop poles completely.
  • Order of matrix products. With matrices, G2G1≠G1G2G_2 G_1 \ne G_1 G_2 in general, and (I+GK)−1(I + G K)^{-1} is not (I+KG)−1(I + K G)^{-1}; they even have different sizes when GG is not square.
  • Algebraic loops. If 1+G(∞)H(∞)=01 + G(\infty) H(\infty) = 0 for a loop, the signals are not defined, although the formula G/(1+GH)G/(1 + GH) can still give a rational function. A loop around a constant gain −1-1 is the plainest case.
  • Moves through 1/G1/G. The move rules that use 1/G1/G need G≠0G \ne 0. If GG is strictly proper or has zeros in the right half plane, the intermediate diagram has an improper or an unstable block. This is fine as algebra, but that intermediate diagram is not a system one can build or simulate.
  • Initial conditions. The result holds only for a system at rest. A response to initial conditions needs the state-space model or the Laplace transform with the initial values.

Exercises

  1. Two blocks G1G_1 and G2G_2 in parallel are closed by a negative feedback block HH. Show that the closed-loop map is (G1+G2)/(1+(G1+G2)H)(G_1 + G_2)/(1 + (G_1 + G_2) H).
  2. In the worked example, set H1=0H_1 = 0 and keep the other blocks. Show that C/R=1/(s3+3s2+4s+3)C/R = 1/(s^3 + 3s^2 + 4s + 3).
  3. Reduce the worked example a second way: first move the adder of H1H_1 from before G1G_1 to after G1G_1. Check that the result is the same.
  4. Show the push-through rule G(I+HG)−1=(I+GH)−1GG (I + H G)^{-1} = (I + G H)^{-1} G for matrices of compatible sizes, when both inverses exist. Hint: multiply (I+GH)G=G(I+HG)(I + G H) G = G (I + H G) on both sides.
  5. For the internal model control structure, show that if QQ is stable and the plant equals the stable model P0P_0, the reference-to-output map is P0QP_0 Q.

References

  1. Katsuhiko Ogata, Modern Control Engineering, fifth edition, Prentice Hall, 2010, Chapter 2, Mathematical Modeling of Control Systems (block diagrams and their simplification)
  2. Gene F. Franklin, J. David Powell and Abbas Emami-Naeini, Feedback Control of Dynamic Systems, eighth edition, Pearson, 2019, Section 3.2.1, The Block Diagram, and Section 3.2.2, Block-Diagram Reduction Using Matlab
  3. Karl Johan Åström and Richard M. Murray, Feedback Systems, An Introduction for Scientists and Engineers, second edition, Princeton University Press, 2021, Chapter 9, Transfer Functions (block diagrams and transfer functions, and the gang of four)
  4. Sigurd Skogestad and Ian Postlethwaite, Multivariable Feedback Control, Analysis and Design, second edition, Wiley, 2005, Chapter 3, Introduction to Multivariable Control (transfer functions of block diagrams with several inputs and outputs, and the push-through rule)

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW0 stub
  • the lead paragraph