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

DAOOPT DAOOPT inference algorithm class. More...

#include <daoopt.hxx>

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

Classes

struct  Parameter
 Parameter inherits from daoopt ProgramOptions. More...
 

Public Types

typedef GM GraphicalModelType
 
typedef opengm::Minimizer AccumulationType
 
typedef visitors::VerboseVisitor< DAOOPT< GM > > VerboseVisitorType
 
typedef visitors::EmptyVisitor< DAOOPT< GM > > EmptyVisitorType
 
typedef visitors::TimingVisitor< DAOOPT< 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

 DAOOPT (const GraphicalModelType &gm, const Parameter &para=Parameter())
 
 ~DAOOPT ()
 
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 Attributes

const GraphicalModelTypegm_
 
Parameter parameter_
 
daoopt::Main main_
 

Detailed Description

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

DAOOPT DAOOPT inference algorithm class.

Maximum factor order : ?

Definition at line 45 of file daoopt.hxx.

Member Typedef Documentation

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

Definition at line 48 of file daoopt.hxx.

Definition at line 51 of file daoopt.hxx.

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

Definition at line 47 of file daoopt.hxx.

Definition at line 52 of file daoopt.hxx.

Definition at line 50 of file daoopt.hxx.

Constructor & Destructor Documentation

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

Definition at line 95 of file daoopt.hxx.

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

Definition at line 156 of file daoopt.hxx.

Member Function Documentation

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

Definition at line 221 of file daoopt.hxx.

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

return a bound on the solution

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

Definition at line 236 of file daoopt.hxx.

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

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

Definition at line 166 of file daoopt.hxx.

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

Definition at line 178 of file daoopt.hxx.

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

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

Definition at line 171 of file daoopt.hxx.

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

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

Definition at line 161 of file daoopt.hxx.

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

return the solution (value)

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

Definition at line 241 of file daoopt.hxx.

Member Data Documentation

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

Definition at line 89 of file daoopt.hxx.

template<class GM>
daoopt::Main opengm::external::DAOOPT< GM >::main_
protected

Definition at line 91 of file daoopt.hxx.

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

Definition at line 49 of file daoopt.hxx.

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

Definition at line 90 of file daoopt.hxx.