Technical documentation

Technical Documentation: H∞\mathcal{H}_\infty LPV-LFT Control

Interactive course notes and documentation

How to read this page

This page explains, step by step, how to build a tracking controller for a mass-spring-damper system whose stiffness varies with a parameter. It goes from the physical model to the H∞ synthesis problem, with two interactive modules to build intuition about signal energy and system gain.

The page separates several levels of statement, which should not be confused:

Problem formulation
Sections 1 to 3 define the model, the LFT, the generalized plant and the weights.
Sufficient condition
The LMI conditions of the framework in [1] are sufficient for the stated gain, not necessary.
Numerical feasibility
The value γ ≈ 0.838 comes from an offline solver run. The browser does not solve the LMIs again.
Stated guarantee
The synthesis states stability and performance for |ρ| ≤ 1/γ ≈ 1.19, for the design model without actuator saturation.
Simulation
The simulation is an illustration in discrete time. A run does not prove stability or performance.

1. Physical model & LFT

The system under study is a classical Mass-Spring-Damper (MSD) mechanical system. It consists of a mass mm sliding on a frictionless horizontal surface, attached to a fixed wall via a spring with stiffness k(ρ(t))k(\rho(t)) and a damper with coefficient cc. The system is subject to a control input u(t)u(t) and the goal of this wiki is to explain how to construct a tracking controller for this system using H∞\mathcal{H}_\infty LPV-LFT control.

Figure 1: Schematic of the LPV Mass-Spring-Damper system. The force u(t)u(t) is applied to the mass and its position y(t)y(t) is measured from rest, both counted positive to the right.
Click the figure to zoom.

The equation of motion is derived from Newton's Second Law:

my¨(t)+cy˙(t)+k(ρ(t))y(t)=u(t)m \ddot{y}(t) + c \dot{y}(t) + k(\rho(t)) y(t) = u(t)

The stiffness k(ρ(t))k(\rho(t)) is parameter-dependent: k(ρ(t))=k0(1+αρ(t))k(\rho(t)) = k_0(1 + \alpha\rho(t)). Physical parameters are presented in Table 1.

Table 1: Physical parameters of the LPV Mass-Spring-Damper system.
ParameterValueUnit
mm (mass)1kg
cc (damping)2N·s/m
k0k_0 (nominal stiffness)10N/m
α\alpha (stiffness gain)0.4—

The system written just above is a Linear Parameter Varying (LPV) system: its dynamics depend on the time-varying parameter ρ(t)\rho(t), which sets the stiffness k(ρ(t))k(\rho(t)). To apply robust control tools, we must isolate the parameter variation from the nominal dynamics. This is done using a Linear Fractional Transformation (LFT), which creates a fictitious feedback loop with the parameter ρ\rho. Here is the derivation of the LFT:

2. Generalized LPV-LFT Model for synthesis

Now that we have the LPV-LFT system, we can proceed to the controller synthesis. Figure 2 illustrates a classical mixed-sensitivity synthesis scheme, a standard architecture in robust control design. It consists of three main components:

  • Plant PP: Represents the Mass-Spring-Damper (MSD) system. It encapsulates both the nominal dynamics and the LFT decomposition of the varying stiffness.
  • Controller KK: The controller we aim to synthesize. It also reads the parameter ρ(t)\rho(t), through an LFT loop of its own (Figure 2). Its internal architecture—derived to handle ρ(t)\rho(t)—will be detailed in Section 4.
  • Weighting Filters (We,WuW_e, W_u): Strictly design tools grafted onto the physical signals (the error ee and the control signal uu). They translate performance specifications into mathematical constraints.
Figure 2: The Synthesis Scheme. The same parameter ρ(t)\rho(t) is looped on the plant and on the controller.
Click the figure to zoom.

By combining the LPV system model (Section 1) and the weighting filters presented in Figure 2, we construct the Generalized LPV Model. This is a single augmented state-space system that the optimizer 'sees'.

First, we need to define the two state models induced by the filters WeW_e and WuW_u:

x˙e(t)=Aexe(t)+Bee(t)e′(t)=Cexe(t)+Dee(t)\begin{aligned} \dot{\mathbf{x}}_e(t)&=\mathbf{A}_e \mathbf{x}_e(t)+\mathbf{B}_e e(t) \\ e'(t)&=\mathbf{C}_e \mathbf{x}_e(t)+\mathbf{D}_e e(t) \end{aligned}
x˙u(t)=Auxu(t)+Buu(t)u′(t)=Cuxu(t)+Duu(t)\begin{aligned} \dot{\mathbf{x}}_u(t)&=\mathbf{A}_u \mathbf{x}_u(t)+\mathbf{B}_u u(t) \\ u'(t)&=\mathbf{C}_u \mathbf{x}_u(t)+\mathbf{D}_u u(t) \end{aligned}

The augmented state vector ξ\boldsymbol{\xi} concatenates the system states and the filter states:

ξ(t)=[x⊤(t)xe⊤(t)xu⊤(t)]⊤\boldsymbol{\xi}(t) = \begin{bmatrix} \mathbf{x}^\top(t) & \mathbf{x}_e^\top(t) & \mathbf{x}_u^\top(t) \end{bmatrix}^\top

To construct the augmented matrices, we must express the dynamics of the filters in terms of the global system inputs (wρ,r,uw_\rho, r, u) and the augmented state vector ξ\boldsymbol{\xi}. Based on the synthesis scheme (Figure 2), the error signal is defined as e(t)=r(t)−y(t)=r(t)−Cyx(t)e(t) = r(t) - y(t) = r(t) - \mathbf{C}_y \mathbf{x}(t).

Augmented State Dynamics
We substitute the error equation into the state equation of the performance filter WeW_e. The control filter WuW_u depends only on the control input uu. By assembling these with the nominal system dynamics, we obtain:

x˙(t)=Anomx(t)+Bρwρ(t)+Bu(t)x˙e(t)=Aexe(t)+Be(r(t)−Cyx(t))=−BeCyx(t)+Aexe(t)+Ber(t)x˙u(t)=Auxu(t)+Buu(t)\begin{aligned} \dot{\mathbf{x}}(t) &= \mathbf{A}_{\text{nom}}\mathbf{x}(t) + \mathbf{B}_\rho w_\rho(t) + \mathbf{B} u(t) \\ \dot{\mathbf{x}}_e(t) &= \mathbf{A}_e \mathbf{x}_e(t) + \mathbf{B}_e (r(t) - \mathbf{C}_y \mathbf{x}(t)) \\ &= -\mathbf{B}_e \mathbf{C}_y \mathbf{x}(t) + \mathbf{A}_e \mathbf{x}_e(t) + \mathbf{B}_e r(t) \\ \dot{\mathbf{x}}_u(t) &= \mathbf{A}_u \mathbf{x}_u(t) + \mathbf{B}_u u(t) \end{aligned}

We then write the equations in term of ξ\boldsymbol{\xi}:

[x˙(t)x˙e(t)x˙u(t)]⏟ξ˙(t)=[Anom00−BeCyAe000Au]⏟A[x(t)xe(t)xu(t)]+[Bρ00]⏟Bρwρ(t)+[0Be0]⏟Brr(t)+[B0Bu]⏟Buu(t)\underbrace{\begin{bmatrix} \dot{\mathbf{x}}(t) \\ \dot{\mathbf{x}}_e(t) \\ \dot{\mathbf{x}}_u(t) \end{bmatrix}}_{\dot{\boldsymbol{\xi}}(t)} = \underbrace{\begin{bmatrix} \mathbf{A}_{\text{nom}} & \mathbf{0} & \mathbf{0} \\ -\mathbf{B}_e \mathbf{C}_y & \mathbf{A}_e & \mathbf{0} \\ \mathbf{0} & \mathbf{0} & \mathbf{A}_u \end{bmatrix}}_{\mathcal{A}} \begin{bmatrix} \mathbf{x}(t) \\ \mathbf{x}_e(t) \\ \mathbf{x}_u(t) \end{bmatrix} + \underbrace{\begin{bmatrix} \mathbf{B}_\rho \\ \mathbf{0} \\ \mathbf{0} \end{bmatrix}}_{\mathcal{B}_\rho} w_\rho(t) + \underbrace{\begin{bmatrix} \mathbf{0} \\ \mathbf{B}_e \\ \mathbf{0} \end{bmatrix}}_{\mathcal{B}_r} r(t) + \underbrace{\begin{bmatrix} \mathbf{B} \\ \mathbf{0} \\ \mathbf{B}_u \end{bmatrix}}_{\mathcal{B}_u} u(t)

Completing the System Representation
The state equation derived above governs how the system evolves internally. To fully characterize the Generalized Plant, we must now define how it interacts with its environment. This requires specifying the output equations for three distinct loops: the parameter variation loop, the performance evaluation loop (outputs of WeW_e and WuW_u), and the feedback loop to the controller. Table 2 provides a structured summary of these essential channels.

Table 2: Signal definitions for the Standard LPV Interconnection.
ChannelDescription
Parametric (zρ→wρz_\rho\to w_\rho)Interaction with the varying parameter ρ(t)\rho(t). The signal zρz_\rho 'senses' the state affected by the parameter, and wρw_\rho reinjects the variation effect.
Performance (r→wr \to \mathbf{w})Maps exogenous inputs (Reference rr) to regulated outputs (Weighted Error e′e', Weighted Control u′u'). This channel defines what we want to optimize.
Control (u→eu \to e)Physical interface. uu is the force applied by the actuator. The sensor measures the position yy, and the controller receives the tracking error e=r−ye = r - y.

Parametric Loop (zρ→wρz_\rho \to w_\rho):
The LFT feedback signal zρz_\rho depends exclusively on the physical system states x\mathbf{x}. However, to maintain a unified state-space representation for the generalized plant, we must express this output in terms of the augmented state vector ξ\boldsymbol{\xi}. This is done by zero-padding the matrix to account for the filter states:

zρ(t)=Cρx(t)=[Cρ00]⏟Cρ[x(t)xe(t)xu(t)]⏟ξ(t)z_\rho(t) = \mathbf{C}_\rho \mathbf{x}(t) = \underbrace{\begin{bmatrix} \mathbf{C}_\rho & \mathbf{0} & \mathbf{0} \end{bmatrix}}_{\mathcal{C}_\rho} \underbrace{\begin{bmatrix} \mathbf{x}(t) \\ \mathbf{x}_e(t) \\ \mathbf{x}_u(t) \end{bmatrix}}_{\boldsymbol{\xi}(t)}

Regulated Outputs w\mathbf{w}:
The performance vector w\mathbf{w} consists of the weighted error e′e' and the weighted control effort u′u'. We substitute the physical error expression into the output equation of WeW_e:

e′(t)=Cexe(t)+De(r(t)−Cyx(t))=−DeCyx(t)+Cexe(t)+Der(t)u′(t)=Cuxu(t)+Duu(t)⟹w(t)≜[e′(t)u′(t)]=[−DeCyCe000Cu]⏟Cwξ(t)+[De0]⏟Dwrr(t)+[0Du]⏟Dwuu(t)\begin{aligned} e'(t) &= \mathbf{C}_e \mathbf{x}_e(t) + \mathbf{D}_e (r(t) - \mathbf{C}_y \mathbf{x}(t)) \\ &= -\mathbf{D}_e \mathbf{C}_y \mathbf{x}(t) + \mathbf{C}_e \mathbf{x}_e(t) + \mathbf{D}_e r(t) \\ u'(t) &= \mathbf{C}_u \mathbf{x}_u(t) + \mathbf{D}_u u(t) \\ \Longrightarrow\quad\mathbf{w}(t) \triangleq \begin{bmatrix}e'(t)\\u'(t)\end{bmatrix}&= \underbrace{\begin{bmatrix}-\mathbf{D}_e\mathbf{C}_y &\mathbf{C}_e &\mathbf{0}\\\mathbf{0}&\mathbf{0}&\mathbf{C}_u\end{bmatrix}}_{\mathcal{C}_w}\boldsymbol{\xi}(t)+\underbrace{\begin{bmatrix}\mathbf{D}_e\\\mathbf{0}\end{bmatrix}}_{\mathcal{D}_{wr}}r(t)+\underbrace{\begin{bmatrix}\mathbf{0}\\\mathbf{D}_u\end{bmatrix}}_{\mathcal{D}_{wu}}u(t) \end{aligned}

Measurement Output ee:
Finally, the controller observes the tracking error ee. This observation equation acts as the feedback interface (we already have written it before):

e(t)=r(t)−Cyx(t)=[−Cy00]⏟Ceξ(t)+r(t)e(t) = r(t) - \mathbf{C}_y \mathbf{x}(t) = \underbrace{\begin{bmatrix}-\mathbf{C}_y&\mathbf{0}&\mathbf{0}\end{bmatrix}}_{\mathcal{C}_e}\boldsymbol{\xi}(t) + r(t)

By stacking these equations into matrix form, we identify the specific blocks of the generalized plant.

The full interconnection is described by the partitioned matrix:

[ξ˙(t)zρ(t)w(t)e(t)]=[ABρBrBuCρ000Cw0DwrDwuCe010][ξ(t)wρ(t)r(t)u(t)]\begin{bmatrix} \dot{\boldsymbol{\xi}}(t) \\ z_\rho(t) \\ \mathbf{w}(t) \\ e(t) \end{bmatrix} = \begin{bmatrix} \mathcal{A} & \mathcal{B}_\rho & \mathcal{B}_r & \mathcal{B}_u \\ \mathcal{C}_\rho & \mathbf{0} & \mathbf{0} & \mathbf{0} \\ \mathcal{C}_w & \mathbf{0} & \mathcal{D}_{wr} & \mathcal{D}_{wu} \\ \mathcal{C}_e & \mathbf{0} & 1 & \mathbf{0} \end{bmatrix} \begin{bmatrix} \boldsymbol{\xi}(t) \\ w_\rho(t) \\ r(t) \\ u(t) \end{bmatrix}

We can now focus on the explicit definition of the filters WeW_e and WuW_u.

3. Weighting Filters Design

The synthesis process relies on properly shaping the closed-loop response. Before solving the optimization problem, we must define the performance requirements (WeW_e and WuW_u) and formally state the input-output map (The Operator).

As we can see on Figure 2, we do not minimize the physical error directly. Instead, we use weighting filters WeW_e and WuW_u to shape the signals. These filters act as frequency-dependent penalties. The choice of these transfer functions dictates the trade-off between performance and robustness. For this example, we select:

We(s)=0.5s+3s+0.06,Wu(s)=2s+0.2s+10W_e(s) = \frac{0.5s + 3}{s + 0.06}, \quad W_u(s) = \frac{2s + 0.2}{s + 10}

Justification of WeW_e (Performance):
This filter shapes the sensitivity function SS (the transfer from reference rr to error ee). The fundamental constraint is ∣S(jω)∣<1/∣We(jω)∣|S(j\omega)| < 1/|W_e(j\omega)| and is represented in Figure 3. To ensure high precision, we focus on the behavior at zero frequency (s→0s \to 0).

  • Frequency Zero implies Steady-State: A frequency of zero (s=0s=0) corresponds to a signal that does not change over time (a constant). Therefore, the filter's gain at s=0s=0 dictates the system's behavior in the steady-state regime (as t→∞t \to \infty).
  • Static Gain Calculation: Evaluating the filter at s=0s=0 yields: We(0)=0.5(0)+30+0.06=30.06=50W_e(0) = \frac{0.5(0) + 3}{0 + 0.06} = \frac{3}{0.06} = 50. This means the filter demands an amplification of 50 for constant signals.
  • Precision Guarantee (2% Error): Since the constraint forces the error sensitivity ∣S∣|S| to be less than the inverse of the weight, we have: ∣S(0)∣<1We(0)=150=0.02|S(0)| < \frac{1}{W_e(0)} = \frac{1}{50} = 0.02. So, for a constant reference and a frozen parameter, the steady-state error will never exceed 2%, as soon as the synthesis reaches the objective ∥WeS∥∞<1\|W_e S\|_\infty < 1. For a time-varying ρ(t)\rho(t), this frequency-by-frequency reading is only an approximation: what the synthesis really bounds is the L2L_2 gain of the whole weighted operator (Section 4).

Justification of WuW_u (Control Effort & Robustness):
This filter shapes the Control Sensitivity function KSKS (the transfer from reference rr to control input uu). The constraint is ∣KS(jω)∣<1/∣Wu(jω)∣|KS(j\omega)| < 1/|W_u(j\omega)| and is represented in Figure 3. We analyze the inverse of the weight (the ceiling) at the frequency extremes:

  • Low Frequencies (s→0s \to 0): Permissiveness.
    At steady-state, Wu(0)=0.210=0.02⇒1Wu(0)=50W_u(0) = \frac{0.2}{10} = 0.02 \Rightarrow \frac{1}{W_u(0)} = 50. This sets a high ceiling (50) for the control action. It allows the controller to generate large static forces (up to 50 times the reference amplitude) if necessary to compress the spring and eliminate the static error. We do not want to restrict the controller's authority here.
  • High Frequencies (s→∞s \to \infty): Restriction (Roll-off).
    At high frequencies, Wu(s)∼2ss=2W_u(s) \sim \frac{2s}{s} = 2 as s→∞s \to \infty, hence 1Wu(∞)=0.5\frac{1}{W_u(\infty)} = 0.5. This sets a low ceiling (0.5). At these frequencies the loop no longer has any effect and S≈1S \approx 1, so KS≈KKS \approx K: this forces the controller gain to drop below 0.5 (−6 dB) in high frequencies. This enforces a strict Roll-off, ensuring the controller ignores high-frequency sensor noise (to avoid actuator jitter) and remains robust against unmodeled dynamics.
Figure 3: Frequency response of the weighting filters.
Click the figure to zoom.

4. L2L_2-norm, H∞\mathcal{H}_\infty-norm and H∞\mathcal{H}_\infty-synthesis

In the first three sections, all the objects related to the design of an H∞\mathcal{H}_\infty controller have been defined and motivated. But to be honest, it is perfectly normal for you to wonder what H∞\mathcal{H}_\infty actually is and what its purpose is. This section is therefore dedicated to this topic.

The H∞\mathcal{H}_\infty-norm is a norm based on signal energy (L2L_2-norm). Let's firstly define this L2L_2-norm.

The L2L_2-norm of a signal u(t)u(t) can be infinite, e.g. u(t)=sin⁡(t)u(t) = \sin(t) or u(t)=cos⁡(t)u(t) = \cos(t) have infinite energy. A necessary condition for a uniformly continuous signal to have a finite L2L_2-norm is that its value tends to zero as tt goes to infinity. This is not a sufficient condition, e.g. u(t)=1t+1u(t) = \frac{1}{\sqrt{t+1}} has an infinite L2L_2-norm but tends to zero (but not fast enough) as tt goes to infinity.

The purpose of this section is not to delve into the theoretical depths of the L2L_2-norm. However, the module below is available for those who wish to gain a practical sense of this metric. Use it to experiment with different signals and see firsthand which ones possess finite energy. It displays the norm ∥u∥2\|u\|_2, that is the square root of the integral above, and draws the integral itself as a reference line.

Signal L2L_2 Norm Explorer

Enter a function of time 't' (e.g., sin(t)*exp(-0.5*t)) to visualize its energy. The blue area represents the squared magnitude.

Documentation

Supported functions
  • sin
  • cos
  • tan
  • exp
  • log
  • sqrt
  • sinh
  • cosh
  • tanh
Syntax rules
  • Powers: use ^ or ** (e.g. t^2)
  • Multiplication: explicit * is safer (2*t)
  • Constants: pi is available, use exp(1) for e
Approximation limits

For very complex non-linear functions, this approximation may differ from the exact theoretical value or fail to converge.

05.0e-101.0e-9012345t (s)
  • u(t)
  • |u(t)|²
  • ∫₀ᵗ |u(τ)|² dτ (accumulated energy)

The plot above is computed directly. To get the exact and numeric value of the norm, SymPy and SciPy run in your browser: this downloads about 90 MB from cdn.jsdelivr.net, once.

Find the Worst-Case Input

Below is a stable linear system (unknown to you). Try to find an input signal u(t)=sin⁡(ωt)u(t)=\sin(\omega t) that maximizes the gain (output norm / input norm). For a sine input, in steady state, this ratio is exactly ∣H(jω)∣|H(j\omega)|, which is what the module plots. If you maximize this ratio, you have found the H∞\mathcal{H}_\infty norm of the system.

Input u(t) and output y(t)

-505051015Time (s)
  • Input u(t)
  • Output y(t)

Gain ‖y‖ / ‖u‖ = |H(jω)| at the frequencies explored

0246510ω (rad/s)
  • Gain

u(t) = sin(ωt)

Current gain ratio
7.0711
Your max found
7.0711

To mathematically formulate the problem, we define the Closed-Loop Operator Tzw\mathbf{T}_{zw}. This operator maps the exogenous input rr to the regulated performance outputs w\mathbf{w}:

w=Tzw(P,K,ρ) r\mathbf{w} = \mathbf{T}_{zw}(P, K, \rho)\, r
Figure 4: The closed-loop operator Tzw\mathbf{T}_{zw}: the whole dashed box, seen as a single system. The same measured parameter ρ(t)\rho(t) is looped on the plant at the top and on the controller at the bottom, as in [1].
Click the figure to zoom.

Figure 4 shows what is inside this operator. Once the plant PP, the controller KK and the parameter ρ\rho are connected, the signals zρz_\rho, wρw_\rho, ee, uu, zθ\mathbf{z}_\theta and wθ\mathbf{w}_\theta stay inside the loop. Seen from outside, only the reference rr enters and only the weighted signals w\mathbf{w} leave. That is all Tzw\mathbf{T}_{zw} is: the map between the two.

Its gain compares the size of what leaves with the size of what enters. Keeping this gain below γ\gamma means that, for every non-zero rr of finite energy, from zero initial conditions and for every admissible ρ(t)\rho(t):

∥w∥2<γ ∥r∥2\|\mathbf{w}\|_2 < \gamma\, \|r\|_2

Since w\mathbf{w} gathers the weighted error e′e' and the weighted control u′u', a small gain means a small tracking error and a restrained control effort, in the frequency ranges emphasized by WeW_e and WuW_u.

This operator depends on the Generalized Plant PP, the Controller KK and the parameter ρ\rho. The H∞\mathcal{H}_\infty synthesis problem is formulated as follows:

Let's read this line slowly, because γ\gamma appears twice, and that is no accident. On the right, γ\gamma is the performance level: the smaller it is, the better. Under the sup⁡\sup, 1/γ1/\gamma is the range of ρ\rho covered by the guarantee. Both are linked by the small-gain idea: if what surrounds ρ\rho has a gain below γ\gamma and if ∣ρ∣≤1/γ|\rho| \le 1/\gamma, a signal going around the loop through ρ\rho comes back smaller than it left, so the loop stays stable. Lowering γ\gamma therefore improves the performance and widens the range of ρ\rho at the same time. Here, the synthesis reaches γ≈0.838\gamma \approx 0.838, which gives ∣ρ∣≤1/γ≈1.19|\rho| \le 1/\gamma \approx 1.19 and covers the design range ∣ρ∣≤1|\rho| \le 1.

Note on Controller Structure:
It is important to note that the controller structure (LPV-LFT) is not an arbitrary choice. Following the methodology of Apkarian & Gahinet [1], assigning the controller the same parameter dependence (LFT) as the plant allows the non-convex optimization problem to be transformed into a convex system of Linear Matrix Inequalities (LMIs). Convexity is exactly what we are looking for: there are no local minima to get stuck in, so the solver either returns the best γ\gamma of this framework, up to numerical tolerance, or tells us that the LMIs have no solution. One precision though: these LMIs are a sufficient condition for the stated gain on the LPV problem, not a necessary one. Our γ\gamma is thus the best of this framework, not necessarily the best any LPV controller could reach, and the guarantee stays cautious. You can feel it on the code of the simulation: with a frozen parameter and without actuator saturation, the loop stays stable well beyond ∣ρ∣=1.19|\rho| = 1.19, down to ρ≈−2.5\rho \approx -2.5, where the stiffness vanishes (k=0k = 0). This does not mean the guarantee goes that far: outside ∣ρ∣≤1/γ|\rho| \le 1/\gamma, nothing is proven.

What is inside K(ρ)K(\rho)?
As promised in Section 2, let's open the controller. Look at the bottom of Figure 4: KK is a linear time-invariant block, which never changes, looped on ρ(t)\rho(t) exactly like the plant at the top. Since ρ(t)\rho(t) is measured in real time, the controller can use its current value at every instant: this is what makes it gain-scheduled. Here it is in discrete time, as it runs in the simulation (the index θ\theta comes from [1], where the parameter block is called Θ\Theta):

xK[k+1]=AKxK[k]+BK1e[k]+BKθwθ[k]u[k]=CK1xK[k]+DK11e[k]+DK1θwθ[k]zθ[k]=CKθxK[k]+DKθ1e[k]+DKθθwθ[k]wθ[k]=ρ[k] zθ[k]\begin{aligned} \mathbf{x}_K[k+1] &= \mathbf{A}_K \mathbf{x}_K[k] + \mathbf{B}_{K1} e[k] + \mathbf{B}_{K\theta} \mathbf{w}_\theta[k] \\ u[k] &= \mathbf{C}_{K1} \mathbf{x}_K[k] + \mathbf{D}_{K11} e[k] + \mathbf{D}_{K1\theta} \mathbf{w}_\theta[k] \\ \mathbf{z}_\theta[k] &= \mathbf{C}_{K\theta} \mathbf{x}_K[k] + \mathbf{D}_{K\theta 1} e[k] + \mathbf{D}_{K\theta\theta} \mathbf{w}_\theta[k] \\ \mathbf{w}_\theta[k] &= \rho[k]\, \mathbf{z}_\theta[k] \end{aligned}

The matrices AK,…,DKθθ\mathbf{A}_K, \dots, \mathbf{D}_{K\theta\theta} are constant: the LMIs give them once and for all, offline, and the browser never solves anything. The controller has 4 states, as many as the generalized plant (2 for the mass, 1 for each filter). Its loop on ρ\rho has 2 channels, hence the block ρ(t) I2\rho(t)\, \mathbf{I}_2 in Figure 4. When ρ\rho changes, no matrix is recomputed: only the signal going around this loop changes, and the output uu adapts with it. One practical detail: wθ\mathbf{w}_\theta appears on both sides of its own equation, through zθ\mathbf{z}_\theta. This algebraic loop is solved at every step, before computing uu:

wθ[k]=ρ[k](I2−ρ[k] DKθθ)−1(CKθxK[k]+DKθ1e[k])\mathbf{w}_\theta[k] = \rho[k] \left( \mathbf{I}_2 - \rho[k]\, \mathbf{D}_{K\theta\theta} \right)^{-1} \left( \mathbf{C}_{K\theta} \mathbf{x}_K[k] + \mathbf{D}_{K\theta 1} e[k] \right)

You may have noticed that we just switched to discrete time, while Sections 1 to 3 are written in continuous time. Continuous time keeps the reasoning readable, but the synthesis and the simulation both work on the model discretized by explicit Euler, with Ts=1T_s = 1 ms.

By minimizing γ\gamma in the synthesis step, we are essentially 'squashing' this worst-case gain ratio for all parameter trajectories ρ(t)\rho(t) that stay in the range ∣ρ∣≤1/γ|\rho| \le 1/\gamma.

References

  1. [1]

    P. Apkarian and P. Gahinet, “A convex characterization of gain-scheduled H∞ controllers,” IEEE Transactions on Automatic Control, vol. 40, no. 5, pp. 853–864, May 1995. DOI (opens in a new tab)

An opportunity, a research collaboration, or a project to develop?

Tell me about the context and what you would like to discuss.

Get in touch