Limbo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
limbo::solvers::MultiKnapsackLagRelax< T, V >::CapacityConstraintPred Struct Reference

Predicate whether a constraint is a capacity constraint. More...

#include <MultiKnapsackLagRelax.h>

Public Member Functions

 CapacityConstraintPred (std::vector< constraint_type > const &v)
 constructor More...
 
bool operator() (constraint_type const &constr) const
 
bool operator() (unsigned int id) const
 

Public Attributes

std::vector< constraint_type >
const & 
vConstraint
 constraints
 

Detailed Description

template<typename T, typename V>
struct limbo::solvers::MultiKnapsackLagRelax< T, V >::CapacityConstraintPred

Predicate whether a constraint is a capacity constraint.

Definition at line 207 of file MultiKnapsackLagRelax.h.

Constructor & Destructor Documentation

template<typename T, typename V>
limbo::solvers::MultiKnapsackLagRelax< T, V >::CapacityConstraintPred::CapacityConstraintPred ( std::vector< constraint_type > const &  v)
inline

constructor

Parameters
varray of constraints

Definition at line 213 of file MultiKnapsackLagRelax.h.

Member Function Documentation

template<typename T, typename V>
bool limbo::solvers::MultiKnapsackLagRelax< T, V >::CapacityConstraintPred::operator() ( constraint_type const &  constr) const
inline
Returns
true if constr is a capacity constraint
Parameters
constrconstraint

Definition at line 217 of file MultiKnapsackLagRelax.h.

template<typename T, typename V>
bool limbo::solvers::MultiKnapsackLagRelax< T, V >::CapacityConstraintPred::operator() ( unsigned int  id) const
inline
Returns
true if constraint is a capacity constraint
Parameters
idconstraint index

Definition at line 223 of file MultiKnapsackLagRelax.h.


The documentation for this struct was generated from the following file: