Académique Documents
Professionnel Documents
Culture Documents
Exact Solution
Our starting point is again the observation equations Ax = b e augmented with p
constraints described through B x = d. We assume that the system B x = d is consistent.
The problem is
2
min
Ax b
.
(11.1)
B x=d
Let
BT
and set
R p
0 np
AQ = A1 A2
and
p np
QT x =
y p
.
z np
y
.
z
404
Alternatively we want to derive a solution using SVD. We are facing a new issue as we
need to find a simultaneous SVD for both A and B. The problem is called a generalized
singular value decomposition.
We introduce the compound matrix
M=
A m
.
B p
n
(11.4)
(11.5)
B = V SX
2
C + S = I.
(11.6)
B x = d.
Multiplying by an orthogonal matrix U inside the norm sign does not change the length;
the constraints are multiplied by V T :
min kU T Ax U T bk subject to
x
V T B x = V T d.
S X T x = V T d.
for i = 1, . . . , p
S
ii
XTx i =
uT b
i
for i = p + 1, . . . , n.
Cii
11.9
Now let X T
1
405
p
X
vT d
i
i=1
Sii
n
X
uiT b
wi .
Cii
wi +
(11.7)
i= p+1
p
n
X
X
uiT b
wi +
uiT bwi .
Cii
i=q+1
(11.8)
i= p+1
It is possible to compute how much the constraints increase the residuals. The constrained
minus unconstrained residuals are
ec e = A(x x c ).
Remember that Ax i = Cii ui for i = 1, . . . , n, then by using (11.7) and (11.8) we get
kec k2 = kek2 +
p
X
uiT b
i=q+1
Cii T 2
v d .
Sii i
Both the QR decomposition and the generalized singular value decomposition solution are coded in the M-file clsq.
Approximate Solution
Next we solve the unconstrained least-squares problem
A
b
min
x
x
B
d
for large . We find the solution in terms of the GSVD and reuse some of the above
notation. We start by forming the normal equations
(AT A + 2 B T B)x = AT b + 2 B T d
and substitute (11.4) and (11.5):
(XC T U T U C X T + 2 X S T V T V S X T )x = XC T U T b + 2 X S T V T d
or
(XC T C X T + 2 X S T S X T )x = XC T U T b + 2 X S T V T d
(C T C + 2 S T S)X T x = C T U T b + 2 S T V T d.
The solution is
x() =
p
X
Cii uT b + 2 Sii v T d
i
i=1
Cii2 + 2 Sii2
wi +
n
X
uiT b
wi .
Cii
i= p+1
(11.9)
406
p
X
Cii (Sii uT b Cii v T d)
i
i=1
wi .
(11.10)
For we have x() x c . The appeal of the method of weighting is that it does
not call for special subroutines: an ordinary least-squares solver will do.
We have implemented the procedure as M-file wlsq.
The present presentation relies heavily on Golub & van Loan and ke Bjrck.