Limbo 3.5.4
Loading...
Searching...
No Matches
limbo::solvers::SearchByAdjustCoefficient< T, V >::CompareVariableMoveCost Struct Reference

Compare variables by its move cost. More...

#include <MultiKnapsackLagRelax.h>

Public Member Functions

bool operator() (VariableMoveCost const &c1, VariableMoveCost const &c2) const

Detailed Description

template<typename T, typename V>
struct limbo::solvers::SearchByAdjustCoefficient< T, V >::CompareVariableMoveCost

Compare variables by its move cost.

Definition at line 1347 of file MultiKnapsackLagRelax.h.

Member Function Documentation

◆ operator()()

template<typename T, typename V>
bool limbo::solvers::SearchByAdjustCoefficient< T, V >::CompareVariableMoveCost::operator() ( VariableMoveCost const & c1,
VariableMoveCost const & c2 ) const
inline
Parameters
c1pair of variable and cost
c2pair of variable and cost
Returns
true if c1 has smaller cost ratio than c2

Definition at line 1352 of file MultiKnapsackLagRelax.h.


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