Skip to content

Commit

Permalink
Loosen the threshold for a policy search test
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholaskl97 committed Jan 31, 2025
1 parent e316af3 commit 68c73a8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/inverted_pendulum.jl
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,10 @@ x0 = (ub .- lb) .* rand(2, 100) .+ lb
@test all(isapprox.(V(x0), V(x0 .+ [2π, 0.0]); rtol = 1e-3))

# Training should result in a locally stable fixed point at the upright equilibrium
@test maximum(abs, open_loop_pendulum_dynamics(upright_equilibrium, u(upright_equilibrium), p, 0.0)) < 1e-3
@test maximum(
abs,
open_loop_pendulum_dynamics(upright_equilibrium, u(upright_equilibrium), p, 0.0)
) < 6e-2
@test maximum(
eigvals(
ForwardDiff.jacobian(
Expand Down

0 comments on commit 68c73a8

Please sign in to comment.