read_policyx: read_policyx

View source: R/read_policyx.R

read_policyxR 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)


sarsop documentation built on Jan. 10, 2023, 5:16 p.m.

Related to read_policyx in sarsop...