Skip to content

Commit 7af38f8

Browse files
authored
Modify MPC setup to use MovingHorizonEstimator
Updated the MPC initialization to include a moving horizon estimator.
1 parent fd15f6a commit 7af38f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ Our goal is controlling the first output $y_1$, but the second one $y_2$ should
5151
35:
5252

5353
```julia
54-
mpc = LinMPC(model, Mwt=[1, 0], Nwt=[0.1])
54+
mhe = MovingHorizonEstimator(mode)
55+
mpc = LinMPC(mhe, Mwt=[1, 0], Nwt=[0.1])
5556
mpc = setconstraint!(mpc, ymax=[Inf, 35])
5657
```
5758

0 commit comments

Comments
 (0)