sarsop_plus: sarsop_plus

Description Usage Arguments Value Examples

View source: R/sarsop_plus.R

Description

sarsop_plus

Usage

1
2
sarsop_plus(models, discount, state_prior = NULL, mc.cores = 1L,
  log_data = NULL, ...)

Arguments

models

a list of lists, each of which gives the transition matrix, observation matrix and reward matrix for the model considered

discount

discount rate

state_prior

Prior belief that system is in state x_i and model m_i

mc.cores

number of parallel cores to use

log_data

a data frame with information to be logged, one row for each model. Leave NULL if not logging

...

additional options to sarsop::sarsop, if alphas are not provided

Value

A list of alpha vector matrices

Examples

1
2
3
4
5
6
## Not run: 
#' source(system.file("examples/K_models.R", package="pomdpplus"))
alphas <- sarsop_plus(models, discount, precision = 1)
unif <- compute_plus_policy(alphas, models, c(0.5, 0.5))

## End(Not run)

boettiger-lab/pomdpplus documentation built on Jan. 29, 2018, 3:59 a.m.