mdp-0.1.1.0: Tools for solving Markov Decision Processes.

Safe HaskellNone
LanguageHaskell98

Algorithms.MDP.Examples.Ex_3_1

Description

The problem described by Bertsekas p. 22.

Synopsis

Documentation

data State Source #

There are two distinct states

Constructors

A 
B 

Instances

Eq State Source # 

Methods

(==) :: State -> State -> Bool #

(/=) :: State -> State -> Bool #

Ord State Source # 

Methods

compare :: State -> State -> Ordering #

(<) :: State -> State -> Bool #

(<=) :: State -> State -> Bool #

(>) :: State -> State -> Bool #

(>=) :: State -> State -> Bool #

max :: State -> State -> State #

min :: State -> State -> State #

Show State Source # 

Methods

showsPrec :: Int -> State -> ShowS #

show :: State -> String #

showList :: [State] -> ShowS #

data Control Source #

There are two distinct actions we can take in each state

Constructors

U1 
U2 

transition :: Control -> State -> State -> Double Source #

The transition matrix

costs :: Control -> State -> Double Source #

The costs associated with each state and action

alpha :: Double Source #

The discount factor

states :: [State] Source #

The available states

controls :: [Control] Source #

The available actions

mdp :: MDP State Control Double Source #

The MDP representing the problem.