Skip to content

Commit

Permalink
Fix initial costs (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
slwu89 authored Nov 22, 2023
1 parent 6d932f6 commit ca7bb99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GenerativeDesigns/UncertaintyReductionMDP.jl
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ POMDPs.initialstate(m::UncertaintyReductionMDP) = Deterministic(m.initial_state)

function POMDPs.transition(m::UncertaintyReductionMDP, state, action_set)
if action_set == [eox]
Deterministic(merge(state, Dict(eox => -1), [0.0, 0.0]))
Deterministic(merge(state, Dict(eox => -1), (0.0, 0.0)))
else
# costs
cost_m, cost_t = 0.0, 0.0
Expand Down

0 comments on commit ca7bb99

Please sign in to comment.