Skip to content

Commit

Permalink
Avoid test instability with RTDP.
Browse files Browse the repository at this point in the history
  • Loading branch information
ztangent committed Sep 10, 2024
1 parent fa6a9ca commit 1b51195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/planners.jl
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ actions, trajectory = simulator(sol, doors_keys_gems, dkg_state, dkg_spec)
"(up)", "(up)", "(pickup gem1)")
@test get_value(sol, dkg_state) == -9.0

planner = RTDP(heuristic=LMCut(), rollout_noise=1.0, n_rollouts=10)
planner = RTDP(heuristic=HAdd(), rollout_noise=1.0, n_rollouts=10)
sol = planner(blocksworld, bw_state, bw_spec)
actions, trajectory = simulator(sol, blocksworld, bw_state, bw_spec)
@test is_goal(bw_spec, blocksworld, trajectory[end])
Expand Down

0 comments on commit 1b51195

Please sign in to comment.