MultiAgentDecisionProcess
QBG Class Reference

QBG is a class that represents the QBG heuristic. More...

#include <QBG.h>

Inheritance diagram for QBG:
[legend]

Public Member Functions

void ComputeNoCache ()
 Compute the heuristic. More...
 
double ComputeRecursivelyNoCache (size_t time_step, Index jahI, Index johI, const JointBelief &JB, Index lastJAI)
 Recursively compute the heuristic. More...
 
 QBG (const PlanningUnitDecPOMDPDiscrete *pu)
 (default) Constructor More...
 
 QBG (const boost::shared_ptr< const PlanningUnitDecPOMDPDiscrete > &pu)
 
std::string SoftPrintBrief () const
 Returns a short description of the heuristic, can be used for constructing filenames. More...
 
 ~QBG ()
 Destructor. More...
 
- Public Member Functions inherited from QFunctionJAOHTree
void Compute ()
 Compute the heuristic. More...
 
double GetQ (Index jaohI, Index jaI) const
 Return the Qvalue for JointActionObservationHistory Index jaohI and JointAction index jaI. More...
 
void Load (const std::string &filename)
 Load the Qvalues from disk from a file named filename. More...
 
 QFunctionJAOHTree (const PlanningUnitDecPOMDPDiscrete *pu)
 Default constructor, requires a planning unit. More...
 
 QFunctionJAOHTree (const boost::shared_ptr< const PlanningUnitDecPOMDPDiscrete > &pu)
 
void Save (const std::string &filename) const
 Stores the Qvalues to disk in file named filename. More...
 
void SetPU (const PlanningUnitDecPOMDPDiscrete *pu)
 
void SetPU (const boost::shared_ptr< const PlanningUnitDecPOMDPDiscrete > &pu)
 
virtual ~QFunctionJAOHTree ()
 Destructor. More...
 
- Public Member Functions inherited from QFunctionJAOH
virtual void ComputeWithCachedQValues (bool computeIfNotCached=true)
 Compute Qvalue function, while caching the Qvalues to disk. More...
 
 QFunctionJAOH (const PlanningUnitDecPOMDPDiscrete *pu)
 Default constructor, requires a planning unit. More...
 
 QFunctionJAOH (const boost::shared_ptr< const PlanningUnitDecPOMDPDiscrete > &pu)
 
virtual ~QFunctionJAOH ()
 Destructor. More...
 
- Public Member Functions inherited from QFunctionJAOHInterface
 QFunctionJAOHInterface ()
 
virtual ~QFunctionJAOHInterface ()
 Destructor. More...
 
- Public Member Functions inherited from QFunctionForDecPOMDPInterface
 QFunctionForDecPOMDPInterface ()
 (default) Constructor More...
 
virtual ~QFunctionForDecPOMDPInterface ()
 Destructor. More...
 
- Public Member Functions inherited from QFunctionInterface
virtual void Load ()
 Load the Qvalues from disk. More...
 
virtual void Save () const
 Stores the Qvalues to disk. More...
 
virtual ~QFunctionInterface ()
 
- Public Member Functions inherited from QFunctionForDecPOMDP
virtual std::string GetCacheFilename () const
 Gets the filename where the Qvalues should be stored. More...
 
const
PlanningUnitDecPOMDPDiscrete
GetPU () const
 
 QFunctionForDecPOMDP (const PlanningUnitDecPOMDPDiscrete *pu)
 (default) Constructor More...
 
 QFunctionForDecPOMDP (const boost::shared_ptr< const PlanningUnitDecPOMDPDiscrete > &pu)
 

Private Member Functions

double ComputeRecursively (size_t time_step, LIndex joahI, Index lastJAI)
 Recursively compute the heuristic. More...
 

Additional Inherited Members

- Protected Member Functions inherited from QFunctionJAOH
virtual void ComputeWithCachedQValues (const std::string &filenameCache, bool computeIfNotCached=true)
 See ComputeWithCachedQValues(), this version accepts a filename. More...
 
- Protected Attributes inherited from QFunctionJAOH
QTable _m_QValues
 Table in which the Qvalues are stored. More...
 

Detailed Description

QBG is a class that represents the QBG heuristic.

It is associated with a PlanningUnitDecPOMDPDiscrete which it uses for things as horizon, action-/observation(history) indices, etc.

Constructor & Destructor Documentation

QBG::QBG ( const PlanningUnitDecPOMDPDiscrete pu)

(default) Constructor

QBG::QBG ( const boost::shared_ptr< const PlanningUnitDecPOMDPDiscrete > &  pu)
QBG::~QBG ( )

Destructor.

Member Function Documentation

void QBG::ComputeNoCache ( )

Compute the heuristic.

(after associated with an initialized PlanningUnitDecPOMDPDiscrete)

std::string QBG::SoftPrintBrief ( ) const
inlinevirtual

Returns a short description of the heuristic, can be used for constructing filenames.

Implements QFunctionInterface.