CRAAM  2.0.0
Robust and Approximate Markov Decision Processes
Public Member Functions | Public Attributes | List of all members
craam::algorithms::Solution Struct Reference

A solution to a plain MDP. More...

#include <values.hpp>

Inheritance diagram for craam::algorithms::Solution:
craam::algorithms::SolutionRobust

Public Member Functions

 Solution (size_t statecount)
 Empty solution for a problem with statecount states.
 
 Solution (numvec valuefunction, indvec policy, prec_t residual=-1, long iterations=-1)
 Empty solution for a problem with a given value function and policy.
 
prec_t total_return (const Transition &initial) const
 Computes the total return of the solution given the initial distribution. More...
 

Public Attributes

numvec valuefunction
 Value function.
 
indvec policy
 index of the action to take for each states
 
prec_t residual
 Bellman residual of the computation.
 
long iterations
 Number of iterations taken.
 

Detailed Description

A solution to a plain MDP.

Member Function Documentation

◆ total_return()

prec_t craam::algorithms::Solution::total_return ( const Transition initial) const
inline

Computes the total return of the solution given the initial distribution.

Parameters
initialThe initial distribution

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