Skip to content

Commit ec7e229

Browse files
committed
doc: debug small mistake
1 parent cf8bf82 commit ec7e229

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/src/manual/nonlinmpc.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ We construct the controller by enabling relaxation with the `Cwt` argument, and
289289
specifying the number of custom inequality constraints `nc`:
290290

291291
```@example 1
292-
Cwt, Pmax, nc = 1e5, 3, Hp + 1,
292+
Cwt, Pmax, nc = 1e5, 3, Hp+1
293293
p_nmpc2 = [Pmax, Hp]
294294
nmpc2 = NonLinMPC(estim2; Hp, Hc, Nwt=Nwt, Mwt=[0.5, 0], Cwt, gc!, nc, p=p_nmpc2)
295295
using JuMP; unset_time_limit_sec(nmpc2.optim) # hide
@@ -318,7 +318,7 @@ savefig("plot7_NonLinMPC.svg"); nothing # hide
318318

319319
![plot7_NonLinMPC](plot6_NonLinMPC.svg)
320320

321-
The small constraint violation is caused here by the modeling error in the friction
321+
The small constraint violation is caused here by the modeling error on the friction
322322
coefficient ``K``.
323323

324324
## Model Linearization
@@ -401,7 +401,7 @@ poor in the first quadrant:
401401
```@example 1
402402
res_lin3 = sim!(mpc2, N, [180.0]; plant, x_0=[0, 0])
403403
plot(res_lin3)
404-
savefig("plot9_NonLinMPC.svg"); nothing # hide
404+
savefig("plot11_NonLinMPC.svg"); nothing # hide
405405
```
406406

407407
![plot11_NonLinMPC](plot11_NonLinMPC.svg)

0 commit comments

Comments
 (0)