MultiAgentDecisionProcess
|
AgentBG represents an agent which uses a BG-based policy. More...
#include <AgentBG.h>
Public Member Functions | |
Index | Act (Index oI, Index prevJoI) |
AgentBG (const PlanningUnitDecPOMDPDiscrete *pu, Index id, QAV< PerseusBGPlanner > *QBG) | |
(default) Constructor More... | |
AgentBG (const PlanningUnitDecPOMDPDiscrete *pu, Index id, QAV< PerseusBGNSPlanner > *QBG) | |
AgentBG (const AgentBG &a) | |
Copy constructor. More... | |
void | ResetEpisode () |
Will be called before an episode, to reinitialize the agent. More... | |
~AgentBG () | |
Destructor. More... | |
Public Member Functions inherited from AgentDelayedSharedObservations | |
AgentDelayedSharedObservations (const PlanningUnitDecPOMDPDiscrete *pu, Index id) | |
(default) Constructor More... | |
AgentDelayedSharedObservations (const AgentDelayedSharedObservations &a) | |
Copy constructor. More... | |
~AgentDelayedSharedObservations () | |
Destructor. More... | |
Public Member Functions inherited from AgentDecPOMDPDiscrete | |
AgentDecPOMDPDiscrete (const PlanningUnitDecPOMDPDiscrete *pu, Index id) | |
(default) Constructor More... | |
AgentDecPOMDPDiscrete (const AgentDecPOMDPDiscrete &a) | |
Copy constructor. More... | |
const PlanningUnitDecPOMDPDiscrete * | GetPU () const |
Public Member Functions inherited from SimulationAgent | |
virtual Index | GetIndex () const |
Retrieves the index of this agent. More... | |
virtual bool | GetVerbose () const |
If true, the agent will report more. More... | |
void | Print () const |
Print out some information about this agent. More... | |
virtual void | SetIndex (Index id) |
Sets the index of this agent. More... | |
virtual void | SetVerbose (bool verbose) |
Set whether this agent should be verbose. More... | |
SimulationAgent (Index id, bool verbose=false) | |
(default) Constructor More... | |
virtual std::string | SoftPrint () const |
Return some information about this agent. More... | |
virtual | ~SimulationAgent () |
Destructor. More... | |
Private Member Functions | |
Index | GetMaximizingActionIndex (const JointBeliefInterface &jb) const |
AlphaVector::BGPolicyIndex | GetMaximizingBGIndex (const JointBeliefInterface &jb) const |
Private Attributes | |
std::vector< Index > | _m_aIs |
BayesianGameIdenticalPayoff * | _m_bgip |
Index | _m_jaIfirst |
JointPolicyPureVector * | _m_jpol |
std::vector< Index > | _m_oIs |
std::vector< Index > | _m_prevJaIs |
JointBeliefSparse | _m_prevJB |
std::vector< Index > | _m_prevJoIs |
QAV< PerseusBGNSPlanner > * | _m_QBGnonStationary |
QAV< PerseusBGPlanner > * | _m_QBGstationary |
size_t | _m_t |
AgentBG represents an agent which uses a BG-based policy.
AgentBG::AgentBG | ( | const PlanningUnitDecPOMDPDiscrete * | pu, |
Index | id, | ||
QAV< PerseusBGPlanner > * | QBG | ||
) |
AgentBG::AgentBG | ( | const PlanningUnitDecPOMDPDiscrete * | pu, |
Index | id, | ||
QAV< PerseusBGNSPlanner > * | QBG | ||
) |
Implements AgentDelayedSharedObservations.
References _m_aIs, _m_jaIfirst, _m_jpol, _m_oIs, _m_prevJB, _m_prevJoIs, _m_t, JointPolicyPureVector::GetActionIndex(), SimulationAgent::GetIndex(), JointPolicyPureVector::GetJointActionIndex(), GetMaximizingActionIndex(), GetMaximizingBGIndex(), PlanningUnitMADPDiscrete::GetNewJointBeliefFromISD(), AgentDecPOMDPDiscrete::GetPU(), PlanningUnitMADPDiscrete::JointToIndividualActionIndices(), JointPolicy::Print(), JointPolicyPureVector::SetIndex(), and JointBeliefSparse::Update().
|
private |
References _m_QBGnonStationary, _m_QBGstationary, _m_t, PlanningUnitMADPDiscrete::GetNrJointActions(), AgentDecPOMDPDiscrete::GetPU(), and QAV< P >::GetQ().
Referenced by Act().
|
private |
|
virtual |
Will be called before an episode, to reinitialize the agent.
Implements SimulationAgent.
References _m_aIs, _m_oIs, _m_prevJaIs, _m_prevJB, _m_prevJoIs, _m_t, BeliefInterface::Get(), PlanningUnitMADPDiscrete::GetNewJointBeliefFromISD(), AgentDecPOMDPDiscrete::GetPU(), and BeliefSparse::Set().
|
private |
Referenced by Act(), and ResetEpisode().
|
private |
Referenced by AgentBG(), and ~AgentBG().
|
private |
Referenced by Act(), AgentBG(), and ~AgentBG().
|
private |
Referenced by Act(), and ResetEpisode().
|
private |
Referenced by ResetEpisode().
|
private |
Referenced by Act(), and ResetEpisode().
|
private |
Referenced by Act(), and ResetEpisode().
|
private |
Referenced by GetMaximizingActionIndex(), and GetMaximizingBGIndex().
|
private |
Referenced by GetMaximizingActionIndex(), and GetMaximizingBGIndex().
|
private |
Referenced by Act(), GetMaximizingActionIndex(), GetMaximizingBGIndex(), and ResetEpisode().