Skip to content

Commit b7103ae

Browse files
committed
doc correction last plot manual LinMPC
1 parent b1ee97d commit b7103ae

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/src/manual/linmpc.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,16 +137,21 @@ plot_data(t_data, u_data, y_data, ry_data)
137137
For some situations, when [`LinMPC`](@ref) matrices are small/medium and dense, [`DAQP`](https://darnstrom.github.io/daqp/)
138138
optimizer may be more efficient. To install it, run:
139139

140-
```julia
140+
```text
141141
using Pkg; Pkg.add("DAQP")
142142
```
143143

144-
Constructing a [`LinMPC`](@ref) with `DAQP` leads to identical results here:
144+
Constructing a [`LinMPC`](@ref) with `DAQP`:
145145

146146
```@example 1
147147
using JuMP, DAQP
148148
daqp = Model(DAQP.Optimizer)
149149
mpc2 = setconstraint!(LinMPC(model, Hp=15, Hc=2, optim=daqp), ŷmin=[45, -Inf])
150+
```
151+
152+
leads to identical results here:
153+
154+
```@example 1
150155
setstate!(model, zeros(model.nx))
151156
initstate!(mpc2, model.uop, model())
152157
u_data2, y_data2, ry_data2 = test_mpc(mpc2, model)

0 commit comments

Comments
 (0)