Skip to content

Commit 1fb831d

Browse files
committed
doc: new fix to hide the warnings
1 parent 9b05b63 commit 1fb831d

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

docs/src/manual/nonlinmpc.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44
Pages = ["nonlinmpc.md"]
55
```
66

7-
```@setup man_nonlin
8-
using Logging;
9-
with_logger(ConsoleLogger(stderr, Error)) do
10-
```
11-
127
## Nonlinear Model
138

149
In this example, the goal is to control the angular position ``θ`` of a pendulum
@@ -301,7 +296,10 @@ nmpc2 # hide
301296
In addition to the 180° setpoint response:
302297

303298
```@example man_nonlin
299+
using Logging # hide
300+
res3_ry = with_logger(ConsoleLogger(stderr, Error)) do # hide
304301
res3_ry = sim!(nmpc2, N, [180; 0]; plant=plant2, x_0=[0, 0], x̂_0=[0, 0, 0]);
302+
end # hide
305303
nothing # hide
306304
```
307305

@@ -480,8 +478,4 @@ savefig("plot13_NonLinMPC.svg"); nothing # hide
480478
![plot13_NonLinMPC](plot13_NonLinMPC.svg)
481479

482480
The computations of the successive linearization MPC are about 75 times faster than the
483-
nonlinear MPC on average, an impressive gain for similar closed-loop performances!
484-
485-
```@setup man_nonlin
486-
end
487-
```
481+
nonlinear MPC on average, an impressive gain for similar closed-loop performances!

0 commit comments

Comments
 (0)