On-off Control: Audio Applications
Graham C. Goodwin Day 4: Lecture 3 16th September 2004 International Summer School Grenoble, France
Centre for Complex Dynamic Systems and Control
On-off Control: Audio Applications Graham C. Goodwin Day 4: Lecture - - PowerPoint PPT Presentation
On-off Control: Audio Applications Graham C. Goodwin Day 4: Lecture 3 16th September 2004 International Summer School Grenoble, France Centre for Complex Dynamic Systems and Control 1 Background In this lecture we address the issue of
On-off Control: Audio Applications
Graham C. Goodwin Day 4: Lecture 3 16th September 2004 International Summer School Grenoble, France
Centre for Complex Dynamic Systems and Control
1 Background
In this lecture we address the issue of control when the decision variables must satisfy a finite set constraint. Finite alphabet control occurs in many practical situations including: on-off control, relay control, control where quantisation effects are important (in principle this covers all digital control systems and control systems over digital communication networks), and switching control of the type found in power electronics.
Centre for Complex Dynamic Systems and Control
Exactly the same design methodologies can be applied in other areas; for example, the following problems can be directly formulated as finite alphabet control problems: quantisation of audio signals for compact disc production; design of filters where the coefficients are restricted to belong to a finite set (it is common in digital signal processing to use coefficients that are powers of two to facilitate implementation issues); design of digital-to-analog [D/A] and analog-to-digital [A/D] converters.
Centre for Complex Dynamic Systems and Control
Consider a linear system having a scalar input uk and state vector xk ∈ Rn described by xk+1 = Axk + Buk. (1) A key consideration here is that the input is restricted to belong to the finite set
U = {s1, s2, . . . , snU},
(2) where si ∈ R and si < si+1 for i = 1, 2, . . . , nU − 1.
Centre for Complex Dynamic Systems and Control
We will formulate the input design problem as a receding horizon quadratic regulator problem with finite set constraints. Thus, given the state xk = x, we seek the optimising sequence of present and future control inputs: u(x) arg min
uk∈UN VN(x, uk),
(3) where uk
uk uk+1
. . .
uk+N−1
, UN U × · · · × U.
(4)
Centre for Complex Dynamic Systems and Control
VN is the finite horizon quadratic objective function VN(x, uk) xk+N2
P + k+N−1
(xt2
Q + ut2 R),
(5) with Q = Q > 0, P = P > 0, R = R > 0 and where xk = x.
Centre for Complex Dynamic Systems and Control
Following the usual receding horizon principle, only the first control action, namely u(x)
· · ·
(6) is applied. At the next time instant, the optimisation is repeated with a new initial state and the finite horizon window shifted by one.
Centre for Complex Dynamic Systems and Control
Since the constraint set UN is finite, the optimisation problem (3) is
whose solution requires a computation time that is exponential in the horizon length. Thus, one needs either to use a relatively small horizon or to resort to approximate solutions. We will adopt the former strategy based on the premise that, due to the receding horizon technique, the first decision variable is all that is of interest. Moreover, it is a practical observation that this first decision variable is often insensitive to increasing the horizon length beyond some relative modest value.
Centre for Complex Dynamic Systems and Control
We vectorise the objective function as follows: Define xk
xk+1 xk+2
. . .
xk+N
, Φ
B
. . .
AB B
. . . . . . . . . ... . . . . . .
AN−1B AN−2B
. . .
AB B
, Λ
A A2
. . .
AN
,
(7)
Centre for Complex Dynamic Systems and Control
Given xk = x the predictor xk satisfies xk = Φuk + Λx. (8) Hence, the objective function can be re-written as VN(x, uk) = ¯ VN(x) + u
kHuk + 2u kFx,
(9) where H ΦQΦ + R ∈ RN×N, F ΦQΛ ∈ RN×n, Q diag{Q, . . . , Q, P} ∈ RNn×Nn, R diag{R, . . . , R} ∈ RN×N, and ¯ VN(x) does not depend upon uk.
Centre for Complex Dynamic Systems and Control
By direct calculation, it follows that the minimiser, without taking into account any constraints on uk, is u
(x) = −H−1Fx.
(10)
Centre for Complex Dynamic Systems and Control
Definition: Nearest Neighbour Vector Quantiser
Given a countable set of nonequal vectors B = {b1, b2, . . . } ⊂ RnB, the nearest neighbour quantiser is defined as a mapping qB : RnB → B that assigns to each vector c ∈ RnB the closest element of B (as measured by the Euclidean norm), that is, qB(c) = bi ∈ B if and only if c belongs to the region
.
(11)
Centre for Complex Dynamic Systems and Control
In order to simplify the problem, we introduce the same coordinate transformation utilised earlier, that is, the one that turns the cost contours into (hper) spheres.
˜
uk = H1/2uk, (12) which transforms the constraint set UN into ˜
U
N.
Centre for Complex Dynamic Systems and Control
The optimiser u(x) can be defined in terms of this auxiliary variable as u(x) = H−1/2 arg min
˜ uk∈ ˜ UN JN(x, ˜
uk), (13) where JN(x, ˜ uk) ˜ u
k ˜
uk + 2˜ u
kH−/2Fx.
(14)
Centre for Complex Dynamic Systems and Control
The level sets of JN are spheres in RN, centred at
˜
u
(x) −H−/2Fx.
(15)
Centre for Complex Dynamic Systems and Control
Hence, the constrained optimiser (3) is given by the nearest neighbour to ˜ u
(x), namely
arg min
˜ uk∈ ˜ UN JN(x, ˜
uk) = q ˜
UN(−H−/2Fx).
(16)
Centre for Complex Dynamic Systems and Control
Summary Theorem: Closed Form Solution
Let UN = {v1, v2, . . . , vr}, where r = (nU)N. Then the optimiser u(x) in (3) is given by u(x) = H−1/2q ˜
UN(−H−/2Fx),
(17) where the nearest neighbour quantiser q ˜
UN(·) maps RN to ˜
U
N,
defined as
˜ U
N {˜
v1, ˜ v2, . . . , ˜ vr},
˜
vi = H1/2vi, vi ∈ UN. (18)
Centre for Complex Dynamic Systems and Control
The receding horizon controller satisfies u(x) =
· · ·
UN(−H−/2Fx).
(19) This solution can be illustrated as the composition of the following transformations: x ∈ Rn −H−
2 F
− − − − − − − → ˜
u
∈ RN H− 1
2 q ˜
UN(·)
− − − − − − − − − − → u ∈ UN [1 0 · · · 0] − − − − − − − − − − → u ∈ U .
(20)
Centre for Complex Dynamic Systems and Control
The optimal expression partitions the domain of the quantiser into polyhedra, called a Voronoi partition. Since the constrained optimiser u(x) is defined in terms of q ˜
UN(·), an equivalent partition of the state space can be derived.
Centre for Complex Dynamic Systems and Control
Theorem
The constrained optimising sequence u(x) can be characterised as u(x) = vi ⇐⇒ x ∈ Ri, where
Ri
H − vi2 H for all vj vi, vj ∈ UN
\
H − vi2 H
(21)
Centre for Complex Dynamic Systems and Control
Consider an open loop stable plant described by xk+1 =
2 0.8
0.1
(22) and the binary constraint set U = {−1, 1}. The receding horizon control law with R = 0 and P = Q =
1
(23) partitions the state space into the regions depicted in the next figure, for constraint horizons N = 2 and N = 3.
Centre for Complex Dynamic Systems and Control
−80 −60 −40 −20 20 40 60 80 −0.5 0.5
1 2 3 4
−80 −60 −40 −20 20 40 60 80 −0.5 0.5
1 2 3 4 5 6 7 8
x1
k
x2
k
x2
k
N = 2 N = 3 R R R R R R R R R R R R
Figure: State space partition for the plant (22).
Centre for Complex Dynamic Systems and Control
The receding horizon control law is u(x) =
−1
if x ∈ X1, 1 if x ∈ X2, where
X1 =
Ri, X2 =
Ri.
Centre for Complex Dynamic Systems and Control
5.2 Open Loop Unstable Plant
Consider xk+1 =
2 1.05
0.1
(24) controlled with a receding horizon controller with parameters U, P, Q and R as above. The constraint horizon is chosen to be N = 2.
Centre for Complex Dynamic Systems and Control
The following figure illustrates the induced state space partition and a closed loop trajectory, which starts at x = [−10 0]. As can be seen, due to the limited control action available, the trajectory becomes unbounded.
Centre for Complex Dynamic Systems and Control
−40 −20 20 40 60 80 −5 −4 −3 −2 −1 1 2
1 2 3 4x1
k
x2
k
R R R R
Figure: State trajectories of the controlled plant (24) with initial condition x = [−10 0].
Centre for Complex Dynamic Systems and Control
The situation is entirely different when the initial condition is chosen as x = [0.7 0.2]. As depicted in the following figure, the closed loop trajectory now converges to a bounded region, which contains the origin in its interior. Within that region, the behaviour is not periodic, but appears to be random, despite the fact that the system is deterministic. Neighbouring trajectories diverge due to the action of the unstable poles of the plant. However, the control law manifests itself by maintaining the plant state ultimately bounded.
Centre for Complex Dynamic Systems and Control
−1 −0.5 0.5 1 −0.3 −0.2 −0.1 0.1 0.2 0.3
1 2 3 4x1
k
x2
k
R R R R
Figure: State trajectories of the controlled plant (24) with initial condition x = [0.7 0.2].
Centre for Complex Dynamic Systems and Control
Centre for Complex Dynamic Systems and Control
Centre for Complex Dynamic Systems and Control
Centre for Complex Dynamic Systems and Control
Audio in Quantizer Quantized Output Error Feedback
Noise Shaping Quantizer More Conventional Form (after block diagram manipulation)
Centre for Complex Dynamic Systems and Control
Centre for Complex Dynamic Systems and Control
1 2( ). k N N t k
+ − =
1 1
i i
∞ − =
Centre for Complex Dynamic Systems and Control
T
2 1
k N N t k
+ − =
* ( )
N N u k U
∈
r
Centre for Complex Dynamic Systems and Control
Centre for Complex Dynamic Systems and Control
Centre for Complex Dynamic Systems and Control
Centre for Complex Dynamic Systems and Control
N U
%
N N
Centre for Complex Dynamic Systems and Control
Centre for Complex Dynamic Systems and Control
N U
%
Centre for Complex Dynamic Systems and Control
1
Centre for Complex Dynamic Systems and Control
Centre for Complex Dynamic Systems and Control
Centre for Complex Dynamic Systems and Control
( ) 1 ( )
H H
ρ ρ
−
Centre for Complex Dynamic Systems and Control
1 2.245 0.664 1 1 2 1 1.335 0.644
ρ ρ ρ
− − − − − − +
1 2.245 0.664 1 1 1 0.91
ρ ρ
− − − − +
Centre for Complex Dynamic Systems and Control
Centre for Complex Dynamic Systems and Control
Centre for Complex Dynamic Systems and Control
Centre for Complex Dynamic Systems and Control
Mean Square Quantization Error Optimization Horizon
Centre for Complex Dynamic Systems and Control
Centre for Complex Dynamic Systems and Control
Centre for Complex Dynamic Systems and Control
1
np jw i i
π
=
1 1 F
−