read_policyx {sarsop} | R Documentation |
read_policyx
Description
read a .policyx file created by SARSOP and return alpha vectors and associated actions.
Usage
read_policyx(file = "output.policyx")
Arguments
file |
name of the policyx file to be read. |
Value
a list, first element "vectors" is an n_states x n_vectors array of alpha vectors, second element is a numeric vector "action" of length n_vectors whose i'th element indicates the action corresponding to the i'th alpha vector (column) in the vectors array.
Examples
f <- system.file("extdata", "out.policy", package="sarsop", mustWork = TRUE)
policy <- read_policyx(f)
[Package sarsop version 0.6.15 Index]