MultiAgentDecisionProcess
FG_SolverMaxPlus Class Reference

FG_SolverMaxPlus optimizes (maximizes) a factor graph using max plus. More...

#include <FG_SolverMaxPlus.h>

Inheritance diagram for FG_SolverMaxPlus:
[legend]

Public Member Functions

 FG_SolverMaxPlus (const libDAI::FactorGraph &f, size_t maxiter=1000, std::string updateType=std::string("PARALL"), int verbosity=2, double damping=0.0, size_t nrSolutions=1, size_t nrRestarts=1, double deadlineInSeconds=0)
 (default) Constructor More...
 
double Solve ()
 Copy constructor. More...
 
- Public Member Functions inherited from FG_Solver
 FG_Solver (const libDAI::FactorGraph &f)
 (default) Constructor More...
 
std::list
< libDAI::MADP_util::valConf > & 
GetBestConfigurations ()
 
virtual ~FG_Solver ()
 Destructor. More...
 
- Public Member Functions inherited from MaxPlusSolver
 MaxPlusSolver (size_t maxiter=1000, std::string updateType=std::string("PARALL"), int verbosity=2, double damping=0.0, size_t nrSolutions=1, size_t nrRestarts=1)
 (default) Constructor More...
 

Private Attributes

double _m_deadlineInSeconds
 

Additional Inherited Members

- Public Types inherited from FG_Solver
enum  FG_Solver_t { FGSt_MaxPlus, FGSt_NDP }
 
- Static Public Member Functions inherited from FG_Solver
static std::string SoftPrint (FG_Solver_t fgs)
 
- Protected Attributes inherited from FG_Solver
std::list
< libDAI::MADP_util::valConf > 
_m_bestConfs
 
const libDAI::FactorGraph * _m_fg
 
- Protected Attributes inherited from MaxPlusSolver
double _m_damping
 stores the damping factor More...
 
size_t _m_maxiter
 stores the MaxPlus parameter for the max. number of iterations More...
 
size_t _m_nrRestarts
 stores the number of restarts (for non-deterministic Max-Plus variants) More...
 
size_t _m_nrSolutions
 stores the (desired) number of solutions More...
 
std::string _m_updateType
 stores the MaxPlus parameter for the update type More...
 
int _m_verbosity
 stores the MaxPlus parameter for the verbosity level More...
 

Detailed Description

FG_SolverMaxPlus optimizes (maximizes) a factor graph using max plus.

I.e., the factor graph represents the sum of the factors and we look for the maximizing configuration.

Constructor & Destructor Documentation

FG_SolverMaxPlus::FG_SolverMaxPlus ( const libDAI::FactorGraph &  f,
size_t  maxiter = 1000,
std::string  updateType = std::string("PARALL"),
int  verbosity = 2,
double  damping = 0.0,
size_t  nrSolutions = 1,
size_t  nrRestarts = 1,
double  deadlineInSeconds = 0 
)

(default) Constructor

Member Function Documentation

Member Data Documentation

double FG_SolverMaxPlus::_m_deadlineInSeconds
private

Referenced by Solve().