CRAAM  2.0.0
Robust and Approximate Markov Decision Processes
Public Types | Public Member Functions | Protected Attributes | List of all members
craam::msen::DeterministicPolicy< Sim > Class Template Reference

A deterministic policy that chooses actions according to the provided action index. More...

#include <Simulation.hpp>

Public Types

using State = typename Sim::State
 
using Action = typename Sim::Action
 

Public Member Functions

 DeterministicPolicy (const Sim &sim, indvec actions)
 Initializes randomized polices, transition probabilities for each state. More...
 
Action operator() (State state)
 Returns a random action.
 

Protected Attributes

indvec actions
 List of which action to take in which state.
 
const Sim & sim
 simulator reference
 

Detailed Description

template<typename Sim>
class craam::msen::DeterministicPolicy< Sim >

A deterministic policy that chooses actions according to the provided action index.

State must be convertible to a long index; that is must support (explicit) operator long Actions also have to be indexed. See the definition of simulate.

Constructor & Destructor Documentation

◆ DeterministicPolicy()

template<typename Sim >
craam::msen::DeterministicPolicy< Sim >::DeterministicPolicy ( const Sim &  sim,
indvec  actions 
)
inline

Initializes randomized polices, transition probabilities for each state.

Parameters
simSimulator used with the policy. The reference is retained, the object should not be deleted
actionsIndex of action to take for each state

The documentation for this class was generated from the following file: