We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31b9954 commit 220db08Copy full SHA for 220db08
test/optimal_control.jl
@@ -307,5 +307,5 @@ end
307
prob = ODEProblem(lksys, u0map, tspan, parammap; allow_cost = true)
308
sol = solve(prob, Tsit5())
309
costfn = ModelingToolkit.generate_cost_function(lksys)
310
- @test costfn(sol, prob.p, _t) ≈ log(sol(0.56)[2] + sol(0.)[1]) - sol(0.4)[1]^2
+ @test costfn(sol, prob.p, _t) ≈ log(sol(0.56)[2] + sol(0.0)[1]) - sol(0.4)[1]^2
311
end
0 commit comments