Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 803
News FAQ
Search Home


next up previous contents home.gif
Next: Unknown constraints Up: NOTE 224 - AIPS++ Least Squares background Previous: Errors

Dependant linear equations

If there are not enough independent condition equations, the normal matrix A cannot be inverted, and a call to WNMLTN will fail with a .false. return value.

The equations could still be solved if some additional `constraint' equations would be introduced. In the more complex cases the precise, let alone the best, form for these additional equations is difficult to determine (e.g. the redundancy situation in Westerbork).

A method known as `Singular value decomposition' (SVD) can be used to obtain the minimal set of orthogonal equations that have to be added to solve the LSQ problem. Several implementations exist in the literature.

In general we can distinguish three types of constrained equations:

All three cases are handled in the LSQ package, the first two in the same way.

The general constraint situation arises from the use of Lagrange multiplicators. Assume that in addition to the condition equations, with measured values, we have a set of p rigorous equations:

$\displaystyle \phi_{i}^{}$(x) = 0   i = 0,..., p - 1 (31)
We must therefore make $ \chi^{{2}}_{}$ minimal, subject to the set of (31), or:

$\displaystyle \sum_{{i=0}}^{{n-1}}$$\displaystyle {\frac{{\partial \chi^{2}}}{{\partial x_{i}}}}$dxi = 0 (32)
subject to the conditions:

$\displaystyle \sum_{{i=0}}^{{n-1}}$$\displaystyle {\frac{{\partial \phi_{k}}}{{\partial x_{i}}}}$dxi = 0   k = 0,..., p - 1 (33)
which leads to a set of n + p equations:

$\displaystyle {\frac{{\partial \chi^{2}}}{{\partial x_{i}}}}$ + $\displaystyle \sum_{{k=0}}^{{p-1}}$$\displaystyle \lambda_{{k}}^{}$$\displaystyle {\frac{{\partial \phi_{k}}}{{\partial x_{i}}}}$ = 0   i = 0,..., n - 1 (34)
together with the (31).

Note that I have chosen for having constraint equations linear in the unknowns, with a zero value. In cases where this is not adequate (e.g. x + y + z = 360) a simple linear transformation will suffice to make it e.g. x' + y' + z' = 0.

Defining the second term in (34) as Bik, we can write our expanded set of normal equations as:

$\displaystyle \left(\vphantom{\begin{array}{cc}
\mathbf{A} & \mathbf{B} \\
\mathbf{B}^{T} & 0
\end{array} }\right.$$\displaystyle \begin{array}{cc}
\mathbf{A} & \mathbf{B} \\
\mathbf{B}^{T} & 0
\end{array}$$\displaystyle \left.\vphantom{\begin{array}{cc}
\mathbf{A} & \mathbf{B} \\
\mathbf{B}^{T} & 0
\end{array} }\right)$$\displaystyle \left(\vphantom{\begin{array}{c}
\mathbf{x} \\
\mathbf{\lambda}
\end{array} }\right.$$\displaystyle \begin{array}{c}
\mathbf{x} \\
\mathbf{\lambda}
\end{array}$$\displaystyle \left.\vphantom{\begin{array}{c}
\mathbf{x} \\
\mathbf{\lambda}
\end{array} }\right)$ = $\displaystyle \left(\vphantom{ \begin{array}{c}
\mathbf{L} \\
0
\end{array}}\right.$$\displaystyle \begin{array}{c}
\mathbf{L} \\
0
\end{array}$$\displaystyle \left.\vphantom{ \begin{array}{c}
\mathbf{L} \\
0
\end{array}}\right)$ (35)



Subsections
next up previous contents home.gif
Next: Unknown constraints Up: NOTE 224 - AIPS++ Least Squares background Previous: Errors   Contents
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2004-08-28