Skip to content

Commit

Permalink
Update test/NNDAE_tests.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Christopher Rackauckas <[email protected]>
  • Loading branch information
KirillZubov and ChrisRackauckas authored Jan 30, 2024
1 parent f96803e commit 2ccb67f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/NNDAE_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ f = ODEFunction(example2, mass_matrix = M)
prob_mm = ODEProblem(f, u₀, tspan)
ground_sol = solve(prob_mm, Rodas5(), reltol = 1e-8, abstol = 1e-8)

example = (du, u, p, t) -> [u[1] - t, u[2] - t]
example = (du, u, p, t) -> [u[1] - t - du[1], u[2] - t - du[2]]
differential_vars = [false, true]
prob = DAEProblem(example, du₀, u₀, tspan; differential_vars = differential_vars)
chain = Flux.Chain(Dense(1, 15, σ), Dense(15, 2))
Expand Down

0 comments on commit 2ccb67f

Please sign in to comment.