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

Functor used to access the method challengeRelaxed() 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 >::AddAllViolatedLinearConstraintsRelaxedFunctor:

Classes

struct  AddAllViolatedLinearConstraintsRelaxedFunctor_impl
 Helper struct to distinguish between linear constraint functions and other function types. This is necessary as only linear constraint functions provide the method challengeRelaxed(). More...
 
struct  AddAllViolatedLinearConstraintsRelaxedFunctor_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 challengeRelaxed() 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 challengeRelaxed() of the underlying linear constraint function of a graphical model factor. More...
 
RelaxedSolutionSubsequenceIterator 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 >::AddAllViolatedLinearConstraintsRelaxedFunctor

Functor used to access the method challengeRelaxed() 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 197 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 >::AddAllViolatedLinearConstraintsRelaxedFunctor::operator() ( const LINEAR_CONSTRAINT_FUNCTION_TYPE &  linearConstraintFunction)
inline

Operator used to access the method challengeRelaxed() 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 3345 of file lp_inference_base.hxx.

Member Data Documentation

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

Iterator used to iterate over the current solution.

Definition at line 200 of file lp_inference_base.hxx.

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

Index of the linear constraint factor.

Definition at line 203 of file lp_inference_base.hxx.

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

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

Definition at line 202 of file lp_inference_base.hxx.

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

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

Definition at line 199 of file lp_inference_base.hxx.

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

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

Definition at line 201 of file lp_inference_base.hxx.