Skip to content

Commit 8773654

Browse files
committed
remove \int
1 parent dc0dbfa commit 8773654

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/downstream/jump_control.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using ModelingToolkit
2+
@show @__MODULE__
23
import JuMP, InfiniteOpt
34
using DiffEqDevTools, DiffEqBase
45
using SimpleDiffEq
@@ -278,7 +279,7 @@ end
278279
rhss = -H \ Vector(C * qd + G - B * u)
279280
eqs = [D(D(x(t))) ~ rhss[1], D(D(θ(t))) ~ rhss[2]]
280281
cons = [θ(tf) ~ π, x(tf) ~ 0, D(θ(tf)) ~ 0, D(x(tf)) ~ 0]
281-
costs = [(u^2)]
282+
costs = [Symbolics.Integral(t in (0, tf))(u^2)]
282283
tspan = (0, tf)
283284

284285
@named cartpole = ODESystem(eqs, t; costs, constraints = cons)

0 commit comments

Comments
 (0)