Skip to content

Commit dd3a5f2

Browse files
committed
removed: Hp parameter in the gc example of the manual (useless)
1 parent 27648cc commit dd3a5f2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/src/manual/nonlinmpc.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ argument ("left-hand side" of the inequality above) for the in-place version:
265265

266266
```@example man_nonlin
267267
function gc!(LHS, Ue, Ŷe, _, p, ϵ)
268-
Pmax, Hp = p
268+
Pmax = p
269269
i_τ, i_ω = 1, 2
270270
for i in eachindex(LHS)
271271
τ, ω = Ue[i_τ], Ŷe[i_ω]
@@ -287,8 +287,7 @@ specifying the number of custom inequality constraints `nc`:
287287

288288
```@example man_nonlin
289289
Cwt, Pmax, nc = 1e5, 3, Hp+1
290-
p_nmpc2 = [Pmax, Hp]
291-
nmpc2 = NonLinMPC(estim2; Hp, Hc, Nwt=Nwt, Mwt=[0.5, 0], Cwt, gc!, nc, p=p_nmpc2)
290+
nmpc2 = NonLinMPC(estim2; Hp, Hc, Nwt=Nwt, Mwt=[0.5, 0], Cwt, gc!, nc, p=Pmax)
292291
using JuMP; unset_time_limit_sec(nmpc2.optim) # hide
293292
nmpc2 # hide
294293
```

0 commit comments

Comments
 (0)