Skip to content

Commit 3e35b1e

Browse files
committed
minor doc correction
1 parent e6e3944 commit 3e35b1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/manual/nonlinmpc.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ function calcW(res)
207207
τ, ω = res.U_data[1, 1:end-1], res.X_data[2, 1:end-1]
208208
return Ts*sum(τ.*ω)
209209
end
210-
Dict(:nmpc => calcW(res_ry), :empc => calcW(res2_ry))
210+
Dict(:W_nmpc => calcW(res_ry), :W_empc => calcW(res2_ry))
211211
```
212212

213213
But, for a 10° step disturbance:
@@ -223,7 +223,7 @@ savefig(ans, "plot6_NonLinMPC.svg"); nothing # hide
223223
the new controller is able to recuperate more energy from the pendulum (i.e. negative work):
224224

225225
```@example 1
226-
Dict(:nmpc => calcW(res_yd), :empc => calcW(res2_yd))
226+
Dict(:W_nmpc => calcW(res_yd), :W_empc => calcW(res2_yd))
227227
```
228228

229229
Of course, this gain is only exploitable if the motor electronic includes some kind of

0 commit comments

Comments
 (0)