read a .policyx file created by SARSOP and return alpha vectors and associated actions.
read_policyx(file = "output.policyx")
file | name of the policyx file to be read. |
---|
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.