-
Notifications
You must be signed in to change notification settings - Fork 2
Support Joseph-form in Kalman filters #98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Another option is to have the QR form https://arxiv.org/abs/2208.06452 |
I noticed that once and a while in the It raises two points:
edit: an alternative and presumably better fallback would be to modify the current arrival covariance matrix to the nearest symmetric one with
Do you have an opinion @baggepinnen ? Thanks! |
I include |
I'll also add this line as another "saftey net" for the MHE. |
I have gotten this error several times as well. |
@1-Bart-1 If you have a MWE that systematically produces this error, send it to me. I will try to investigate on the error. Fredrik and I emit the hypothesis that It may be caused by the default values of the UKF If that's really the case, a breaking change may be worthwhile. |
@1-Bart-1 see this comment and the linked article for more details on the UT parameters |
I don't have a MWE... If I remember correctly, the error tends to disappear when changing some of the estimator weights. But I will definitely come back here if the error appears again. |
I am getting this issue again. I don't have a lightweight example, but you can recreate the issue by running mwe/online_lin_simple_kite.jl from KitePredictiveControl.jl#cholesky. Let me know if you have any issues recreating this. Is it possible to play around with the cholesky weights in MPC.jl currently? |
Thanks for the exemple! Above I was mentioning an issue with the MHE that uses the UKF internally for the arrival covariance estimation. So it's not related to the UKF Cholesky is used in |
It would be nice to support the Joseph-form covariance update equation in
KalmanFilter
,ExtendedKalmanFilter
andUnscentedKalmanFilter
. It theoretically guarantee positive-definite covariance matrices, even with finite precision floating-point arithmetic.In my experience although, I never had any problems with the classical equation, both with the Kalman filter and the unscented version. I personally don't consider that as a high priority feature.
The text was updated successfully, but these errors were encountered: