Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "ModelPredictiveControl"
uuid = "61f9bdb8-6ae4-484a-811f-bbf86720c31c"
version = "2.2.2"
version = "2.2.3"
authors = ["Francis Gagnon"]

[deps]
Expand Down
6 changes: 3 additions & 3 deletions docs/src/manual/mtk.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ Ts = 0.1
model = setname!(NonLinModel(f!, h!, Ts, nu, nx, ny; p); u=vu, x=vx, y=vy)
```

We also instantiate a plant model with a 25 % larger friction coefficient ``K``, which is
the third element of `p`, as shown above:
We also instantiate a plant model with a 25 % larger friction coefficient ``K``:

```@example 1
i_K = findfirst(==("K"), string.(p_sym))
p2 = copy(p)
p2[3] = 1.25*p[3]
p2[i_K] = 1.25*p[i_K]
plant = setname!(NonLinModel(f!, h!, Ts, nu, nx, ny; p=p2), u=vu, x=vx, y=vy)
```

Expand Down
Loading