Skip to content

Commit

Permalink
renamed o_list to olist for stylistic consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
zsunberg committed Jul 1, 2024
1 parent 8b3a884 commit 4a580ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/default_policy_sim.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ function branching_sim(pomdp::POMDP, policy::Policy, b::ScenarioBelief, steps::I
S = statetype(pomdp)
O = obstype(pomdp)
odict = Dict{O, Vector{Pair{Int, S}}}()
o_list = O[]
olist = O[]

if steps <= 0
return length(b.scenarios)*fval(pomdp, b)
Expand All @@ -20,14 +20,14 @@ function branching_sim(pomdp::POMDP, policy::Policy, b::ScenarioBelief, steps::I
push!(odict[o], k=>sp)
else
odict[o] = [k=>sp]
push!(o_list,o)
push!(olist,o)
end

r_sum += r
end
end
next_r = 0.0
for o in o_list
for o in olist
scenarios = odict[o]
bp = ScenarioBelief(scenarios, b.random_source, b.depth+1, o)
if length(scenarios) == 1
Expand Down

0 comments on commit 4a580ef

Please sign in to comment.