|
MultiAgentDecisionProcess
|
SimulationFactoredDecPOMDPDiscrete simulates policies in FactoredDecPOMDPDiscrete's. More...
#include <SimulationFactoredDecPOMDPDiscrete.h>
Public Member Functions | |
| SimulationResult | RunSimulationsRandomActions () const |
| SimulationFactoredDecPOMDPDiscrete (const PlanningUnitFactoredDecPOMDPDiscrete &pu, int nrRuns, int seed=illegalRandomSeed) | |
| Constructor specifying the number of runs and the random seed. More... | |
| SimulationFactoredDecPOMDPDiscrete (const PlanningUnitFactoredDecPOMDPDiscrete &pu, const ArgumentHandlers::Arguments &args) | |
| Constructor which parses the command-line arguments. More... | |
| ~SimulationFactoredDecPOMDPDiscrete () | |
| Destructor. More... | |
Public Member Functions inherited from SimulationDecPOMDPDiscrete | |
| SimulationResult | RunSimulations (const JointPolicyDiscrete *jp) const |
| Run simulations using a particular discrete joint policy. More... | |
| SimulationResult | RunSimulations (const boost::shared_ptr< JointPolicyDiscrete > &jp) const |
| Run simulations using a particular discrete joint policy. More... | |
| template<class A > | |
| SimulationResult | RunSimulations (const std::vector< A * > &agents) const |
| Run simulations using a vector of SimulationAgent. More... | |
| void | SaveIntermediateResults (std::string filename) |
| Indicate that intermediate should be stored to file named filename. More... | |
| SimulationDecPOMDPDiscrete (const PlanningUnitDecPOMDPDiscrete &pu, int nrRuns, int seed=illegalRandomSeed, bool verbose=false) | |
| Constructor specifying the number of runs and the random seed. More... | |
| SimulationDecPOMDPDiscrete (const PlanningUnitDecPOMDPDiscrete &pu, const ArgumentHandlers::Arguments &args) | |
| Constructor which parses the command-line arguments. More... | |
| ~SimulationDecPOMDPDiscrete () | |
| Destructor. More... | |
Public Member Functions inherited from Simulation | |
| int | GetNrRuns () const |
| int | GetRandomSeed () const |
| bool | GetVerbose () const |
| void | SetRandomSeed (int s) |
| void | SetVerbose (bool verbose) |
| Simulation (int nrRuns, int seed=illegalRandomSeed) | |
| Constructor that specifies the number of runs and the random seed. More... | |
| virtual | ~Simulation () |
| Destructor. More... | |
Private Member Functions | |
| double | RunSimulation (const JointPolicyDiscrete *jp) const |
| Simulate a run of a discrete joint policy. More... | |
| void | Step (const std::vector< Index > &aIs, unsigned int t, std::vector< Index > &sIs, std::vector< Index > &oIs, double &r, double &sumR, double specialR) const |
| Perform one step of the simulation. More... | |
Private Attributes | |
| const PlanningUnitFactoredDecPOMDPDiscrete * | _m_puFactored |
| Pointer to the planning unit that generated the policy. More... | |
Additional Inherited Members | |
Protected Attributes inherited from SimulationDecPOMDPDiscrete | |
| size_t | _m_horizon |
| std::string | _m_intermediateResultsFilename |
| bool | _m_saveIntermediateResults |
Static Protected Attributes inherited from Simulation | |
| static const int | illegalRandomSeed =INT_MAX |
SimulationFactoredDecPOMDPDiscrete simulates policies in FactoredDecPOMDPDiscrete's.
| SimulationFactoredDecPOMDPDiscrete::SimulationFactoredDecPOMDPDiscrete | ( | const PlanningUnitFactoredDecPOMDPDiscrete & | pu, |
| int | nrRuns, | ||
| int | seed = illegalRandomSeed |
||
| ) |
Constructor specifying the number of runs and the random seed.
| SimulationFactoredDecPOMDPDiscrete::SimulationFactoredDecPOMDPDiscrete | ( | const PlanningUnitFactoredDecPOMDPDiscrete & | pu, |
| const ArgumentHandlers::Arguments & | args | ||
| ) |
Constructor which parses the command-line arguments.
| SimulationFactoredDecPOMDPDiscrete::~SimulationFactoredDecPOMDPDiscrete | ( | ) |
Destructor.
|
privatevirtual |
Simulate a run of a discrete joint policy.
Reimplemented from SimulationDecPOMDPDiscrete.
References SimulationDecPOMDPDiscrete::_m_horizon, _m_puFactored, PlanningUnitFactoredDecPOMDPDiscrete::GetFDPOMDPD(), PlanningUnitMADPDiscrete::GetNrAgents(), PlanningUnitMADPDiscrete::GetSuccessorOHI(), Simulation::GetVerbose(), MultiAgentDecisionProcessDiscreteFactoredStatesInterface::SampleInitialState(), JointPolicyDiscrete::SampleJointActionVector(), PrintTools::SoftPrintVector(), and Step().
| SimulationResult SimulationFactoredDecPOMDPDiscrete::RunSimulationsRandomActions | ( | ) | const |
References SimulationDecPOMDPDiscrete::_m_horizon, _m_puFactored, SimulationResult::AddReward(), PlanningUnitFactoredDecPOMDPDiscrete::GetFDPOMDPD(), PlanningUnitMADPDiscrete::GetNrActions(), PlanningUnitMADPDiscrete::GetNrAgents(), Simulation::GetNrRuns(), Simulation::GetRandomSeed(), MultiAgentDecisionProcessDiscreteFactoredStatesInterface::SampleInitialState(), and Step().
|
private |
Perform one step of the simulation.
References _m_puFactored, PlanningUnitDecPOMDPDiscrete::GetDiscount(), PlanningUnitFactoredDecPOMDPDiscrete::GetFDPOMDPD(), PlanningUnitMADPDiscrete::GetJointAction(), PlanningUnitMADPDiscrete::GetJointObservation(), FactoredDecPOMDPDiscreteInterface::GetReward(), MultiAgentDecisionProcessDiscreteInterface::GetState(), Simulation::GetVerbose(), PlanningUnitMADPDiscrete::IndividualToJointActionIndices(), PlanningUnitMADPDiscrete::IndividualToJointObservationIndices(), MultiAgentDecisionProcessDiscreteFactoredStatesInterface::SampleJointObservation(), MultiAgentDecisionProcessDiscreteFactoredStatesInterface::SampleSuccessorState(), NamedDescribedEntity::SoftPrintBrief(), and PrintTools::SoftPrintVector().
Referenced by RunSimulation(), and RunSimulationsRandomActions().
|
private |
Pointer to the planning unit that generated the policy.
Referenced by RunSimulation(), RunSimulationsRandomActions(), and Step().