Skip to content

Commit e8f9a1b

Browse files
committed
remove Hp and Hc args in README example
1 parent 6ce8901 commit e8f9a1b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,18 @@ We first construct the plant model with a sample time $T_s = 1$ s:
3737

3838
```julia
3939
using ModelPredictiveControl, ControlSystemsBase
40-
sys = [
40+
G = [
4141
tf( 2 , [10, 1])*delay(20)
4242
tf( 10, [4, 1])
4343
]
4444
Ts = 1.0
45-
model = LinModel(sys, Ts)
45+
model = LinModel(G, Ts)
4646
```
4747

4848
Our goal is controlling the first output, but the second one should never exceed 35:
4949

5050
```julia
51-
mpc = LinMPC(model, Mwt=[1, 0], Nwt=[0.1], Hp=30, Hc=2)
51+
mpc = LinMPC(model, Mwt=[1, 0], Nwt=[0.1])
5252
mpc = setconstraint!(mpc, ŷmax=[Inf, 35])
5353
```
5454

0 commit comments

Comments
 (0)