| actions {pomdp} | R Documentation |
Available Actions
Description
Determine the set of actions available in a state.
Usage
actions(x, state)
Arguments
x |
a |
state |
a character vector of length one specifying the state. |
Details
Unavailable actions are modeled here a actions that have an immediate
reward of -Inf in the reward function.
Value
a character vector with the available actions.
a vector with the available actions.
Author(s)
Michael Hahsler
See Also
Other MDP:
MDP(),
MDP2POMDP,
MDP_policy_functions,
accessors,
add_policy(),
gridworld,
reachable_and_absorbing,
regret(),
simulate_MDP(),
solve_MDP(),
transition_graph(),
value_function()
Other POMDP:
MDP2POMDP,
POMDP(),
accessors,
add_policy(),
plot_belief_space(),
projection(),
reachable_and_absorbing,
regret(),
sample_belief_space(),
simulate_POMDP(),
solve_POMDP(),
solve_SARSOP(),
transition_graph(),
update_belief(),
value_function(),
write_POMDP()
Examples
data(RussianTiger)
# The normal actions are "listen", "open-left", and "open-right".
# In the state "done" only the action "nothing" is available.
actions(RussianTiger, state = "tiger-left")
actions(RussianTiger, state = "tiger-right")
actions(RussianTiger, state = "done")