getPolicy {MDP}R Documentation

Get parts of the optimal policy.

Description

Get parts of the optimal policy.

Usage

getPolicy(mdp, sId=1:mdp$states - 1, labels=FALSE)

Arguments

mdp The MDP loaded using loadMDP.
sId Vector of id's of the states we want to retrive.
labels If true return policy labels otherwise return action index.

Value

The policy (matrix (if labels = FALSE) otherwise data frame).

Author(s)

Lars Relund lars@relund.dk


[Package MDP version 1.0 Index]