Skip to main content
. 2019 May 16;19(10):2276. doi: 10.3390/s19102276
Algorithm 1. Algorithm for a nonlinear MHE
Set k=0 (k+) and set xk=x0
while (brake==false) do
    Fill ring buffer with measurements and system inputs:
  if k<M then
    append uk to u and ykm to ym
  else
    left shift one entry of u and ym
    and append uk respectively ykm
  end if
    Optimize over stored measurement window (Equation (8)):
  if k>M then
    Propagate x^kM1+ via a Kalman Filter step (e.g., EKF or UKF cf. 2):
    xKF(x^kM1+)x^kM+,  IkM+
    Project states on the constrained area (c.f. Appendix B)
    minxxx^kM+   s.t.  c(x)0
end if
k=k+1
end while