1 #ifndef CYCLUS_SRC_CYC_LIMITS_H_ 2 #define CYCLUS_SRC_CYC_LIMITS_H_ 25 return (d < (-1 *
eps()));
30 return std::fabs(d1 - d2) <
eps();
51 #endif // CYCLUS_SRC_CYC_LIMITS_H_ bool AlmostEq(double d1, double d2)
returns true if two doubles are within eps() of one another
double cy_eps
generic epsilon values
static const double kModifierLimit
maximum value for a function modifier (i.e., a_i for variable x_i)
static const double float_ulp_eq
distance in ULP within which floating point numbers should be considered equal.
double eps_rsrc()
an epsilon value to be used by resources
static const double kConstraintEps
epsilon value to turn determine difference between constraint values
bool IsNegative(double d)
returns true if a double is less than 0 - eps()
static const double kLinBoundLimit
maximum (+ or -) value for a linear variable
double cy_eps_rsrc
epsilon values to be used by resources
static const int kIntBoundLimit
maximum (+ or -) value for an integer variable
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or.org/Osi/browser/trunk.
double eps()
a generic epsilon value