MultiAgentDecisionProcess
Release 0.2.1
|
AgentQMDP represents an agent which uses a QMDP-based policy. More...
#include <AgentQMDP.h>
Public Member Functions | |
Index | Act (Index joI) |
Return an individual action index based on a joint observation index. | |
AgentQMDP (const PlanningUnitDecPOMDPDiscrete &pu, Index id, const QTable &Q) | |
(default) Constructor | |
AgentQMDP (const AgentQMDP &a) | |
Copy constructor. | |
void | ResetEpisode () |
Will be called before an episode, to reinitialize the agent. | |
~AgentQMDP () | |
Destructor. | |
![]() | |
AgentSharedObservations (const PlanningUnitDecPOMDPDiscrete &pu, Index id) | |
(default) Constructor | |
AgentSharedObservations (const AgentSharedObservations &a) | |
Copy constructor. | |
~AgentSharedObservations () | |
Destructor. | |
![]() | |
AgentDecPOMDPDiscrete () | |
(default) Constructor | |
AgentDecPOMDPDiscrete (const PlanningUnitDecPOMDPDiscrete &pu, Index id) | |
AgentDecPOMDPDiscrete (const AgentDecPOMDPDiscrete &a) | |
Copy constructor. | |
const PlanningUnitDecPOMDPDiscrete * | GetPU () const |
![]() | |
virtual Index | GetIndex () const |
Retrieves the index of this agent. | |
virtual bool | GetVerbose () const |
If true, the agent will report more. | |
void | Print () const |
Print out some information about this agent. | |
virtual void | SetIndex (Index id) |
Sets the index of this agent. | |
virtual void | SetVerbose (bool verbose) |
Set whether this agent should be verbose. | |
SimulationAgent (Index id, bool verbose=false) | |
(default) Constructor | |
virtual std::string | SoftPrint () const |
Return some information about this agent. | |
virtual | ~SimulationAgent () |
Destructor. |
Private Attributes | |
JointBeliefSparse | _m_jb |
Index | _m_prevJaI |
QTable | _m_Q |
size_t | _m_t |
AgentQMDP represents an agent which uses a QMDP-based policy.
Definition at line 44 of file AgentQMDP.h.
AgentQMDP::AgentQMDP | ( | const PlanningUnitDecPOMDPDiscrete & | pu, |
Index | id, | ||
const QTable & | Q | ||
) |
(default) Constructor
Definition at line 37 of file AgentQMDP.cpp.
AgentQMDP::AgentQMDP | ( | const AgentQMDP & | a | ) |
Copy constructor.
Definition at line 45 of file AgentQMDP.cpp.
AgentQMDP::~AgentQMDP | ( | ) |
Destructor.
Definition at line 55 of file AgentQMDP.cpp.
|
virtual |
Return an individual action index based on a joint observation index.
Implements AgentSharedObservations.
Definition at line 59 of file AgentQMDP.cpp.
References _m_jb, _m_prevJaI, _m_Q, _m_t, BeliefSparse::Get(), SimulationAgent::GetIndex(), PlanningUnitMADPDiscrete::GetNrJointActions(), PlanningUnitMADPDiscrete::GetNrStates(), AgentDecPOMDPDiscrete::GetPU(), PlanningUnitMADPDiscrete::JointToIndividualActionIndices(), BeliefSparse::Print(), and JointBeliefSparse::Update().
|
virtual |
Will be called before an episode, to reinitialize the agent.
Implements SimulationAgent.
Definition at line 95 of file AgentQMDP.cpp.
References _m_jb, _m_prevJaI, _m_t, BeliefInterface::Get(), PlanningUnitMADPDiscrete::GetNewJointBeliefFromISD(), AgentDecPOMDPDiscrete::GetPU(), and BeliefSparse::Set().
|
private |
Definition at line 52 of file AgentQMDP.h.
Referenced by Act(), and ResetEpisode().
|
private |
Definition at line 54 of file AgentQMDP.h.
Referenced by Act(), and ResetEpisode().
|
private |
Definition at line 48 of file AgentQMDP.h.
Referenced by Act().
|
private |
Definition at line 50 of file AgentQMDP.h.
Referenced by Act(), and ResetEpisode().