MultiAgentDecisionProcess
BGIP_IncrementalSolverInterface_T< JP > Class Template Reference

BGIP_IncrementalSolverInterface_T is an interface for BGIP_Solvers that can incrementally return multiple solutions. More...

#include <BGIP_IncrementalSolverInterface_T.h>

Inheritance diagram for BGIP_IncrementalSolverInterface_T< JP >:
[legend]

Public Member Functions

 BGIP_IncrementalSolverInterface_T (const boost::shared_ptr< const BayesianGameIdenticalPayoffInterface > &bg, size_t nrDesiredSolutions=INT_MAX)
 
virtual boost::shared_ptr
< JointPolicyDiscretePure
GetNewJpol () const
 this gives a implementation of GetNewJpol (specified in BayesianGameIdenticalPayoffSolver) More...
 
- Public Member Functions inherited from BGIP_IncrementalSolverInterface
bool AllSolutionsHaveBeenReturned () const
 
 BGIP_IncrementalSolverInterface (const boost::shared_ptr< const BayesianGameIdenticalPayoffInterface > &bg, size_t nrDesiredSolutions=INT_MAX)
 
bool GetNextJointPolicyAndValue (boost::shared_ptr< JointPolicyDiscretePure > &jpol, double &value)
 Gets the next solution from the Incremental CBG solver. More...
 
virtual ~BGIP_IncrementalSolverInterface ()
 
- Public Member Functions inherited from BayesianGameIdenticalPayoffSolver
void AddSolution (const JointPolicyPureVector &jp, double value)
 
void AddSolution (const JointPolicyPureVectorForClusteredBG &jp, double value)
 
void AddSolution (LIndex jpolIndex, double value)
 
 BayesianGameIdenticalPayoffSolver (const boost::shared_ptr< const BayesianGameIdenticalPayoffInterface > &bg, size_t nrDesiredSolutions=1)
 (default) Constructor More...
 
double Evaluate (const JointPolicyPureVector &jpolBG) const
 
double Evaluate (const JointPolicyPureVectorForClusteredBG &jpolBG) const
 
boost::shared_ptr< const
BayesianGameIdenticalPayoffInterface
GetBGIPI () const
 
double GetExpectedReward () const
 
const boost::shared_ptr
< JointPolicy
GetJointPolicy () const
 
const JointPolicyPureVectorGetJointPolicyPureVector () const
 
boost::shared_ptr< JPPVValuePairGetNextSolutionJPPV () const
 
boost::shared_ptr
< PartialJPDPValuePair
GetNextSolutionPJPDP () const
 
size_t GetNrDesiredSolutions () const
 
size_t GetNrFoundSolutions () const
 Gets the found number of solutions. More...
 
double GetPayoff () const
 
std::ofstream * GetResultsOFStream () const
 
std::ofstream * GetTimingsOFStream () const
 
bool GetWriteAnyTimeResults () const
 
bool IsEmptyJPPV () const
 
bool IsEmptyPJPDP () const
 
virtual bool IsExactSolver () const =0
 Methods should indicated whether they compute exact (optimal) solutions or not. More...
 
void PopNextSolutionJPPV ()
 
void PopNextSolutionPJPDP ()
 
void SaveSolution (const std::string &filename) const
 
void SetAnyTimeResults (bool turn_on, std::ofstream *results, std::ofstream *timings)
 Turns Anytime results on and of. More...
 
virtual void SetCBGlowerBound (double lowerbound)=0
 
virtual void SetCBGupperBound (double ub)=0
 
virtual void SetDeadline (double deadlineInSeconds)
 To limit the amount of time the solver uses. More...
 
void SetNrDesiredSolutions (size_t n)
 Gets the desired number of solutions to be returned. More...
 
std::string SoftPrintSolution () const
 
virtual double Solve ()=0
 The methods that performs the planning. More...
 
virtual ~BayesianGameIdenticalPayoffSolver ()
 Destructor. More...
 

Additional Inherited Members

- Protected Member Functions inherited from BGIP_IncrementalSolverInterface
virtual bool GetNextJointPolicyAndValueSpecific (boost::shared_ptr< JointPolicyDiscretePure > &jpol, double &value)=0
 The specific implementation that should be implemented by the derived class: More...
 
- Protected Member Functions inherited from BayesianGameIdenticalPayoffSolver
virtual void CheckDeadline (const std::string &errorMessage) const
 Checks whether the deadline has expired. Throws EDeadline. More...
 
virtual void InitDeadline ()
 Should be called at the beginning of Solve(). More...
 
- Protected Attributes inherited from BGIP_IncrementalSolverInterface
size_t _m_nrSolutionsReturned
 The number of solutions we already returned (not computed) More...
 

Detailed Description

template<class JP>
class BGIP_IncrementalSolverInterface_T< JP >

BGIP_IncrementalSolverInterface_T is an interface for BGIP_Solvers that can incrementally return multiple solutions.

Constructor & Destructor Documentation

template<class JP >
BGIP_IncrementalSolverInterface_T< JP >::BGIP_IncrementalSolverInterface_T ( const boost::shared_ptr< const BayesianGameIdenticalPayoffInterface > &  bg,
size_t  nrDesiredSolutions = INT_MAX 
)
inline

Member Function Documentation