|
MultiAgentDecisionProcess
|
PolicyDiscretePure is an abstract class that represents a pure policy for a discrete MADP. More...
#include <PolicyDiscretePure.h>
Public Member Functions | |
| virtual PolicyDiscretePure * | Clone () const =0 |
| Returns a pointer to a copy of this class. More... | |
| virtual Index | GetActionIndex (Index i) const =0 |
| Returns the jaI taken by this policy for domain index i. More... | |
| double | GetActionProb (Index i, Index aI) const |
| Returns the probability that the policy specifies action aI for domain index i. More... | |
| const Interface_ProblemToPolicyDiscretePure * | GetInterfacePTPDiscretePure () const |
| Return pointer to the Interface_ProblemToPolicyDiscretePure. More... | |
| PolicyDiscretePure (const Interface_ProblemToPolicyDiscretePure *pu, PolicyGlobals::PolicyDomainCategory idc, Index agentI) | |
| (default) Constructor More... | |
| PolicyDiscretePure (const I_PtPD_constPtr &pu, PolicyGlobals::PolicyDomainCategory idc, Index agentI) | |
| PolicyDiscretePure (const PolicyDiscretePure &a) | |
| Copy constructor. More... | |
| virtual void | RandomInitialization (Index agentI)=0 |
| Randomly initialize the policy. More... | |
| virtual | ~PolicyDiscretePure () |
| Destructor. More... | |
Public Member Functions inherited from PolicyDiscrete | |
| const Interface_ProblemToPolicyDiscrete * | GetInterfacePTPDiscrete () const |
| return a pointer to the referred Interface_ProblemToPolicyDiscrete. More... | |
| PolicyDomainCategory | GetPolicyDomainCategory () const |
| Returns the Category of the domain over which the indices of this policy are specified. More... | |
| PolicyDiscrete (const Interface_ProblemToPolicyDiscrete *iptpd, PolicyGlobals::PolicyDomainCategory idc, Index agentI) | |
| (default) Constructor More... | |
| PolicyDiscrete (const I_PtPD_constPtr &iptpd, PolicyGlobals::PolicyDomainCategory idc, Index agentI) | |
| PolicyDiscrete (const PolicyDiscrete &a) | |
| Copy constructor. More... | |
| Index | SampleAction (Index i) const |
| samples an action for domain index i. More... | |
| void | SetPolicyDomainCategory (PolicyDomainCategory idc) |
| Sets the category of the domain over which the indices of this policy are specified. More... | |
| virtual | ~PolicyDiscrete () |
| Destructor. More... | |
Public Member Functions inherited from Policy | |
| size_t | GetDepth () const |
| Returns the depth of the policy. More... | |
| Policy (Index agentI) | |
| Constructor, initializes the depth to the maximum horizon. More... | |
| virtual void | Print () const |
| Prints a description of a policy to cout. More... | |
| virtual void | SetDepth (size_t d) |
| Sets the depth of the policy. More... | |
| virtual std::string | SoftPrint () const =0 |
| Prints a description of a policy to a string. More... | |
| virtual | ~Policy () |
| Destructor. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Policy | |
| Index | _m_agentI |
PolicyDiscretePure is an abstract class that represents a pure policy for a discrete MADP.
The number of pure policies as represented by this class is finite. Therefore it is possible
| PolicyDiscretePure::PolicyDiscretePure | ( | const Interface_ProblemToPolicyDiscretePure * | pu, |
| PolicyGlobals::PolicyDomainCategory | idc, | ||
| Index | agentI | ||
| ) |
(default) Constructor
| PolicyDiscretePure::PolicyDiscretePure | ( | const I_PtPD_constPtr & | pu, |
| PolicyGlobals::PolicyDomainCategory | idc, | ||
| Index | agentI | ||
| ) |
| PolicyDiscretePure::PolicyDiscretePure | ( | const PolicyDiscretePure & | a | ) |
Copy constructor.
|
inlinevirtual |
Destructor.
|
pure virtual |
Returns a pointer to a copy of this class.
Implements PolicyDiscrete.
Implemented in PolicyPureVector.
Returns the jaI taken by this policy for domain index i.
Implemented in PolicyPureVector.
Referenced by GetActionProb(), and PlanningUnitMADPDiscrete::PolicyToDotGraph().
Returns the probability that the policy specifies action aI for domain index i.
Required by PolicyDiscrete.
Implements PolicyDiscrete.
References GetActionIndex().
|
inline |
Return pointer to the Interface_ProblemToPolicyDiscretePure.
References PolicyDiscrete::GetInterfacePTPDiscrete().
Referenced by PolicyPureVector::GetIndex(), PolicyPureVector::Increment(), PolicyPureVector::PolicyPureVector(), PolicyPureVector::RandomInitialization(), PolicyPureVector::SetDepth(), PolicyPureVector::SetIndex(), and PolicyPureVector::SoftPrint().
|
pure virtual |
Randomly initialize the policy.
Randomly initialize the policy for agentI.
Implemented in PolicyPureVector.