paal::ir::round_condition_greater_than_half Struct Reference

Column rounding component. A variable is rounded up to 1, if it has value at least half in the solution. More...

#include <ir_components.hpp>

Inheritance diagram for paal::ir::round_condition_greater_than_half:

## Public Member Functions

round_condition_greater_than_half (double epsilon=utils::compare< double >::default_epsilon())
constructor takes epsilon used in double comparison.

Public Member Functions inherited from paal::ir::round_condition_to_fun< cond_bigger_equal_than, utils::return_one_functor >
round_condition_to_fun (cond_bigger_equal_thanc=cond_bigger_equal_than(), utils::return_one_functorf=utils::return_one_functor())
Constructor. Takes the rounding condition and the rounding function.

boost::optional< double > operator() (Problem &, const LP &lp, lp::col_id col)
Rounds a column if its value satisfies a fixed condition.

## Detailed Description

Column rounding component. A variable is rounded up to 1, if it has value at least half in the solution.

Definition at line 184 of file ir_components.hpp.

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