CPBS 7620 - Lecture 17 - Linear Dynamical Systems
Overview
Nicholas Dwork defines continuous and discrete linear dynamical systems, then shows how forward Euler discretization turns continuous state equations into a form whose outputs are affine functions of the inputs. By stacking those input-output relationships into matrices, control becomes a least-squares problem; a two-compartment lung model demonstrates setting ventilator pressure to reach a target tidal volume or follow a desired trajectory.
Key takeaways
- Forward Euler discretization converts x′(t) = A(t)x(t) + B(t)u(t) into a stepwise update with A_D = I + AΔt and B_D = BΔt.
- For a discrete linear system, repeatedly substituting the state update expresses each output as an affine function of the initial state and the full sequence of prior inputs.
- A desired terminal output can be written as yₙ = βₙ + 𝒜u, making input selection a least-squares optimization rather than an ad hoc control procedure.
- The two-compartment lung model captures differing resistance and compliance across lung regions while predicting the ventilator’s measured total volume as V₁ + V₂.
- In the ventilation example, a 0.2-second control interval over one second yields five pressure inputs, U₀–U₄, that can be optimized for a 0.45 L target tidal volume.
- Least squares can target an entire output trajectory, such as a linear ramp to 0.45 L, by minimizing summed squared deviations at intermediate time steps.
Chapters
- A continuous linear system uses x′(t) = A(t)x(t) + B(t)u(t) and y(t) = C(t)x(t) + D(t)u(t); x is the state, u the chosen input, and y the output.
- A, B, C, and D are respectively the dynamics, input, sensor, and feed-through matrices, and may vary with time.
- Using a first-difference approximation with step size Δt gives x(t + Δt) ≈ [I + A(t)Δt]x(t) + B(t)Δt u(t), a discrete-time state update.
- Indexing time as tₙ = nΔt yields a discrete system that approximates the continuous dynamics when Δt is sufficiently small.
- Repeatedly substitute the state update to express outputs such as y₁, y₂, and y₃ in terms of the initial state and all inputs up to that time.
- Products of dynamics matrices describe how earlier states and inputs affect later outputs; stacking terms produces a block-matrix relation yₙ = βₙ + 𝒜u.
- The resulting affine input-output map lets a desired output be pursued by solving a least-squares problem for the input sequence.
- For a trajectory rather than one endpoint, stack the output errors across time and minimize their summed squared L₂ norms.
- The lung model has two compartments, each with its own airflow resistance Rᵢ and compliance Cᵢ; the compartments represent different mechanical behavior, not anatomically separated regions.
- Ventilator input u(t) is airway pressure above PEEP, with about 8 cm H₂O given as a reasonable adult PEEP; measured output is total lung volume V₁ + V₂.
- With pressure updates every 0.2 seconds, the continuous model is discretized into xₖ₊₁ = Axₖ + Buₖ and yₖ = Cxₖ; reaching one second requires choosing U₀ through U₄.
- Starting at end-expiration with x₀ = 0, Dwork forms y₅ = GU and uses the pseudoinverse-based least-squares solution to target 0.45 L, or to fit a linear ramp toward that volume.
Transcript excerpt
0:00 Hi, I'm Nicholas Dwork, and in this lecture we'll discuss linear dynamical systems. A linear dynamical system is defined as the following. I'm going to now present two coupled equations. The first is dxtt is equal to a of t times x of t plus b of t times u of t. And in this equation, x and u are vectors, and a and b are matrices. The second equation is y of t is equal to c of t times x of t plus d of t times u of t. And here, c and d are matrices. And each of these things has a name. The independent variable t usually denotes time. It needn't, but it usually does. x of t is called the state at time t. u of t is the input at time t. That's
0:50 generally what we get to choose. And y of t is the output. The matrices also have names. A is the dynamics matrix, B is the input matrix, C is the sensor matrix, and D is the feed-through matrix. And in general, each of these matrices is a function of time. A discrete-time linear dynamical system is defined as the following two equations. This doesn't include the derivative of x. Instead, the next x is based on an expression of the current x and the input, and then the output is also based on an expression of the current x and the input. Here, n goes 0 1 2. It's a natural number. And what we will see is that we can express the output at time t as an
1:37 affine function of the inputs. Suppose we have a continuous linear dynamical system characterized by these two equations here. We can incorporate this familiar approximation into this system. Replacing x prime with its expression,
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Nicholas Dwork.