MultiAgentDecisionProcess
|
AgentOnlinePlanningMDP represents an agent with an online MDP policy. More...
#include <AgentOnlinePlanningMDP.h>
Public Member Functions | |
virtual Index | Act (Index sI, Index joI, double reward) |
Return an individual action based on state, last joint observation and reward. More... | |
AgentOnlinePlanningMDP (const PlanningUnitDecPOMDPDiscrete *pu, Index id, OnlineMDPPlanner *planner) | |
(default) Constructor More... | |
AgentOnlinePlanningMDP (const AgentOnlinePlanningMDP &a) | |
Copy constructor. More... | |
virtual void | ResetEpisode () |
Will be called before an episode, to reinitialize the agent. More... | |
virtual | ~AgentOnlinePlanningMDP () |
Destructor. More... | |
Public Member Functions inherited from AgentFullyObservable | |
AgentFullyObservable (const PlanningUnitDecPOMDPDiscrete *pu, Index id) | |
(default) Constructor More... | |
AgentFullyObservable (const AgentFullyObservable &a) | |
Copy constructor. More... | |
~AgentFullyObservable () | |
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... | |
Protected Attributes | |
size_t | _m_t |
The episode count. More... | |
Private Attributes | |
OnlineMDPPlanner * | _m_planner |
The planning module. Pure learners will have this set to NULL. More... | |
AgentOnlinePlanningMDP represents an agent with an online MDP policy.
This class implements a basic online MDP planner given an online planning module.
AgentOnlinePlanningMDP::AgentOnlinePlanningMDP | ( | const PlanningUnitDecPOMDPDiscrete * | pu, |
Index | id, | ||
OnlineMDPPlanner * | planner | ||
) |
(default) Constructor
AgentOnlinePlanningMDP::AgentOnlinePlanningMDP | ( | const AgentOnlinePlanningMDP & | a | ) |
Copy constructor.
|
virtual |
Destructor.
Return an individual action based on state, last joint observation and reward.
Implements AgentFullyObservable.
References _m_planner, _m_t, SimulationAgent::GetIndex(), OnlineMDPPlanner::GetLastActionChosen(), AgentDecPOMDPDiscrete::GetPU(), PlanningUnitMADPDiscrete::JointToIndividualActionIndices(), and OnlineMDPPlanner::SearchForAction().
|
virtual |
Will be called before an episode, to reinitialize the agent.
Implements SimulationAgent.
References _m_planner, _m_t, and OnlineMDPPlanner::Reset().
|
private |
The planning module. Pure learners will have this set to NULL.
Referenced by Act(), and ResetEpisode().
|
protected |
The episode count.
Referenced by Act(), and ResetEpisode().