Limbo 3.5.4
Loading...
Searching...
No Matches
limbo::solvers::SmartRound< T, size_t > Struct Template Reference

Round floating point solutions to integer if the variable type is integer. If not rounded, there might be precision issues. More...

#include <CplexApi.h>

Public Member Functions

operator() (double value) const
operator() (double value) const

Detailed Description

template<typename T, std::size_t = std::numeric_limits<T>::is_integer>
struct limbo::solvers::SmartRound< T, size_t >

Round floating point solutions to integer if the variable type is integer. If not rounded, there might be precision issues.

Definition at line 88 of file CplexApi.h.

Member Function Documentation

◆ operator()() [1/2]

template<typename T, std::size_t = std::numeric_limits<T>::is_integer>
T limbo::solvers::SmartRound< T, size_t >::operator() ( double value) const
inline

Definition at line 90 of file CplexApi.h.

◆ operator()() [2/2]

template<typename T, std::size_t = std::numeric_limits<T>::is_integer>
T limbo::solvers::SmartRound< T, size_t >::operator() ( double value) const
inline

Definition at line 77 of file GurobiApi.h.


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