MultiAgentDecisionProcess
|
FG_SolverMaxPlus optimizes (maximizes) a factor graph using max plus. More...
#include <FG_SolverMaxPlus.h>
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... | |
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.
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
|
virtual |
Copy constructor.
Destructor. Copy assignment operator
Implements FG_Solver.
References FG_Solver::_m_bestConfs, MaxPlusSolver::_m_damping, _m_deadlineInSeconds, FG_Solver::_m_fg, MaxPlusSolver::_m_maxiter, MaxPlusSolver::_m_nrRestarts, MaxPlusSolver::_m_nrSolutions, MaxPlusSolver::_m_updateType, MaxPlusSolver::_m_verbosity, BGIP_SolverType::MaxPlus, and PrintTools::SoftPrintVector().
|
private |
Referenced by Solve().