S9 · Lesson 46 · Multivariable control and decoupling
Plants with several inputs and outputs: the gain matrix, interaction and the relative gain array, pairing loops, static decoupling, and ill-conditioned plants
A shower has two valves and two things you care about: how hot the water is and how much of it there is. Open the hot valve and both change. Adjust one to fix the temperature and the flow moves; fix the flow and the temperature drifts. Two people each minding one variable with one valve would fight each other. Most real plants are like this: a distillation column's compositions, a power converter's two outputs, an aircraft's pitch and speed. Multivariable control asks how strongly the loops interact, which input should control which output, and how to undo the coupling.
- The curve is the relative gain of a 2 × 2 plant against its coupling , the product of the cross gains over the product of the direct ones.
- With no coupling, κ = 0 and λ = 1: each loop behaves the same whether the other is open or closed.
- As κ approaches 1, λ blows up and the plant becomes nearly singular; for κ > 1, λ is negative and that pairing changes sign when the other loop closes.
Predict
A shower mixes hot water at 60 °C and cold at 20 °C, half a kilogram per second of each. If one loop controls temperature with the hot valve and another controls flow with the cold valve, how much does each loop's effective gain change when the other loop closes?
At this operating point the gain matrix from (hot, cold) to (flow, temperature) is (in kg/s and °C per kg/s), so κ = (1 × 20)/(1 × (−20)) = −1 and λ = 1/(1 + 1) = 0.5. Every element of the relative gain array is 0.5: both pairings interact equally strongly, which is why a shower is easier with a mixing valve that separates flow from temperature.
Name it
The gain matrix
A plant with inputs u and outputs y has a transfer matrix G(s), . At steady state it's the gain matrix , with the change in output i per unit of input j with the others held fixed.
The relative gain array
Bristol's relative gain compares input j's effect on output i with the other loops open (the others' inputs held fixed) to its effect with them closed perfectly (the others' outputs held fixed):
For a 2 × 2 plant, and ; every row and column of Λ sums to 1. When the other loop closes, loop 1's effective gain becomes .
Pairing
- Pair each output with the input whose relative gain is closest to 1: the loop then behaves about the same whatever the others do.
- Never pair on a negative relative gain: closing the other loops reverses that loop's gain, and with integral action it goes unstable.
- Large relative gains (above about 10) mean the plant is nearly singular: small model errors make large errors in the inverse, and decentralized control struggles.
Decoupling
A static decoupler in front of the plant makes the steady-state gain from the new inputs v to y the identity, , so single-loop controllers can act on v. For the shower it's hot = 0.5F + 0.025T, cold = 0.5F − 0.025T: adjust both valves together for flow, oppositely for temperature. Its accuracy depends on K's condition number, the ratio of largest to smallest singular value: an ill-conditioned K has a direction in which the plant barely responds, and its inverse amplifies any error in that direction.
Worked example
Find the relative gain array of the shower at 0.5 kg/s each of 60 °C and 20 °C water, and its decoupler.
Show the solution
- The model.
- Linearize. At 0.5 kg/s each, T = 40 °C and
- Gain matrix.
- Relative gains. so every relative gain is 0.5.
- Decoupler. With det K = −40: It moves both valves equally for flow and in opposition for temperature.
Answer every relative gain is 0.5, and the decoupler is above.
Worked example
A plant has . Find , loop 1's effective gain with loop 2 closed, and K's condition number.
Show the solution
- Interaction measure.
- Relative gain.
- Effective gain. Closing loop 2 cuts loop 1's gain from 2 to
- Condition number. The singular values are 2.87 and 0.174, so
- What it means. The plant responds 16 times more weakly in one input direction than another, and a decoupler built from a slightly wrong K could amplify errors badly in that weak direction.
Answer = 4, loop 1's gain falls to 0.5 with loop 2 closed, and the condition number is 16.4.
Worked example
A plant has . Which pairing should be used?
Show the solution
- Interaction measure.
- Relative gains.
- The diagonal pairing. Pairing output 1 with input 1 would use a negative relative gain: closing the other loop flips that loop's sign, and integral action drives it unstable.
- The other pairing. Pair output 1 with input 2 and output 2 with input 1 instead, whose relative gain of 2 is positive, though still far enough from 1 to show real interaction.
Answer pair output 1 with input 2 and output 2 with input 1.
Check
A 2 × 2 plant has gain matrix .
(a)
What is ?
(b)
What is ?
(c)
What is loop 1's gain when loop 2 holds its output perfectly?
Check
A shower mixes 0.5 kg/s of hot water at 60 °C with 0.7 kg/s of cold at 10 °C.
(a)
What is the mixed temperature?
(b)
How many °C does the temperature rise per extra kg/s of hot water?
Check
A 2 × 2 plant has . A static decoupler is placed ahead of it.
(a)
What is ?
(b)
What is ?
Check
Find the condition number of .
(a)
What is ?
Check
A plant has , with strong cross gains.
(a)
What is for the diagonal pairing?
(b)
What is the relative gain of the off-diagonal pairing?
Check
Why is pairing a loop on a negative relative gain dangerous?
Check
A 2 × 2 gain matrix with entries a, b (first row) and c, d (second row).
Step 1
What is κ?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What is ?
Step 3
What is loop 1's gain with loop 2 closed perfectly?
Check
Write inverse(K) for a square list-of-lists matrix (Gauss–Jordan with partial pivoting) and rga(K): the relative gain array .
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Explain why
What does a relative gain close to 1, or far from it, tell an engineer about decentralized control of a multivariable plant?
A relative gain compares how strongly an input moves its paired output when the other loops are open with how strongly it does when the other loops hold their outputs fixed. A value close to 1 means closing the other loops barely changes this loop's gain, so the loops can be tuned one at a time and work together as designed. Values far above 1 mean the other loops largely cancel this input's effect, a sign the plant is close to singular and sensitive to model errors. Negative values mean the effective gain flips sign when the others close, which makes that pairing unworkable. When no pairing gives relative gains near 1, a decoupler or a fully multivariable design is needed.
Practice
Keep practicing
8 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.