MultiAgentDecisionProcess  Release 0.2.1
MDPSolver Class Reference

MDPSolver is an interface for MDP solvers. More...

#include <MDPSolver.h>

+ Inheritance diagram for MDPSolver:
+ Collaboration diagram for MDPSolver:

Public Member Functions

Index GetMaximizingAction (Index time_step, Index sI)
const
PlanningUnitDecPOMDPDiscrete
GetPU () const
 Returns a ref to the PlanningUnit.
virtual double GetQ (Index time_step, Index sI, Index jaI) const =0
 Get Q-value for finite-horizon case.
virtual double GetQ (Index sI, Index jaI) const =0
 Get Q-value for infinite-horizon case.
virtual double GetQ (Index time_step, const JointBeliefInterface &jb, Index jaI) const
virtual double GetQ (const JointBeliefInterface &jb, Index jaI) const
virtual QTable GetQTable (Index time_step) const =0
virtual QTables GetQTables () const =0
QTable LoadQTable (std::string filename)
QTables LoadQTables (std::string filename, int nrTables)
 MDPSolver ()
 (default) Constructor
 MDPSolver (const PlanningUnitDecPOMDPDiscrete &pu)
virtual void Plan ()=0
void Print () const
void SetPU (const PlanningUnitDecPOMDPDiscrete &pu)
virtual void SetQTable (const QTable &Q, Index time_step)=0
virtual void SetQTables (const QTables &Qs)=0
virtual ~MDPSolver ()
 Destructor.

Static Public Member Functions

static QTable LoadQTable (std::string filename, unsigned int nrS, unsigned int nrA)
static QTables LoadQTables (std::string filename, unsigned int nrS, unsigned int nrA, unsigned int nrTables)
static void SaveQTable (const QTable &Q, std::string filename)
static void SaveQTables (const QTables &Q, std::string filename)

Private Attributes

const
PlanningUnitDecPOMDPDiscrete
_m_pu
 A pointer to the PlanningUnit (which can only be a const PlanningUnitDecPOMDPDiscrete or derived type).

Detailed Description

MDPSolver is an interface for MDP solvers.

Definition at line 43 of file MDPSolver.h.

Constructor & Destructor Documentation

MDPSolver::MDPSolver ( )
inline

(default) Constructor

Definition at line 56 of file MDPSolver.h.

MDPSolver::MDPSolver ( const PlanningUnitDecPOMDPDiscrete pu)
inline

Definition at line 58 of file MDPSolver.h.

MDPSolver::~MDPSolver ( )
virtual

Destructor.

Definition at line 41 of file MDPSolver.cpp.

Member Function Documentation

Index MDPSolver::GetMaximizingAction ( Index  time_step,
Index  sI 
)

Definition at line 132 of file MDPSolver.cpp.

const PlanningUnitDecPOMDPDiscrete* MDPSolver::GetPU ( ) const
inline

Returns a ref to the PlanningUnit.

Definition at line 61 of file MDPSolver.h.

References _m_pu.

Referenced by MDPValueIteration::Initialize(), MDPValueIteration::Plan(), and MDPValueIteration::PlanSlow().

virtual double MDPSolver::GetQ ( Index  time_step,
Index  sI,
Index  jaI 
) const
pure virtual

Get Q-value for finite-horizon case.

Implemented in MDPValueIteration.

Referenced by QMDP::CacheJaohQValues(), QMDP::GetQ(), QMDP::GetQNoCache(), and QMDP::GetQSA().

virtual double MDPSolver::GetQ ( Index  sI,
Index  jaI 
) const
pure virtual

Get Q-value for infinite-horizon case.

Implemented in MDPValueIteration.

double MDPSolver::GetQ ( Index  time_step,
const JointBeliefInterface jb,
Index  jaI 
) const
virtual
virtual QTable MDPSolver::GetQTable ( Index  time_step) const
pure virtual

Implemented in MDPValueIteration.

virtual QTables MDPSolver::GetQTables ( ) const
pure virtual

Implemented in MDPValueIteration.

Referenced by QMDP::Save().

QTable MDPSolver::LoadQTable ( std::string  filename)
QTable MDPSolver::LoadQTable ( std::string  filename,
unsigned int  nrS,
unsigned int  nrA 
)
static

Definition at line 157 of file MDPSolver.cpp.

QTables MDPSolver::LoadQTables ( std::string  filename,
int  nrTables 
)

Definition at line 196 of file MDPSolver.cpp.

Referenced by QMDP::Load().

QTables MDPSolver::LoadQTables ( std::string  filename,
unsigned int  nrS,
unsigned int  nrA,
unsigned int  nrTables 
)
static

Definition at line 204 of file MDPSolver.cpp.

virtual void MDPSolver::Plan ( )
pure virtual

Implemented in MDPValueIteration.

Referenced by QMDP::Compute().

void MDPSolver::Print ( ) const

Definition at line 76 of file MDPSolver.cpp.

References Globals::MAXHORIZON.

void MDPSolver::SaveQTable ( const QTable Q,
std::string  filename 
)
static
void MDPSolver::SaveQTables ( const QTables Q,
std::string  filename 
)
static

Definition at line 280 of file MDPSolver.cpp.

Referenced by QMDP::Save().

void MDPSolver::SetPU ( const PlanningUnitDecPOMDPDiscrete pu)
inline

Definition at line 64 of file MDPSolver.h.

References _m_pu.

virtual void MDPSolver::SetQTable ( const QTable Q,
Index  time_step 
)
pure virtual

Implemented in MDPValueIteration.

virtual void MDPSolver::SetQTables ( const QTables Qs)
pure virtual

Implemented in MDPValueIteration.

Referenced by QMDP::Load().

Member Data Documentation

const PlanningUnitDecPOMDPDiscrete* MDPSolver::_m_pu
private

A pointer to the PlanningUnit (which can only be a const PlanningUnitDecPOMDPDiscrete or derived type).

Definition at line 49 of file MDPSolver.h.

Referenced by GetPU(), and SetPU().


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