calcWeights {MDP}R Documentation

Calculate weights based on current policy.

Description

Calculate weights based on current policy. Normally run after an optimal policy has been found.

Usage

calcWeights(mdp, iW, criterion="expected", iDur=0, rate=0.1,
    rateBase=365, termValues)

Arguments

mdp The MDP loaded using loadMDP.
iW Vector of weight indices we want to calc weights for.
criterion The criterion used. If expected used expected reward, if discount used discounted rewards, if average use average rewards.
iDur Index of duration such that discount rates can be calculated.
rate The interest rate.
rateBase The time-horizon the rate is valid over.
g The optimal gain (g) calculated (used if criterion = "average").

Value

Nothing.

Author(s)

Lars Relund lars@relund.dk


[Package MDP version 1.0 Index]