All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Pages
Public Member Functions | Protected Member Functions | List of all members
paal::ir::round_condition_equals< arg, args...> Class Template Reference

Column rounding component. Rounds a column if its value is equal to one of the template parameter values. More...

#include <ir_components.hpp>

Inheritance diagram for paal::ir::round_condition_equals< arg, args...>:
paal::ir::round_condition_equals< args...>

Public Member Functions

 round_condition_equals (double epsilon=utils::compare< double >::default_epsilon())
 constructor takes epsilon used in double comparison.
 
template<typename Problem , typename LP >
boost::optional< double > operator() (Problem &, const LP &lp, lp::col_id col)
 

Protected Member Functions

template<typename LP >
boost::optional< double > get (const LP &lp, double x)
 Checks if the value can be rounded to the first template parameter.
 

Detailed Description

template<int arg, int... args>
class paal::ir::round_condition_equals< arg, args...>

Column rounding component. Rounds a column if its value is equal to one of the template parameter values.

Definition at line 80 of file ir_components.hpp.

Member Function Documentation

template<int arg, int... args>
template<typename Problem , typename LP >
boost::optional<double> paal::ir::round_condition_equals< arg, args...>::operator() ( Problem &  ,
const LP lp,
lp::col_id  col 
)
inline

Rounds a column if its value is equal to one of the template parameter values.

Definition at line 91 of file ir_components.hpp.


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