Adaptive Control - Least-Squares Algorithm in Parameters Estimation
2016-09-08
Parameter estimation is one of the keystones in Adaptive control; the main idea of parameter estimation is to construct a parametric model and then use optimization methods to minimize the error between the true parameter and the estimation. Least-square algorithm is one of the common optimization methods.
Background
I take adaptive control course this semester, and in the homework after the second lecture, we are going to derive the formular for the estimated parameter vector at time .
Some terms we need to demonstrate the problem:
- Linear Parametric model: .
- is the truth value of the parameters in the system, which is what we want to reach or approach. However we only have the knowledge of and . So we are going to estimate based on what are known (, and so on).
- is the output of the system, scaler, which could be measured and it is known.
- is the input or reference of the system, which is also known.
- is the estimated system parameter at time , which is what we want.
- Cost function is what we would like to minimized, so that the error between and is minimized.
There are two algorithms that can solve this problem. The first one is Gradient (Descent) Algorithm, another one is what we are going to demonstrate here, Least-squares algorithm. Basically, the differences between these two algorithms are the cost function they employed and the method to minimize the cost function.
Problem
So here is our setting:
Given the cost function in Least-Squares algorithm,
Take the partial derivative of , let it be 0, solve the equation
and derive that
Solution
Therefore,
Finally,
(The right hand side is a column vector, so when taking out of the integral, it should transpose to become a column vector. And , because it is a symmetric matrix.)
Revision and Updates
Since the solution above required to be invertible, in some scenario where t is very small, usually the matrix is not full ranked and is not invertible. To deal with this situation, we revise the cost function as
where is the initial estimation of parameters, and is a symmetric and positive definite matrix.
We can do the same process like the solution above, and we achieve:
(Notice that: , where and are matrices, is not a function of . If A is a symmetric matrix, , then the result would be or .)
Positive definite matrix is always invertible, so this formula can suit for more situations.
Matrix Formula
- If and are vectors,