MultiAgentDecisionProcess
Release 0.2.1
|
BGIP_SolverBruteForceSearch is a class that performs Brute force search for identical payoff Bayesian Games. More...
#include <BGIP_SolverBruteForceSearch.h>
Public Member Functions | |
BGIP_SolverBruteForceSearch (const BayesianGameIdenticalPayoffInterface &bg, size_t verbose=0, size_t nrSolutions=1) | |
Constructor. | |
double | Solve () |
The methods that performs the planning. | |
![]() | |
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 Attributes | |
size_t | _m_nrSolutions |
stores the (desired) number of solutions | |
size_t | _m_verbosity |
stores the MaxPlus parameter for the verbosity level |
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_SolverBruteForceSearch is a class that performs Brute force search for identical payoff Bayesian Games.
The template argument JP represents the joint policy class the solver should return.
Definition at line 52 of file BGIP_SolverBruteForceSearch.h.
|
inline |
Constructor.
Directly Associates a problem with the planner Information regarding the problem is used to construct a joint policy of the proper shape.
Definition at line 69 of file BGIP_SolverBruteForceSearch.h.
|
inlinevirtual |
The methods that performs the planning.
Returns the expected reward.
Implements BayesianGameIdenticalPayoffSolver< JP >.
Definition at line 76 of file BGIP_SolverBruteForceSearch.h.
References BGIP_SolverBruteForceSearch< JP >::_m_nrSolutions, DEBUG_BGIP_SOLVER_BFS, TimeTools::GetDeltaTimeDouble(), BayesianGameIdenticalPayoffSolver< JP >::GetNewJpol(), BayesianGameBase::GetNrJointPolicies(), BayesianGameBase::GetNrJointTypes(), BayesianGameBase::GetProbability(), Referrer< BayesianGameIdenticalPayoffInterface >::GetReferred(), and BayesianGameIdenticalPayoffInterface::GetUtility().
Referenced by QFunctionJAOHTree::ComputeQ(), QBG::ComputeRecursively(), and QBG::ComputeRecursivelyNoCache().
|
private |
stores the (desired) number of solutions
Definition at line 58 of file BGIP_SolverBruteForceSearch.h.
Referenced by BGIP_SolverBruteForceSearch< JP >::Solve().
|
private |
stores the MaxPlus parameter for the verbosity level
Definition at line 56 of file BGIP_SolverBruteForceSearch.h.