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 >::CompareVariableByCoefficient Struct Reference

Predicate to sort variables according to their coefficient from small to large. More...

#include <MultiKnapsackLagRelax.h>

Public Member Functions

 CompareVariableByCoefficient (coefficient_value_type const *v)
 constructor More...
 
bool operator() (variable_type const &v1, variable_type const &v2) const
 

Public Attributes

coefficient_value_type const * vObjCoef
 coefficients in objective for comparison
 

Detailed Description

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

Predicate to sort variables according to their coefficient from small to large.

Definition at line 230 of file MultiKnapsackLagRelax.h.

Constructor & Destructor Documentation

template<typename T, typename V>
limbo::solvers::MultiKnapsackLagRelax< T, V >::CompareVariableByCoefficient::CompareVariableByCoefficient ( coefficient_value_type const *  v)
inline

constructor

Parameters
varray of coefficients in objective

Definition at line 236 of file MultiKnapsackLagRelax.h.

Member Function Documentation

template<typename T, typename V>
bool limbo::solvers::MultiKnapsackLagRelax< T, V >::CompareVariableByCoefficient::operator() ( variable_type const &  v1,
variable_type const &  v2 
) const
inline
Parameters
v1variable
v2variable
Returns
true if v1 has smaller coefficient than v2

Definition at line 244 of file MultiKnapsackLagRelax.h.


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