Limbo 3.5.4
Loading...
Searching...
No Matches
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
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

◆ CapacityConstraintPred()

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

◆ operator()() [1/2]

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.

◆ operator()() [2/2]

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.

Member Data Documentation

◆ vConstraint

template<typename T, typename V>
std::vector<constraint_type> const& limbo::solvers::MultiKnapsackLagRelax< T, V >::CapacityConstraintPred::vConstraint

constraints

Definition at line 209 of file MultiKnapsackLagRelax.h.


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