stateIdxMat: Info about the states in the HMDP model under consideration.

Description Usage Arguments Value Author(s) Examples

View source: R/infoMat.R

Description

Info about the states in the HMDP model under consideration.

Usage

1
  stateIdxMat(prefix = "", file = "stateIdx.bin")

Arguments

prefix

A character string with the prefix added to til file(s).

file

The HMDP binary file containing the description under consideration.

Value

A matrix with columns (sId, n0, s0, a0, ...) where sId is the state row id, n0 the index of the stage at level 0, s0 the index of the state and a0 the index of the action. If the HMDP has more than one level columns index (d1, s1, a1, ...) are added.

Author(s)

Lars Relund lars@relund.dk

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
wDir<-getwd()
setwd(system.file("models", package = "MDP"))

prefix<-"machine1_"
stateIdxMat(prefix)
stateIdxDf(prefix)
actionIdxMat(prefix)
actionIdxDf(prefix)
actionWeightMat(prefix)
weightNames(prefix)
transProbMat(prefix)
a<-actionInfo(prefix)
a[order(a$sId),]

setwd(wDir)

MDP documentation built on May 2, 2019, 6:48 p.m.

Related to stateIdxMat in MDP...