Skip to content

Commit 47a9d61

Browse files
Update OptimizationODE.jl
Removed hard coded alg call.
1 parent b759ce7 commit 47a9d61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/OptimizationODE/src/OptimizationODE.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,9 @@ function solve_dae_mass_matrix(cache, dt, maxit, u0, p)
206206
end
207207

208208
if m == 0
209-
optf = ODEFunction(f_mass!, mass_matrix = I(n))
209+
optf = ODEFunction(f_mass!)
210210
prob = ODEProblem(optf, u0, (0.0, 1.0), p)
211-
return solve(prob, HighOrderDescent(); dt=dt, maxiters=maxit)
211+
return solve(prob, cache.opt.solver; dt=dt, maxiters=maxit)
212212
end
213213

214214
ss_prob = SteadyStateProblem(ODEFunction(f_mass!, mass_matrix = M), u0_extended, p)

0 commit comments

Comments
 (0)