Skip to content

Commit

Permalink
♻️ Swap Move(b) scaling factor
Browse files Browse the repository at this point in the history
  • Loading branch information
jmuchovej committed Jul 6, 2023
1 parent 655f0c6 commit c1e4649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rewards.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ function POMDPs.reward(p::BoxWorld, s::State, a::MoveAction)
box = s.pos
boxp = p.boxes[a.target].pos

return euclidean(box, boxp) * -1.
return -1. * euclidean(box, boxp)
end

function POMDPs.reward(p::BoxWorld, s::State, a::TakeAction)
Expand Down

0 comments on commit c1e4649

Please sign in to comment.