Skip to content

Commit b000a22

Browse files
committed
minor comment modification
1 parent 1cc1a5c commit b000a22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/estimator/mhe/execute.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"Reset `estim.P̂arr_old`, `estim.invP̄` and the windows for the moving horizon estimator."
1+
"Reset the data windows and time-varying variables for the moving horizon estimator."
22
function init_estimate_cov!(estim::MovingHorizonEstimator, _ , _ , _ )
33
estim.invP̄.data[:] = inv(estim.P̂0)
44
estim.P̂arr_old.data[:] = estim.P̂0
@@ -71,7 +71,7 @@ function update_estimate!(estim::MovingHorizonEstimator{NT}, u, ym, d) where NT<
7171
end
7272
estim.Z̃[:] = !isfatal(status) ? Z̃curr : Z̃last
7373
# --------- update estimate -----------------------
74-
estim.Ŵ[1:nŵ*Nk] = estim.Z̃[nx̂+1:nx̂+nŵ*Nk] # update Ŵ with optimum for next time step
74+
estim.Ŵ[1:nŵ*Nk] = estim.Z̃[nx̂+1:nx̂+nŵ*Nk] # update Ŵ with optimum for warm-starting
7575
V̂, X̂ = predict!(V̂, X̂, estim, model, estim.Z̃)
7676
x̂[:] = X̂[end-nx̂+1:end]
7777
if Nk == estim.He

0 commit comments

Comments
 (0)