Skip to content

Commit 083dede

Browse files
committed
doc: add estimation horizon in README.md
1 parent 0bbb0b6 commit 083dede

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

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

5353
```julia
54-
mhe = MovingHorizonEstimator(model)
54+
mhe = MovingHorizonEstimator(model, He=10)
5555
mpc = LinMPC(mhe, Mwt=[1, 0], Nwt=[0.1])
5656
mpc = setconstraint!(mpc, ymax=[Inf, 35])
5757
```
5858

59-
The keyword arguments `Mwt` and `Nwt` are the output setpoint tracking and move suppression
60-
weights, respectively. A setpoint step change of five tests `mpc` controller in closed-loop.
61-
The result is displayed with [`Plots.jl`](https://github.com/JuliaPlots/Plots.jl):
59+
The keyword arguments `He`, `Mwt` and `Nwt` are the estimation horizon, the output setpoint
60+
tracking and move suppression weights, respectively. A setpoint step change of five tests
61+
`mpc` controller in closed-loop. The result is displayed with [`Plots.jl`](https://github.com/JuliaPlots/Plots.jl):
6262

6363
```julia
6464
using Plots

0 commit comments

Comments
 (0)