MultiAgentDecisionProcess
Release 0.2.1
|
BayesianGameIdenticalPayoffSolver is an interface for solvers for Bayesian games with identical payoff. More...
#include <BayesianGameIdenticalPayoffSolver.h>
Public Member Functions | |
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 double | Solve ()=0 |
The methods that performs the planning. | |
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. |
Protected Attributes | |
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). |
BayesianGameIdenticalPayoffSolver is an interface for solvers for Bayesian games with identical payoff.
The template argument JP represents the joint policy class the solver should return.
Definition at line 55 of file BayesianGameIdenticalPayoffSolver.h.
|
inline |
(default) Constructor
takes a reference to the BG to be solved. nrSolutions is the number of solutions that the solver should return. I.e., if set higher than 1, it returns the k best found joint policies.
Definition at line 81 of file BayesianGameIdenticalPayoffSolver.h.
|
inlinevirtual |
Destructor.
Definition at line 92 of file BayesianGameIdenticalPayoffSolver.h.
|
inline |
Definition at line 129 of file BayesianGameIdenticalPayoffSolver.h.
Referenced by BGIP_SolverAlternatingMaximization< JP >::ComputeBestResponse(), and BGIP_SolverAlternatingMaximization< JP >::Solve().
|
inline |
Definition at line 102 of file BayesianGameIdenticalPayoffSolver.h.
|
inline |
Definition at line 98 of file BayesianGameIdenticalPayoffSolver.h.
|
inline |
Definition at line 100 of file BayesianGameIdenticalPayoffSolver.h.
Referenced by AlphaVectorBG::BeliefBackupBGIP_Solver().
|
inline |
Definition at line 143 of file BayesianGameIdenticalPayoffSolver.h.
Referenced by BGIP_SolverBruteForceSearch< JP >::Solve(), and BGIP_SolverAlternatingMaximization< JP >::Solve().
|
inline |
Gets the desired number of solutions to be returned.
Definition at line 150 of file BayesianGameIdenticalPayoffSolver.h.
|
inline |
Gets the found number of solutions.
Definition at line 153 of file BayesianGameIdenticalPayoffSolver.h.
Referenced by BGIP_SolverAlternatingMaximization< JP >::Solve().
|
inline |
Definition at line 104 of file BayesianGameIdenticalPayoffSolver.h.
|
inline |
Definition at line 106 of file BayesianGameIdenticalPayoffSolver.h.
|
inline |
Turns Anytime results on and of.
When turning on, valid ofstream pointers must be provided for the results and timings file.
Definition at line 113 of file BayesianGameIdenticalPayoffSolver.h.
|
pure virtual |
The methods that performs the planning.
Returns the expected reward.
Implemented in BGIP_SolverAlternatingMaximization< JP >, BGIP_SolverBruteForceSearch< JP >, and BGIP_SolverRandom.
Referenced by AlphaVectorBG::BeliefBackupBGIP_Solver(), and GMAA_kGMAA::ConstructAndValuateNextPolicies().
|
protected |
the file to which writes the results are written
Definition at line 69 of file BayesianGameIdenticalPayoffSolver.h.
Referenced by BayesianGameIdenticalPayoffSolver< JointPolicyPureVector >::SetAnyTimeResults().
|
protected |
Stores the solution found by the solver.
Definition at line 62 of file BayesianGameIdenticalPayoffSolver.h.
Referenced by BayesianGameIdenticalPayoffSolver< JointPolicyPureVector >::GetExpectedReward(), BayesianGameIdenticalPayoffSolver< JointPolicyPureVector >::GetJointPolicy(), BayesianGameIdenticalPayoffSolver< JointPolicyPureVector >::GetJointPolicyPureVector(), BayesianGameIdenticalPayoffSolver< JointPolicyPureVector >::GetNrDesiredSolutions(), BayesianGameIdenticalPayoffSolver< JointPolicyPureVector >::GetNrFoundSolutions(), BayesianGameIdenticalPayoffSolver< JointPolicyPureVector >::GetSolution(), and BGIP_SolverAlternatingMaximization< JP >::Solve().
|
protected |
the file to which writes the timings of the results are written
Definition at line 71 of file BayesianGameIdenticalPayoffSolver.h.
Referenced by BayesianGameIdenticalPayoffSolver< JointPolicyPureVector >::SetAnyTimeResults().
|
protected |
This variable gives the number of solutions to return (k).
boolean that indicates whether anytime results should be written
Definition at line 66 of file BayesianGameIdenticalPayoffSolver.h.
Referenced by BayesianGameIdenticalPayoffSolver< JointPolicyPureVector >::SetAnyTimeResults().