powered by
A POMDPX file specifies a POMDP problem in terms of the transition, observation, and reward matrices, the discount factor, and the initial belief.
write_pomdpx( P, O, R, gamma, b = rep(1/dim(O)[1], dim(O)[1]), file = "input.pomdpx", digits = 12, digits2 = 12, format = "f" )
transition matrix
observation matrix
reward
discount factor
initial belief
pomdpx file to create
precision to round to before normalizing. Leave at 4 since sarsop seems unable to do more?
precision to write solution to. Leave at 10, since normalizing requires additional precision
floating point format, because sarsop parser doesn't seem to know scientific notation
m <- fisheries_matrices() f <- tempfile() write_pomdpx(m$transition, m$observation, m$reward, 0.95, file = f)
Run the code above in your browser using DataLab