MultiAgentDecisionProcess
|
LocalBGValueFunctionBGCGWrapper is a class that represents a wrapper for a BayesianGameCollaborativeGraphical such that it implements the LocalBGValueFunctionInterface. More...
#include <LocalBGValueFunctionBGCGWrapper.h>
Public Member Functions | |
Scope | GetAgentScope () const |
double | GetValue (Index jpolI) const |
double | GetValue (std::vector< Index > indPols) const |
LocalBGValueFunctionBGCGWrapper (const boost::shared_ptr< const BayesianGameCollaborativeGraphical > &bgcg, Index LRF) | |
(default) Constructor More... | |
void | Print () const |
void | SetValue (Index jpolI, double value) |
Copy constructor. More... | |
void | SetValue (std::vector< Index > indPol, double value) |
std::string | SoftPrint () const |
Public Member Functions inherited from LocalBGValueFunctionInterface | |
virtual | ~LocalBGValueFunctionInterface () |
(default) Constructor More... | |
Private Attributes | |
boost::shared_ptr< const BayesianGameCollaborativeGraphical > | _m_bgcg |
Index | _m_LRF |
LocalBGValueFunctionBGCGWrapper is a class that represents a wrapper for a BayesianGameCollaborativeGraphical such that it implements the LocalBGValueFunctionInterface.
When solving a BayesianGameCollaborativeGraphical using nonserial dynamic programming (NDP), each LRF (i.e., each local payoff function of the BGCG) is treated as a local value function (i.e. a LocalBGValueFunctionInterface).
Note that not every local value function (LVF) is necessaririly a LRF: NDP creates new LVFs (that do not correspond to any LRF) when eliminating agents.
This class creates a wrapper object, that can be queried like an LocalBGValueFunctionInterface, but uses BayesianGameCollaborativeGraphical as its back end.
LocalBGValueFunctionBGCGWrapper::LocalBGValueFunctionBGCGWrapper | ( | const boost::shared_ptr< const BayesianGameCollaborativeGraphical > & | bgcg, |
Index | LRF | ||
) |
(default) Constructor
|
virtual |
Implements LocalBGValueFunctionInterface.
|
virtual |
Implements LocalBGValueFunctionInterface.
|
virtual |
Implements LocalBGValueFunctionInterface.
References BayesianGameBase::GetNrAgents(), BayesianGameBase::GetNrJointTypes(), BayesianGameBase::GetProbability(), BayesianGameIdenticalPayoff::GetUtility(), BayesianGameBase::JointToIndividualTypeIndices(), PolicyPureVector::SetIndex(), and PolicyGlobals::TYPE_INDEX.
|
inlinevirtual |
Implements LocalBGValueFunctionInterface.
References SoftPrint().
|
inlinevirtual |
Copy constructor.
Implements LocalBGValueFunctionInterface.
|
inlinevirtual |
Implements LocalBGValueFunctionInterface.
|
virtual |
Implements LocalBGValueFunctionInterface.
References PrintTools::SoftPrintVector().
Referenced by Print().
|
private |
|
private |