Mason's gain formula
Mason's gain formula (MGF) is a method for finding the transfer function of a linear signal-flow graph (SFG). The formula was derived by Samuel Jefferson Mason,[1] whom it is also named after. MGF is an alternate method to finding the transfer function algebraically by labeling each signal, writing down the equation for how that signal depends on other signals, and then solving the multiple equations for the output signal in terms of the input signal. MGF provides a step by step method to obtain the transfer function from a SFG. Often, MGF can be determined by inspection of the SFG. The method can easily handle SFGs with many variables and loops including loops with inner loops. MGF comes up often in the context of control systems, microwave circuits and digital filters because these are often represented by SFGs.
Formula
The gain formula is as follows:
- [math]\displaystyle{ G = \frac{y_\text{out}}{y_\text{in}} = \frac{ \sum_{k=1}^N {G_k \Delta _k} }{ \Delta\ } }[/math]
- [math]\displaystyle{ \Delta = 1 - \sum L_i + \sum L_iL_j- \sum L_iL_jL_k + \cdots + (-1)^m \sum \cdots +\cdots }[/math]
where:
- Δ = the determinant of the graph.
- yin = input-node variable
- yout = output-node variable
- G = complete gain between yin and yout
- N = total number of forward paths between yin and yout
- Gk = path gain of the kth forward path between yin and yout
- Li = loop gain of each closed loop in the system
- LiLj = product of the loop gains of any two non-touching loops (no common nodes)
- LiLjLk = product of the loop gains of any three pairwise nontouching loops
- Δk = the cofactor value of Δ for the kth forward path, with the loops touching the kth forward path removed.
Definitions[2]
- Path: a continuous set of branches traversed in the direction that they indicate.
- Forward path: A path from an input node to an output node in which no node is touched more than once.
- Loop: A path that originates and ends on the same node in which no node is touched more than once.
- Path gain: the product of the gains of all the branches in the path.
- Loop gain: the product of the gains of all the branches in the loop.
Procedure to find the solution
- Make a list of all forward paths, and their gains, and label these Gk.
- Make a list of all the loops and their gains, and label these Li (for i loops). Make a list of all pairs of non-touching loops, and the products of their gains (LiLj). Make a list of all pairwise non-touching loops taken three at a time (LiLjLk), then four at a time, and so forth, until there are no more.
- Compute the determinant Δ and cofactors Δk.
- Apply the formula.
Examples
Circuit containing two-port
The transfer function from Vin to V2 is desired.
There is only one forward path:
- Vin to V1 to I2 to V2 with gain [math]\displaystyle{ G_1 = -y_{21} R_L \, }[/math]
There are three loops:
- V1 to I1 to V1 with gain [math]\displaystyle{ L_1 = -R_\text{in} y_{11} \, }[/math]
- V2 to I2 to V2 with gain [math]\displaystyle{ L_2 = -R_L y_{22} \, }[/math]
- V1 to I2 to V2 to I1 to V1 with gain [math]\displaystyle{ L_3 = y_{21} R_L y_{12} R_\text{in} \, }[/math]
- [math]\displaystyle{ \Delta = 1 - ( L_1 + L_2 + L_3 ) + ( L_1 L_2 ) \, }[/math] note: L1 and L2 do not touch each other whereas L3 touches both of the other loops.
- [math]\displaystyle{ \Delta_1 = 1 \, }[/math] note: the forward path touches all the loops so all that is left is 1.
- [math]\displaystyle{ G = \frac { G_1 \Delta_1 } { \Delta } = \frac { -y_{21} R_L } {1 + R_\text{in}y_{11} + R_L y_{22} - y_{21} R_L y_{12} R_\text{in} + R_\text{in}y_{11} R_L y_{22} } \, }[/math]
Digital IIR biquad filter
Digital filters are often diagramed as signal flow graphs.
- There are two loops
- [math]\displaystyle{ L_1 = -a_1 Z^{-1} \, }[/math]
- [math]\displaystyle{ L_2 = -a_2 Z^{-2} \, }[/math]
- [math]\displaystyle{ \Delta = 1 - ( L_1 + L_2 ) \, }[/math] Note, the two loops touch so there is no term for their product.
- There are three forward paths
- [math]\displaystyle{ G_0 = b_0 \, }[/math]
- [math]\displaystyle{ G_1 = b_1 Z^{-1} \, }[/math]
- [math]\displaystyle{ G_2 = b_2 Z^{-2} \, }[/math]
- All the forward paths touch all the loops so [math]\displaystyle{ \Delta_0 = \Delta_1 = \Delta_2 = 1 \, }[/math]
- [math]\displaystyle{ G = \frac { G_0 \Delta_0 +G_1 \Delta_1 + G_2 \Delta_2 } {\Delta} \, }[/math]
- [math]\displaystyle{ G = \frac { b_0 + b_1 Z^{-1} + b_2 Z^{-2} } {1 +a_1 Z^{-1} + a_2 Z^{-2} } \, }[/math]
Servo
The signal flow graph has six loops. They are:
- [math]\displaystyle{ L_0 = - \frac {\beta} {sM} \, }[/math]
- [math]\displaystyle{ L_1 = \frac{-( R_M + R_S)} {sL_M} \, }[/math]
- [math]\displaystyle{ L_2 = \, \frac {-G_M K_M} {s^2 L_M M} }[/math]
- [math]\displaystyle{ L_3 = \frac {-K_C R_S} {sL_M} \, }[/math]
- [math]\displaystyle{ L_4 = \frac {-K_V K_C K_M G_T} {s^2 L_M M} \, }[/math]
- [math]\displaystyle{ L_5 = \frac {-K_P K_V K_C K_M } {s^3 L_M M} \, }[/math]
- [math]\displaystyle{ \Delta = 1 - (L_0+L_1+L_2+L_3+L_4+L_5) + (L_0 L_1 + L_0 L_3 )\, }[/math]
There is one forward path:
- [math]\displaystyle{ g_0 = \frac {K_P K_V K_C K_M } {s^3 L_M M} \, }[/math]
The forward path touches all the loops therefore the co-factor [math]\displaystyle{ \Delta_0 = 1 }[/math]
And the gain from input to output is [math]\displaystyle{ \frac {\theta_L} {\theta_C} = \frac {g_0 \Delta_0} {\Delta} \, }[/math]
Equivalent matrix form
Mason's rule can be stated in a simple matrix form. Assume [math]\displaystyle{ \mathbf{T} }[/math] is the transient matrix of the graph where [math]\displaystyle{ t_{nm} = \left[\mathbf{T}\right]_{nm} }[/math] is the sum transmittance of branches from node m toward node n. Then, the gain from node m to node n of the graph is equal to [math]\displaystyle{ u_{nm} = \left[\mathbf{U}\right]_{nm} }[/math], where
- [math]\displaystyle{ \mathbf{U} = \left ( \mathbf{I} - \mathbf{T} \right ) ^ {-1} }[/math],
and [math]\displaystyle{ \mathbf{I} }[/math] is the identity matrix.
Mason's Rule is also particularly useful for deriving the z-domain transfer function of discrete networks that have inner feedback loops embedded within outer feedback loops (nested loops). If the discrete network can be drawn as a signal flow graph, then the application of Mason's Rule will give that network's z-domain H(z) transfer function.
Complexity and computational applications
Mason's Rule can grow factorially, because the enumeration of paths in a directed graph grows dramatically. To see this consider the complete directed graph on [math]\displaystyle{ n }[/math] vertices, having an edge between every pair of vertices. There is a path form [math]\displaystyle{ y_\text{in} }[/math] to [math]\displaystyle{ y_\text{out} }[/math] for each of the [math]\displaystyle{ (n-2)! }[/math] permutations of the intermediate vertices. Thus Gaussian elimination is more efficient in the general case.
Yet Mason's rule characterizes the transfer functions of interconnected systems in a way which is simultaneously algebraic and combinatorial, allowing for general statements and other computations in algebraic systems theory. While numerous inverses occur during Gaussian elimination, Mason's rule naturally collects these into a single quasi-inverse. General form is
- [math]\displaystyle{ \frac{p}{1-q}, }[/math]
Where as described above, [math]\displaystyle{ q }[/math] is a sum of cycle products, each of which typically falls into an ideal (for example, the strictly causal operators). Fractions of this form make a subring [math]\displaystyle{ R(1+\langle L_i\rangle)^{-1} }[/math] of the rational function field. This observation carries over to the noncommutative case,[3] even though Mason's rule itself must then be replaced by Riegle's rule.
See also
Notes
- ↑ Mason, Samuel J. (July 1956). "Feedback Theory - Further Properties of Signal Flow Graphs". Proceedings of the IRE 44 (7): 920–926. doi:10.1109/jrproc.1956.275147. http://dspace.mit.edu/bitstream/1721.1/4778/1/RLE-TR-303-15342712.pdf.
- ↑ Kuo, Benjamin C. (1967). Automatic Control Systems (2nd ed.). Prentice-Hall. pp. 59–60.
- ↑ Pliam, J.O.; Lee,E.B. (1995). "On the global properties of interconnected systems". IEEE Trans. Circuits and Syst. I 42 (12): 1013–1017. doi:10.1109/81.481196.
References
- Bolton, W. Newnes (1998). Control Engineering Pocketbook. Oxford: Newnes.
- Van Valkenburg, M. E. (1974). Network Analysis (3rd ed.). Englewood Cliffs, NJ: Prentice-Hall.
Original source: https://en.wikipedia.org/wiki/Mason's gain formula.
Read more |