MultiAgentDecisionProcess
|
QBG is a class that represents the QBG heuristic. More...
#include <QBG.h>
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... | |
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 | ) |
(default) Constructor
QBG::QBG | ( | const boost::shared_ptr< const PlanningUnitDecPOMDPDiscrete > & | pu | ) |
QBG::~QBG | ( | ) |
Destructor.
void QBG::ComputeNoCache | ( | ) |
Compute the heuristic.
(after associated with an initialized PlanningUnitDecPOMDPDiscrete)
Recursively compute the heuristic.
This is called by Compute().
Implements QFunctionJAOHTree.
References Globals::CastLIndexToIndex(), DEBUG_QBG_COMPREC, BeliefInterface::Get(), TreeNode< Tcontained >::GetIndex(), BeliefInterface::GetIterator(), BeliefIteratorGeneric::GetProbability(), BeliefIteratorGeneric::GetStateIndex(), JointActionObservationHistoryTree::GetSuccessor(), BeliefIteratorGeneric::Next(), BeliefInterface::Print(), Globals::PROB_PRECISION, 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().
References Globals::CastLIndexToIndex(), DEBUG_QBG_COMPREC, PlanningUnitDecPOMDPDiscrete::GetDiscount(), PlanningUnitMADPDiscrete::GetJointActionHistoryTree(), PlanningUnitMADPDiscrete::GetJointObservation(), PlanningUnitMADPDiscrete::GetJointObservationHistoryTree(), PlanningUnitMADPDiscrete::GetNrJointActions(), PlanningUnitMADPDiscrete::GetNrJointObservations(), PlanningUnitMADPDiscrete::GetNrStates(), QFunctionForDecPOMDP::GetPU(), PlanningUnitDecPOMDPDiscrete::GetReward(), JointObservation::Print(), Belief::Print(), BGIP_SolverBruteForceSearch< JP >::Solve(), and JointBelief::Update().
|
inlinevirtual |
Returns a short description of the heuristic, can be used for constructing filenames.
Implements QFunctionInterface.