MultiAgentDecisionProcess
Release 0.2.1
|
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. | |
virtual Index | GetActionIndex (Index i) const =0 |
Returns the jaI taken by this policy for domain index i. | |
double | GetActionProb (Index i, Index aI) const |
Returns the probability that the policy specifies action aI for domain index i. | |
const Interface_ProblemToPolicyDiscretePure * | GetInterfacePTPDiscretePure () const |
Return pointer to the Interface_ProblemToPolicyDiscretePure. | |
PolicyDiscretePure (const Interface_ProblemToPolicyDiscretePure &pu, PolicyGlobals::IndexDomainCategory idc, Index agentI) | |
(default) Constructor | |
PolicyDiscretePure (const PolicyDiscretePure &a) | |
Copy constructor. | |
virtual void | RandomInitialization (Index agentI)=0 |
Randomly initialize the policy. | |
virtual | ~PolicyDiscretePure () |
Destructor. | |
![]() | |
IndexDomainCategory | GetIndexDomainCategory () const |
Returns the Category of the domain over which the indices of this policy are specified. | |
const Interface_ProblemToPolicyDiscrete * | GetInterfacePTPDiscrete () const |
return a pointer to the referred Interface_ProblemToPolicyDiscrete. | |
PolicyDiscrete (const Interface_ProblemToPolicyDiscrete &iptpd, PolicyGlobals::IndexDomainCategory idc, Index agentI) | |
(default) Constructor | |
PolicyDiscrete (const PolicyDiscrete &a) | |
Copy constructor. | |
Index | SampleAction (Index i) const |
samples an action for domain index i. | |
void | SetIndexDomainCategory (IndexDomainCategory idc) |
Sets the category of the domain over which the indices of this policy are specified. | |
virtual | ~PolicyDiscrete () |
Destructor. | |
![]() | |
size_t | GetDepth () const |
Returns the depth of the policy. | |
Policy (Index agentI) | |
Constructor, initializes the depth to the maximum horizon. | |
virtual void | Print () const |
Prints a description of a policy to cout. | |
virtual void | SetDepth (size_t d) |
Sets the depth of the policy. | |
virtual std::string | SoftPrint () const =0 |
Prints a description of a policy to a string. | |
virtual | ~Policy () |
Destructor. |
Additional Inherited Members | |
![]() | |
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
Definition at line 44 of file PolicyDiscretePure.h.
PolicyDiscretePure::PolicyDiscretePure | ( | const Interface_ProblemToPolicyDiscretePure & | pu, |
PolicyGlobals::IndexDomainCategory | idc, | ||
Index | agentI | ||
) |
(default) Constructor
Definition at line 31 of file PolicyDiscretePure.cpp.
PolicyDiscretePure::PolicyDiscretePure | ( | const PolicyDiscretePure & | a | ) |
Copy constructor.
Definition at line 40 of file PolicyDiscretePure.cpp.
|
inlinevirtual |
Destructor.
Definition at line 61 of file PolicyDiscretePure.h.
|
pure virtual |
Returns a pointer to a copy of this class.
Implements PolicyDiscrete.
Implemented in PolicyPureVector.
|
pure virtual |
Returns the jaI taken by this policy for domain index i.
Implemented in PolicyPureVector.
Referenced by GetActionProb().
|
virtual |
Returns the probability that the policy specifies action aI for domain index i.
Required by PolicyDiscrete.
Implements PolicyDiscrete.
Definition at line 47 of file PolicyDiscretePure.cpp.
References GetActionIndex().
|
inline |
Return pointer to the Interface_ProblemToPolicyDiscretePure.
Definition at line 77 of file PolicyDiscretePure.h.
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.