MultiAgentDecisionProcess
|
QFunctionForFactoredDecPOMDP is a base class for the implementation of a QFunction for a Factored DecPOMDP. More...
#include <QFunctionForFactoredDecPOMDP.h>
Public Member Functions | |
virtual void | ComputeWithCachedQValues (bool computeIfNotCached) |
Compute Qvalue function, while caching the Qvalues to disk. More... | |
virtual std::string | GetCacheFilename () const |
Gets the filename where the Qvalues should be stored. More... | |
const PlanningUnitFactoredDecPOMDPDiscrete * | GetPU () const |
const PlanningUnitFactoredDecPOMDPDiscrete * | GetPUF () const |
virtual void | Load (const std::string &filename) |
Load the Qvalues from disk from a file named filename. More... | |
QFunctionForFactoredDecPOMDP (const PlanningUnitFactoredDecPOMDPDiscrete *puf) | |
(default) Constructor More... | |
QFunctionForFactoredDecPOMDP (const boost::shared_ptr< const PlanningUnitFactoredDecPOMDPDiscrete > &puf) | |
virtual 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) |
void | SetPUF (const PlanningUnitFactoredDecPOMDPDiscrete *pu) |
Changes the Planning unit pointed to. More... | |
void | SetPUF (const boost::shared_ptr< const PlanningUnitFactoredDecPOMDPDiscrete > &pu) |
Public Member Functions inherited from QFunctionForFactoredDecPOMDPInterface | |
virtual | ~QFunctionForFactoredDecPOMDPInterface () |
(default) Constructor More... | |
Public Member Functions inherited from QFunctionForDecPOMDPInterface | |
QFunctionForDecPOMDPInterface () | |
(default) Constructor More... | |
virtual | ~QFunctionForDecPOMDPInterface () |
Destructor. More... | |
Public Member Functions inherited from QFunctionInterface | |
virtual void | Compute ()=0 |
Compute the heuristic. More... | |
virtual void | Load () |
Load the Qvalues from disk. More... | |
virtual void | Save () const |
Stores the Qvalues to disk. More... | |
virtual std::string | SoftPrintBrief () const =0 |
Returns a short description of the heuristic, can be used for constructing filenames. More... | |
virtual | ~QFunctionInterface () |
Private Attributes | |
const PlanningUnitFactoredDecPOMDPDiscrete * | _m_puf |
boost::shared_ptr< const PlanningUnitFactoredDecPOMDPDiscrete > | _m_pufShared |
QFunctionForFactoredDecPOMDP is a base class for the implementation of a QFunction for a Factored DecPOMDP.
In particular this function implements the QFunctionForFactoredDecPOMDPInterface i.e., the functions: SetPUF and GetPUF()
|
inline |
(default) Constructor
|
inline |
|
inlinevirtual |
Compute Qvalue function, while caching the Qvalues to disk.
Before computing them, the function checks whether the Qvalues have been computed before, and if so, loads them from disk. If not, it computes them, and afterwards saves them for re-use. This behavior can be changed by settings computeIfNotCached to false, in which case an Exception will be thrown if the Q function has not been previously stored on disk.
Implements QFunctionInterface.
|
virtual |
Gets the filename where the Qvalues should be stored.
Implements QFunctionInterface.
References directories::MADPGetResultsDir().
|
inlinevirtual |
|
inlinevirtual |
Implements QFunctionForFactoredDecPOMDPInterface.
References GetPU().
Referenced by FactoredQLastTimeStepOrElse::GetAgentScopeForLQF(), FactoredQLastTimeStepOrElse::GetLocalQValue(), FactoredQLastTimeStepOrElse::GetNrLQFs(), FactoredQLastTimeStepOrElse::GetStateFactorScopeForLQF(), and FactoredQLastTimeStepOrElse::Initialize().
|
inlinevirtual |
Load the Qvalues from disk from a file named filename.
Implements QFunctionInterface.
|
inlinevirtual |
Stores the Qvalues to disk in file named filename.
Implements QFunctionInterface.
|
inlinevirtual |
Implements QFunctionForDecPOMDPInterface.
|
inlinevirtual |
Implements QFunctionForDecPOMDPInterface.
|
inlinevirtual |
Changes the Planning unit pointed to.
Implements QFunctionForFactoredDecPOMDPInterface.
|
inlinevirtual |
Implements QFunctionForFactoredDecPOMDPInterface.
|
private |
Referenced by GetPU().
|
private |