You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
dlqe should return Kalman filter gain rather than Kalman predictor gain #1173
Hi!
Firstly, thanks for the python control library. It has been quite useful to make a shift from Matlab to python.
I noticed that dlqe currently returns the predictor gain ($\tilde{L}$). I understand the intention is to use dare within dlqe to return the dual equivalent of the LQR gain. However, what if $A$ is not full rank and one wants to use the filter form? In that case, I can't do $L = A^{-1} \tilde{L}$.
Here are my definitions:
Filter form $L = PC^T (CPC^T + R)^{-1}$
Predictor form $\tilde{L} = APC^T (CPC^T + R)^{-1}$
Would it be possible to return the filter gain by default or offer an option to select the form?
Activity
murrayrm commentedon Nov 9, 2025
Good suggestion. It should be easy to either add a
return_filter_formkeyword or perhaps write a separate function (optimal_linear_filter?).