Skip to content

Commit a5f4e1e

Browse files
Update modelingtoolkitize.jl
1 parent d805aa8 commit a5f4e1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/systems/optimization/modelingtoolkitize.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ function modelingtoolkitize(prob::DiffEqBase.OptimizationProblem; kwargs...)
1111
p = prob.p
1212
end
1313

14-
vars = ArrayInterfaceCore.restructure(prob.u0,
14+
vars = ArrayInterface.restructure(prob.u0,
1515
[variable(:x, i) for i in eachindex(prob.u0)])
1616
params = p isa DiffEqBase.NullParameters ? [] :
17-
ArrayInterfaceCore.restructure(p, [variable(, i) for i in eachindex(p)])
17+
ArrayInterface.restructure(p, [variable(, i) for i in eachindex(p)])
1818

1919
eqs = prob.f(vars, params)
2020

0 commit comments

Comments
 (0)