MultiAgentDecisionProcess
Release 0.2.1
|
QBG is a class that represents the QBG heuristic. More...
#include <QBG.h>
Public Member Functions | |
void | ComputeNoCache () |
Compute the heuristic. | |
double | ComputeRecursivelyNoCache (size_t time_step, Index jahI, Index johI, const JointBelief &JB, Index lastJAI) |
Recursively compute the heuristic. | |
QBG (const PlanningUnitDecPOMDPDiscrete &pu) | |
(default) Constructor | |
~QBG () | |
Destructor. | |
![]() | |
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. |
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.
QBG::QBG | ( | const PlanningUnitDecPOMDPDiscrete & | pu | ) |
void QBG::ComputeNoCache | ( | ) |
Compute the heuristic.
(after associated with an initialized PlanningUnitDecPOMDPDiscrete)
|
private |
Recursively compute the heuristic.
This is called by Compute().
Definition at line 68 of file QBG.cpp.
References DEBUG_QBG_COMPREC, BeliefInterface::Get(), TreeNode< Tcontained >::GetIndex(), BeliefInterface::GetIterator(), BeliefIteratorGeneric::GetProbability(), BeliefIteratorGeneric::GetStateIndex(), JointActionObservationHistoryTree::GetSuccessor(), BeliefIteratorGeneric::Next(), BeliefInterface::Print(), BayesianGameIdenticalPayoff::Print(), Globals::PROB_PRECISION, BayesianGameBase::SetProbability(), BayesianGameIdenticalPayoff::SetUtility(), and BGIP_SolverBruteForceSearch< JP >::Solve().
double QBG::ComputeRecursivelyNoCache | ( | size_t | time_step, |
Index | jahI, | ||
Index | johI, | ||
const JointBelief & | JB, | ||
Index | lastJAI | ||
) |
Recursively compute the heuristic.
This is called by Compute().
Definition at line 235 of file QBG.cpp.
References DEBUG_QBG_COMPREC, PlanningUnitDecPOMDPDiscrete::GetDiscount(), TreeNode< Tcontained >::GetIndex(), PlanningUnitMADPDiscrete::GetJointActionHistoryTree(), PlanningUnitMADPDiscrete::GetJointObservation(), PlanningUnitMADPDiscrete::GetJointObservationHistoryTree(), PlanningUnitMADPDiscrete::GetNrJointActions(), PlanningUnitMADPDiscrete::GetNrJointObservations(), PlanningUnitMADPDiscrete::GetNrStates(), QFunctionForDecPOMDP::GetPU(), PlanningUnitDecPOMDPDiscrete::GetReward(), JointObservation::Print(), Belief::Print(), BayesianGameIdenticalPayoff::Print(), BayesianGameBase::SetProbability(), BayesianGameIdenticalPayoff::SetUtility(), BGIP_SolverBruteForceSearch< JP >::Solve(), and JointBelief::Update().