Technical documentation
Technical Documentation: 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 sliding on a frictionless horizontal surface, attached to a fixed wall via a spring with stiffness and a damper with coefficient . The system is subject to a control input and the goal of this wiki is to explain how to construct a tracking controller for this system using LPV-LFT control.
The equation of motion is derived from Newton's Second Law:
The stiffness is parameter-dependent: . Physical parameters are presented in Table 1.
| Parameter | Value | Unit |
|---|---|---|
| (mass) | 1 | kg |
| (damping) | 2 | N·s/m |
| (nominal stiffness) | 10 | N/m |
| (stiffness gain) | 0.4 | — |
The system written just above is a Linear Parameter Varying (LPV) system: its dynamics depend on the time-varying parameter , which sets the stiffness . 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 . 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 : Represents the Mass-Spring-Damper (MSD) system. It encapsulates both the nominal dynamics and the LFT decomposition of the varying stiffness.
- Controller : The controller we aim to synthesize. It also reads the parameter , through an LFT loop of its own (Figure 2). Its internal architecture—derived to handle —will be detailed in Section 4.
- Weighting Filters (): Strictly design tools grafted onto the physical signals (the error and the control signal ). They translate performance specifications into mathematical constraints.
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 and :
The augmented state vector concatenates the system states and the filter states:
To construct the augmented matrices, we must express the dynamics of the filters in terms of the global system inputs () and the augmented state vector . Based on the synthesis scheme (Figure 2), the error signal is defined as .
Augmented State Dynamics
We substitute the error equation into the state equation of the performance filter . The control filter depends only on the control input . By assembling these with the nominal system dynamics, we obtain:
We then write the equations in term of :
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 and ), and the feedback loop to the controller. Table 2 provides a structured summary of these essential channels.
| Channel | Description |
|---|---|
| Parametric () | Interaction with the varying parameter . The signal 'senses' the state affected by the parameter, and reinjects the variation effect. |
| Performance () | Maps exogenous inputs (Reference ) to regulated outputs (Weighted Error , Weighted Control ). This channel defines what we want to optimize. |
| Control () | Physical interface. is the force applied by the actuator. The sensor measures the position , and the controller receives the tracking error . |
Parametric Loop ():
The LFT feedback signal depends exclusively on the physical system states . However, to maintain a unified state-space representation for the generalized plant, we must express this output in terms of the augmented state vector . This is done by zero-padding the matrix to account for the filter states:
Regulated Outputs :
The performance vector consists of the weighted error and the weighted control effort . We substitute the physical error expression into the output equation of :
Measurement Output :
Finally, the controller observes the tracking error . This observation equation acts as the feedback interface (we already have written it before):
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:
We can now focus on the explicit definition of the filters and .
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 ( and ) 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 and 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:
Justification of (Performance):
This filter shapes the sensitivity function (the transfer from reference to error ). The fundamental constraint is and is represented in Figure 3. To ensure high precision, we focus on the behavior at zero frequency ().
- Frequency Zero implies Steady-State: A frequency of zero () corresponds to a signal that does not change over time (a constant). Therefore, the filter's gain at dictates the system's behavior in the steady-state regime (as ).
- Static Gain Calculation: Evaluating the filter at yields: . This means the filter demands an amplification of 50 for constant signals.
- Precision Guarantee (2% Error): Since the constraint forces the error sensitivity to be less than the inverse of the weight, we have: . 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 . For a time-varying , this frequency-by-frequency reading is only an approximation: what the synthesis really bounds is the gain of the whole weighted operator (Section 4).
Justification of (Control Effort & Robustness):
This filter shapes the Control Sensitivity function (the transfer from reference to control input ). The constraint is and is represented in Figure 3. We analyze the inverse of the weight (the ceiling) at the frequency extremes:
- Low Frequencies (): Permissiveness.
At steady-state, . 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 (): Restriction (Roll-off).
At high frequencies, as , hence . This sets a low ceiling (0.5). At these frequencies the loop no longer has any effect and , so : 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.
4. -norm, -norm and -synthesis
In the first three sections, all the objects related to the design of an controller have been defined and motivated. But to be honest, it is perfectly normal for you to wonder what actually is and what its purpose is. This section is therefore dedicated to this topic.
The -norm is a norm based on signal energy (-norm). Let's firstly define this -norm.
The -norm of a signal can be infinite, e.g. or have infinite energy. A necessary condition for a uniformly continuous signal to have a finite -norm is that its value tends to zero as goes to infinity. This is not a sufficient condition, e.g. has an infinite -norm but tends to zero (but not fast enough) as goes to infinity.
The purpose of this section is not to delve into the theoretical depths of the -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 , that is the square root of the integral above, and draws the integral itself as a reference line.
Signal 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.
- 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 that maximizes the gain (output norm / input norm). For a sine input, in steady state, this ratio is exactly , which is what the module plots. If you maximize this ratio, you have found the norm of the system.
Input u(t) and output y(t)
- Input u(t)
- Output y(t)
Gain ‖y‖ / ‖u‖ = |H(jω)| at the frequencies explored
- 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 . This operator maps the exogenous input to the regulated performance outputs :
Figure 4 shows what is inside this operator. Once the plant , the controller and the parameter are connected, the signals , , , , and stay inside the loop. Seen from outside, only the reference enters and only the weighted signals leave. That is all is: the map between the two.
Its gain compares the size of what leaves with the size of what enters. Keeping this gain below means that, for every non-zero of finite energy, from zero initial conditions and for every admissible :
Since gathers the weighted error and the weighted control , a small gain means a small tracking error and a restrained control effort, in the frequency ranges emphasized by and .
This operator depends on the Generalized Plant , the Controller and the parameter . The synthesis problem is formulated as follows:
Let's read this line slowly, because appears twice, and that is no accident. On the right, is the performance level: the smaller it is, the better. Under the , is the range of covered by the guarantee. Both are linked by the small-gain idea: if what surrounds has a gain below and if , a signal going around the loop through comes back smaller than it left, so the loop stays stable. Lowering therefore improves the performance and widens the range of at the same time. Here, the synthesis reaches , which gives and covers the design range .
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 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 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 , down to , where the stiffness vanishes (). This does not mean the guarantee goes that far: outside , nothing is proven.
What is inside ?
As promised in Section 2, let's open the controller. Look at the bottom of Figure 4: is a linear time-invariant block, which never changes, looped on exactly like the plant at the top. Since 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 comes from [1], where the parameter block is called ):
The matrices 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 has 2 channels, hence the block in Figure 4. When changes, no matrix is recomputed: only the signal going around this loop changes, and the output adapts with it. One practical detail: appears on both sides of its own equation, through . This algebraic loop is solved at every step, before computing :
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 ms.
By minimizing in the synthesis step, we are essentially 'squashing' this worst-case gain ratio for all parameter trajectories that stay in the range .
References
- [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.