OpenGM  2.3.x
Discrete Graphical Model Library
Classes | Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
opengm::external::MPLP< GM > Class Template Reference

MPLP MPLP inference algorithm class. More...

#include <mplp.hxx>

+ Inheritance diagram for opengm::external::MPLP< GM >:
+ Collaboration diagram for opengm::external::MPLP< GM >:

Classes

struct  Parameter
 

Public Types

typedef GM GraphicalModelType
 
typedef opengm::Minimizer AccumulationType
 
typedef visitors::VerboseVisitor< MPLP< GM > > VerboseVisitorType
 
typedef visitors::EmptyVisitor< MPLP< GM > > EmptyVisitorType
 
typedef visitors::TimingVisitor< MPLP< GM > > TimingVisitorType
 
- Public Types inherited from opengm::Inference< GM, opengm::Minimizer >
typedef GM GraphicalModelType
 
typedef opengm::Minimizer AccumulationType
 
typedef GraphicalModelType::LabelType LabelType
 
typedef GraphicalModelType::IndexType IndexType
 
typedef GraphicalModelType::ValueType ValueType
 
typedef GraphicalModelType::OperatorType OperatorType
 
typedef GraphicalModelType::FactorType FactorType
 
typedef GraphicalModelType::IndependentFactorType IndependentFactorType
 
typedef GraphicalModelType::FunctionIdentifier FunctionIdentifier
 

Public Member Functions

 MPLP (const GraphicalModelType &gm, const Parameter &para=Parameter())
 
 ~MPLP ()
 
std::string name () const
 
const GraphicalModelTypegraphicalModel () const
 
template<class VISITOR >
InferenceTermination infer (VISITOR &visitor)
 
InferenceTermination infer ()
 
InferenceTermination arg (std::vector< LabelType > &, const size_t &=1) const
 
GM::ValueType bound () const
 return a bound on the solution More...
 
GM::ValueType value () const
 return the solution (value) More...
 
- Public Member Functions inherited from opengm::Inference< GM, opengm::Minimizer >
virtual ~Inference ()
 
virtual void setStartingPoint (typename std::vector< LabelType >::const_iterator)
 set initial labeling More...
 
virtual InferenceTermination arg (std::vector< LabelType > &, const size_t=1) const
 output a solution More...
 
virtual InferenceTermination args (std::vector< std::vector< LabelType > > &) const
 
virtual InferenceTermination marginal (const size_t, IndependentFactorType &) const
 output a solution for a marginal for a specific variable More...
 
virtual InferenceTermination factorMarginal (const size_t, IndependentFactorType &) const
 output a solution for a marginal for all variables connected to a factor More...
 
InferenceTermination constrainedOptimum (std::vector< IndexType > &, std::vector< LabelType > &, std::vector< LabelType > &) const
 
InferenceTermination modeFromMarginal (std::vector< LabelType > &) const
 
InferenceTermination modeFromFactorMarginal (std::vector< LabelType > &) const
 

Public Attributes

 OPENGM_GM_TYPE_TYPEDEFS
 

Protected Member Functions

bool valueCheck () const
 

Protected Attributes

const GraphicalModelTypegm_
 
Parameter parameter_
 
FILE * mplpLogFile_
 
clock_t mplpStart_
 
MPLPAlg * mplp_
 

Detailed Description

template<class GM>
class opengm::external::MPLP< GM >

MPLP MPLP inference algorithm class.

Maximum factor order : ?

Definition at line 34 of file mplp.hxx.

Member Typedef Documentation

template<class GM>
typedef opengm::Minimizer opengm::external::MPLP< GM >::AccumulationType

Definition at line 37 of file mplp.hxx.

template<class GM>
typedef visitors::EmptyVisitor<MPLP<GM> > opengm::external::MPLP< GM >::EmptyVisitorType

Definition at line 40 of file mplp.hxx.

template<class GM>
typedef GM opengm::external::MPLP< GM >::GraphicalModelType

Definition at line 36 of file mplp.hxx.

template<class GM>
typedef visitors::TimingVisitor<MPLP<GM> > opengm::external::MPLP< GM >::TimingVisitorType

Definition at line 41 of file mplp.hxx.

Definition at line 39 of file mplp.hxx.

Constructor & Destructor Documentation

template<class GM >
opengm::external::MPLP< GM >::MPLP ( const GraphicalModelType gm,
const Parameter para = Parameter() 
)
inline

Definition at line 159 of file mplp.hxx.

template<class GM >
opengm::external::MPLP< GM >::~MPLP ( )
inline

Definition at line 225 of file mplp.hxx.

Member Function Documentation

template<class GM >
InferenceTermination opengm::external::MPLP< GM >::arg ( std::vector< LabelType > &  arg,
const size_t n = 1 
) const
inline

Definition at line 427 of file mplp.hxx.

template<class GM >
GM::ValueType opengm::external::MPLP< GM >::bound ( ) const
inlinevirtual

return a bound on the solution

Reimplemented from opengm::Inference< GM, opengm::Minimizer >.

Definition at line 445 of file mplp.hxx.

template<class GM >
const MPLP< GM >::GraphicalModelType & opengm::external::MPLP< GM >::graphicalModel ( ) const
inlinevirtual

Implements opengm::Inference< GM, opengm::Minimizer >.

Definition at line 237 of file mplp.hxx.

template<class GM >
template<class VISITOR >
InferenceTermination opengm::external::MPLP< GM >::infer ( VISITOR &  visitor)
inline

Definition at line 249 of file mplp.hxx.

template<class GM >
InferenceTermination opengm::external::MPLP< GM >::infer ( )
inlinevirtual

Implements opengm::Inference< GM, opengm::Minimizer >.

Definition at line 242 of file mplp.hxx.

template<class GM >
std::string opengm::external::MPLP< GM >::name ( ) const
inlinevirtual

Implements opengm::Inference< GM, opengm::Minimizer >.

Definition at line 232 of file mplp.hxx.

template<class GM >
GM::ValueType opengm::external::MPLP< GM >::value ( ) const
inlinevirtual

return the solution (value)

Reimplemented from opengm::Inference< GM, opengm::Minimizer >.

Definition at line 451 of file mplp.hxx.

template<class GM >
bool opengm::external::MPLP< GM >::valueCheck ( ) const
inlineprotected

Definition at line 462 of file mplp.hxx.

Member Data Documentation

template<class GM>
const GraphicalModelType& opengm::external::MPLP< GM >::gm_
protected

Definition at line 147 of file mplp.hxx.

template<class GM>
MPLPAlg* opengm::external::MPLP< GM >::mplp_
protected

Definition at line 153 of file mplp.hxx.

template<class GM>
FILE* opengm::external::MPLP< GM >::mplpLogFile_
protected

Definition at line 150 of file mplp.hxx.

template<class GM>
clock_t opengm::external::MPLP< GM >::mplpStart_
protected

Definition at line 152 of file mplp.hxx.

template<class GM>
opengm::external::MPLP< GM >::OPENGM_GM_TYPE_TYPEDEFS

Definition at line 38 of file mplp.hxx.

template<class GM>
Parameter opengm::external::MPLP< GM >::parameter_
protected

Definition at line 148 of file mplp.hxx.