MultiAgentDecisionProcess
Release 0.2.1
|
BGIP_SolverRandom creates random solutions to Bayesian games for testing purposes. More...
#include <BGIP_SolverRandom.h>
Public Member Functions | |
BGIP_SolverRandom (const BayesianGameIdenticalPayoff &bg) | |
Constructor. | |
double | Solve () |
The methods that performs the planning. | |
![]() | |
BayesianGameIdenticalPayoffSolver (const BayesianGameIdenticalPayoffInterface &bg, size_t nrSolutions=1) | |
(default) Constructor | |
double | Evaluate (const JointPolicyPureVector &jpolBG) const |
double | GetExpectedReward () const |
const JointPolicy * | GetJointPolicy () const |
const JointPolicyPureVector & | GetJointPolicyPureVector () const |
JointPolicyPureVector * | 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. |
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_SolverRandom creates random solutions to Bayesian games for testing purposes.
Definition at line 43 of file BGIP_SolverRandom.h.
BGIP_SolverRandom::BGIP_SolverRandom | ( | const BayesianGameIdenticalPayoff & | bg | ) |
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 35 of file BGIP_SolverRandom.cpp.
|
virtual |
The methods that performs the planning.
Returns the expected reward.
Implements BayesianGameIdenticalPayoffSolver< JointPolicyPureVector >.
Definition at line 40 of file BGIP_SolverRandom.cpp.
References BayesianGameIdenticalPayoffSolver< JointPolicyPureVector >::_m_solution, JointPolicyPureVector::GetJointActionIndex(), BayesianGameBase::GetNrJointTypes(), BayesianGameBase::GetProbability(), Referrer< BayesianGameIdenticalPayoffInterface >::GetReferred(), BayesianGameIdenticalPayoffInterface::GetUtility(), JointPolicyPureVector::RandomInitialization(), BGIPSolution::SetPayoff(), and BGIPSolution::SetPolicy().