MultiAgentDecisionProcess
Release 0.2.1
|
BGIP_SolverAlternatingMaximization implements an approximate solver for identical payoff Bayesian games, based on alternating maximization. More...
#include <BGIP_SolverAlternatingMaximization.h>
Public Member Functions | |
BGIP_SolverAlternatingMaximization (const BayesianGameIdenticalPayoffInterface &bg, unsigned int nrRestarts=10, int verbose=0, size_t nrSolutions=1) | |
(default) Constructor | |
double | Solve () |
The methods that performs the planning. | |
~BGIP_SolverAlternatingMaximization () | |
Destructor. | |
![]() | |
BayesianGameIdenticalPayoffSolver (const BayesianGameIdenticalPayoffInterface &bg, size_t nrSolutions=1) | |
(default) Constructor | |
double | Evaluate (const JP &jpolBG) const |
double | GetExpectedReward () const |
const JointPolicy * | GetJointPolicy () const |
const JointPolicyPureVector & | GetJointPolicyPureVector () const |
JP * | GetNewJpol () const |
size_t | GetNrDesiredSolutions () const |
Gets the desired number of solutions to be returned. | |
size_t | GetNrFoundSolutions () const |
Gets the found number of solutions. | |
const BGIPSolution & | GetSolution () const |
BGIPSolution & | GetSolution () |
void | SetAnyTimeResults (bool turn_on, std::ofstream *results, std::ofstream *timings) |
Turns Anytime results on and of. | |
virtual | ~BayesianGameIdenticalPayoffSolver () |
Destructor. | |
![]() | |
BayesianGameIdenticalPayoffInterface * | GetReferred () const |
Return the referred thing... | |
Referrer (BayesianGameIdenticalPayoffInterface *t_p=0) | |
(default) Constructor | |
Referrer (BayesianGameIdenticalPayoffInterface &t) | |
Alternative constructor. | |
Referrer (const Referrer &a) | |
Copy constructor. | |
void | SetReferred (BayesianGameIdenticalPayoffInterface *t_p) |
Change the referred thing... | |
virtual | ~Referrer () |
Destructor. |
Private Member Functions | |
double | ComputeBestResponse (JP &jpolBG, Index optimizingAgentI) |
Private Attributes | |
unsigned int | _m_nrRestarts |
int | _m_verbose |
Additional Inherited Members | |
![]() | |
std::ofstream * | _m_results_f |
the file to which writes the results are written | |
BGIPSolution | _m_solution |
Stores the solution found by the solver. | |
std::ofstream * | _m_timings_f |
the file to which writes the timings of the results are written | |
bool | _m_writeAnyTimeResults |
This variable gives the number of solutions to return (k). |
BGIP_SolverAlternatingMaximization implements an approximate solver for identical payoff Bayesian games, based on alternating maximization.
The template argument JP represents the joint policy class the solver should return.
Definition at line 55 of file BGIP_SolverAlternatingMaximization.h.
|
inline |
(default) Constructor
Definition at line 118 of file BGIP_SolverAlternatingMaximization.h.
|
inline |
Destructor.
Definition at line 130 of file BGIP_SolverAlternatingMaximization.h.
|
inlineprivate |
Definition at line 63 of file BGIP_SolverAlternatingMaximization.h.
References DEBUG_CBR, BayesianGameIdenticalPayoffSolver< JP >::Evaluate(), BayesianGameBase::GetNrActions(), BayesianGameBase::GetNrJointTypes(), BayesianGameBase::GetNrTypes(), BayesianGameBase::GetProbability(), Referrer< BayesianGameIdenticalPayoffInterface >::GetReferred(), BayesianGameIdenticalPayoffInterface::GetUtility(), BayesianGameBase::IndividualToJointActionIndices(), BayesianGameBase::JointToIndividualActionIndices(), and BayesianGameBase::JointToIndividualTypeIndices().
Referenced by BGIP_SolverAlternatingMaximization< JP >::Solve().
|
inlinevirtual |
The methods that performs the planning.
Returns the expected reward.
Implements BayesianGameIdenticalPayoffSolver< JP >.
Definition at line 131 of file BGIP_SolverAlternatingMaximization.h.
References BGIP_SolverAlternatingMaximization< JP >::_m_nrRestarts, BayesianGameIdenticalPayoffSolver< JP >::_m_solution, BGIP_SolverAlternatingMaximization< JP >::_m_verbose, BGIP_SolverAlternatingMaximization< JP >::ComputeBestResponse(), DEBUG_BGIP_SOLVER_AM_SOLVE, BayesianGameIdenticalPayoffSolver< JP >::Evaluate(), TimeTools::GetDeltaTimeDouble(), BayesianGameIdenticalPayoffSolver< JP >::GetNewJpol(), BayesianGameBase::GetNrAgents(), BayesianGameIdenticalPayoffSolver< JP >::GetNrFoundSolutions(), Referrer< BayesianGameIdenticalPayoffInterface >::GetReferred(), and BGIPSolution::SoftPrint().
|
private |
Definition at line 60 of file BGIP_SolverAlternatingMaximization.h.
Referenced by BGIP_SolverAlternatingMaximization< JP >::Solve().
|
private |
Definition at line 61 of file BGIP_SolverAlternatingMaximization.h.
Referenced by BGIP_SolverAlternatingMaximization< JP >::Solve().