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

◆ CompareVariableByCoefficient()

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

◆ operator()()

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.

Member Data Documentation

◆ vObjCoef

template<typename T, typename V>
coefficient_value_type const* limbo::solvers::MultiKnapsackLagRelax< T, V >::CompareVariableByCoefficient::vObjCoef

coefficients in objective for comparison

Definition at line 232 of file MultiKnapsackLagRelax.h.


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