Skip to content

Commit 4fc53f9

Browse files
committed
Avoid missing action in TabularVPolicy.
1 parent 7113a31 commit 4fc53f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/solutions/tabular_policy.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ function best_action(sol::TabularVPolicy, state::State)
175175
best_act = missing
176176
for act in available(sol.domain, state)
177177
val = get_value(sol, state, act)
178-
if val > best_val
178+
if val > best_val || ismissing(best_act)
179179
best_val = val
180180
best_act = act
181181
end

0 commit comments

Comments
 (0)