OpenGM  2.3.x
Discrete Graphical Model Library
Classes | Public Member Functions | Public Attributes | List of all members
opengm::LPInferenceBase< LP_INFERENCE_TYPE >::AddAllViolatedLinearConstraintsFunctor Struct Reference

Functor used to access the method challenge() of the underlying linear constraint function of a graphical model factor and to add all violated constraints to the LP/MIP model. More...

#include <lp_inference_base.hxx>

+ Collaboration diagram for opengm::LPInferenceBase< LP_INFERENCE_TYPE >::AddAllViolatedLinearConstraintsFunctor:

Classes

struct  AddAllViolatedLinearConstraintsFunctor_impl
 Helper struct to distinguish between linear constraint functions and other function types. This is necessary as only linear constraint functions provide the method challenge(). More...
 
struct  AddAllViolatedLinearConstraintsFunctor_impl< FUNCTION_TYPE, true >
 

Public Member Functions

template<class LINEAR_CONSTRAINT_FUNCTION_TYPE >
void operator() (const LINEAR_CONSTRAINT_FUNCTION_TYPE &linearConstraintFunction)
 Operator used to access the method challenge() of the underlying linear constraint function of a graphical model factor and to add all violated constraints to the LP/MIP model. More...
 

Public Attributes

ValueType tolerance_
 The tolerance used for the method challenge() of the underlying linear constraint function of a graphical model factor. More...
 
IntegerSolutionSubsequenceIterator labelingBegin_
 Iterator used to iterate over the current solution. More...
 
bool violatedConstraintAdded_
 Indicator used to tell if at least one constraint was added to the LP/MIP model. More...
 
LPInferenceBaseTypelpInference_
 Pointer pointing to the instance of opengm::LPInferenceBase to get access to the LP/MIP model. More...
 
IndexType linearConstraintID_
 Index of the linear constraint factor. More...
 

Detailed Description

template<class LP_INFERENCE_TYPE>
struct opengm::LPInferenceBase< LP_INFERENCE_TYPE >::AddAllViolatedLinearConstraintsFunctor

Functor used to access the method challenge() of the underlying linear constraint function of a graphical model factor and to add all violated constraints to the LP/MIP model.

Definition at line 177 of file lp_inference_base.hxx.

Member Function Documentation

template<class LP_INFERENCE_TYPE >
template<class LINEAR_CONSTRAINT_FUNCTION_TYPE >
void opengm::LPInferenceBase< LP_INFERENCE_TYPE >::AddAllViolatedLinearConstraintsFunctor::operator() ( const LINEAR_CONSTRAINT_FUNCTION_TYPE &  linearConstraintFunction)
inline

Operator used to access the method challenge() of the underlying linear constraint function of a graphical model factor and to add all violated constraints to the LP/MIP model.

Template Parameters
LINEAR_CONSTRAINT_FUNCTION_TYPEThe underlying linear constraint function type of a graphical model factor.
Parameters
[in]linearConstraintFunctionThe underlying linear constraint function of a graphical model factor.

Definition at line 3317 of file lp_inference_base.hxx.

Member Data Documentation

template<class LP_INFERENCE_TYPE>
opengm::LPInferenceBase< LP_INFERENCE_TYPE >::AddAllViolatedLinearConstraintsFunctor::labelingBegin_

Iterator used to iterate over the current solution.

Definition at line 180 of file lp_inference_base.hxx.

template<class LP_INFERENCE_TYPE>
opengm::LPInferenceBase< LP_INFERENCE_TYPE >::AddAllViolatedLinearConstraintsFunctor::linearConstraintID_

Index of the linear constraint factor.

Definition at line 183 of file lp_inference_base.hxx.

template<class LP_INFERENCE_TYPE>
opengm::LPInferenceBase< LP_INFERENCE_TYPE >::AddAllViolatedLinearConstraintsFunctor::lpInference_

Pointer pointing to the instance of opengm::LPInferenceBase to get access to the LP/MIP model.

Definition at line 182 of file lp_inference_base.hxx.

template<class LP_INFERENCE_TYPE>
opengm::LPInferenceBase< LP_INFERENCE_TYPE >::AddAllViolatedLinearConstraintsFunctor::tolerance_

The tolerance used for the method challenge() of the underlying linear constraint function of a graphical model factor.

Definition at line 179 of file lp_inference_base.hxx.

template<class LP_INFERENCE_TYPE>
opengm::LPInferenceBase< LP_INFERENCE_TYPE >::AddAllViolatedLinearConstraintsFunctor::violatedConstraintAdded_

Indicator used to tell if at least one constraint was added to the LP/MIP model.

Definition at line 181 of file lp_inference_base.hxx.