Mason’s gain formula – Wikipedia

From Wikipedia, the free encyclopedia

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[edit]

The gain formula is as follows:

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][edit]

  • 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[edit]

  1. Make a list of all forward paths, and their gains, and label these Gk.
  2. 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.
  3. Compute the determinant Δ and cofactors Δk.
  4. Apply the formula.

Examples[edit]

Circuit containing two-port[edit]

Signal flow graph of a circuit containing a two port. The forward path from input to output is shown in a different color.

The transfer function from Vin to V2 is desired.

There is only one forward path:

  • Vin to V1 to I2 to V2 with gain

There are three loops:

  • V1 to I1 to V1 with gain
  • V2 to I2 to V2 with gain
  • V1 to I2 to V2 to I1 to V1 with gain

Digital IIR biquad filter[edit]

The signal flow graph (SFG) for a digital infinite impulse response bi-quad filter. This SFG has three forward paths and two loops.

Digital filters are often diagramed as signal flow graphs.

There are two loops

There are three forward paths

All the forward paths touch all the loops so

Servo[edit]

Angular position servo and signal flow graph. θC = desired angle command, θL = actual load angle, KP = position loop gain, VωC = velocity command, VωM = motor velocity sense voltage, KV = velocity loop gain, VIC = current command, VIM = current sense voltage, KC = current loop gain, VA = power amplifier output voltage, VM = effective voltage across the inductance, LM = motor inductance, IM = motor current, RM = motor resistance, RS = current sense resistance, KM = motor torque constant (Nm/amp), T = torque, M = moment of inertia of all rotating components α = angular acceleration, ω = angular velocity, β = mechanical damping, GM = motor back EMF constant, GT = tachometer conversion gain constant. There is one forward path (shown in a different color) and six feedback loops. The drive shaft assumed to be stiff enough to not treat as a spring. Constants are shown in black and variables in purple.

The signal flow graph has six loops. They are:

There is one forward path:

The forward path touches all the loops therefore the co-factor

Δ0=1{displaystyle Delta _{0}=1}

And the gain from input to output is

θLθC=g0Δ0Δ{displaystyle {frac {theta _{L}}{theta _{C}}}={frac {g_{0}Delta _{0}}{Delta }},}

Equivalent matrix form[edit]

Mason’s rule can be stated in a simple matrix form. Assume

T{displaystyle mathbf {T} }

is the transient matrix of the graph where

tnm=[T]nm{displaystyle t_{nm}=left[mathbf {T} right]_{nm}}

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

unm=[U]nm{displaystyle u_{nm}=left[mathbf {U} right]_{nm}}

, where

and

I{displaystyle mathbf {I} }

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[edit]

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

n{displaystyle n}

vertices, having an edge between every pair of vertices. There is a path form

yin{displaystyle y_{text{in}}}

to

yout{displaystyle y_{text{out}}}

for each of the

(n2)!{displaystyle (n-2)!}

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

Where as described above,

q{displaystyle q}

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

R(1+Li)1{displaystyle R(1+langle L_{i}rangle )^{-1}}

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[edit]

References[edit]

  • Bolton, W. Newnes (1998). Control Engineering Pocketbook. Oxford: Newnes.
  • Van Valkenburg, M. E. (1974). Network Analysis (3rd ed.). Englewood Cliffs, NJ: Prentice-Hall.