Skip to content

Commit 579b2ec

Browse files
committed
debug MHE
1 parent 7917a31 commit 579b2ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/estimator/mhe/execute.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ function update_estimate!(estim::MovingHorizonEstimator{NT}, u, ym, d) where NT<
7474
@debug solution_summary(optim, verbose=true)
7575
end
7676
if iserror(optim)
77-
mpc.Z̃ .= Z̃0
77+
estim.Z̃ .= Z̃0
7878
else
79-
mpc.Z̃ .= value.(Z̃var)
79+
estim.Z̃ .= value.(Z̃var)
8080
end
8181
# --------- update estimate -----------------------
8282
estim.Ŵ[1:nŵ*Nk] .= @views estim.Z̃[nx̃+1:nx̃+nŵ*Nk] # update Ŵ with optimum for warm-start

0 commit comments

Comments
 (0)