MultiAgentDecisionProcess
Release 0.2.1
|
QPOMDP is a class that represents the QPOMDP heuristic. More...
#include <QPOMDP.h>
Public Member Functions | |
QPOMDP (const PlanningUnitDecPOMDPDiscrete &pu) | |
(default) Constructor | |
~QPOMDP () | |
![]() | |
void | Compute () |
Compute the heuristic. | |
double | GetQ (Index jaohI, Index jaI) const |
Return the Qvalue for JointActionObservationHistory Index jaohI and JointAction index jaI. | |
void | Load (std::string filename) |
Load the Qvalues from disk from a file named filename. | |
QFunctionJAOHTree (const PlanningUnitDecPOMDPDiscrete &pu) | |
Default constructor, requires a planning unit. | |
void | Save (std::string filename) const |
Stores the Qvalues to disk in file named filename. | |
void | SetPU (const PlanningUnitDecPOMDPDiscrete &pu) |
virtual | ~QFunctionJAOHTree () |
Destructor. | |
![]() | |
void | ComputeWithCachedQValues () |
Destructor. | |
QFunctionJAOH (const PlanningUnitDecPOMDPDiscrete &pu) | |
Default constructor, requires a planning unit. | |
![]() | |
virtual std::string | GetCacheFilename () const |
Gets the filename where the Qvalues should be stored. | |
void | Load () |
Load the Qvalues from disk. | |
QFunctionJAOHInterface () | |
void | Save () const |
Stores the Qvalues to disk. | |
virtual | ~QFunctionJAOHInterface () |
Destructor. | |
![]() | |
QFunctionForDecPOMDPInterface () | |
(default) Constructor | |
virtual | ~QFunctionForDecPOMDPInterface () |
Destructor. | |
![]() | |
virtual | ~QFunctionInterface () |
Compute the heuristic. | |
![]() | |
const PlanningUnitDecPOMDPDiscrete * | GetPU () const |
QFunctionForDecPOMDP (const PlanningUnitDecPOMDPDiscrete &pu) | |
(default) Constructor |
Private Member Functions | |
double | ComputeRecursively (size_t time_step, JointActionObservationHistoryTree *jaoht, Index lastJAI) |
Recursively compute the heuristic. |
Additional Inherited Members | |
![]() | |
virtual void | ComputeWithCachedQValues (std::string filenameCache) |
See ComputeWithCachedQValuesdQValues(), this version accepts a filename. | |
![]() | |
QTable | _m_QValues |
Table in which the Qvalues are stored. |
QPOMDP is a class that represents the QPOMDP heuristic.
It is associated with a PlanningUnitDecPOMDPDiscrete which it uses for things as horizon, action-/observation(history) indices, etc.
QPOMDP::QPOMDP | ( | const PlanningUnitDecPOMDPDiscrete & | pu | ) |
(default) Constructor
Definition at line 48 of file QPOMDP.cpp.
QPOMDP::~QPOMDP | ( | ) |
Definition at line 56 of file QPOMDP.cpp.
|
private |
Recursively compute the heuristic.
This is called by Compute().
Definition at line 66 of file QPOMDP.cpp.
References DEBUG_QPOMDP_COMPREC, BeliefInterface::Get(), TreeNode< Tcontained >::GetIndex(), BeliefInterface::GetIterator(), BeliefIteratorGeneric::GetProbability(), BeliefIteratorGeneric::GetStateIndex(), JointActionObservationHistoryTree::GetSuccessor(), BeliefIteratorGeneric::Next(), BeliefInterface::Print(), BayesianGameIdenticalPayoff::PrintUtilForJointType(), Globals::PROB_PRECISION, BayesianGameBase::SetProbability(), BayesianGameIdenticalPayoff::SetUtility(), and BeliefInterface::SoftPrint().