observations: a character vector specifying the names of the available observations.
observation_prob: Specifies the observation probabilities (see POMDP for details).
Returns
a MDP or a POMDP object.
Details
make_partially_observable() adds an observation model to an MDP. If no observations and observation probabilities are provided, then an observation for each state is created with identity observation matrices. This means we have a fully observable model encoded as a POMDP.
make_fully_observable() removes the observation model from a POMDP and returns an MDP.
Examples
# Turn the Maze MDP into a partially observable problem.# Here each state has an observation, so it is still a fully observable problem# encoded as a POMDP.data("Maze")Maze
Maze_POMDP <- make_partially_observable(Maze)Maze_POMDP
sol <- solve_POMDP(Maze_POMDP)policy(sol)simulate_POMDP(sol, n =1, horizon =100, return_trajectories =TRUE)$trajectories
# Make the Tiger POMDP fully observabledata("Tiger")Tiger
Tiger_MDP <- make_fully_observable(Tiger)Tiger_MDP
sol <- solve_MDP(Tiger_MDP)policy(sol)# The result is not exciting since we can observe where the tiger is!