/home/coin/SVN-release/OS-2.4.2/Couenne/src/expression/CouennePrecisions.hpp

Go to the documentation of this file.
00001 /* $Id: CouennePrecisions.hpp 571 2011-05-09 13:26:44Z pbelotti $
00002  *
00003  * Name:    CouennePrecisions.hpp
00004  * Author:  Pietro Belotti
00005  * Purpose: constants for evaluation procedures
00006  *
00007  * (C) Carnegie-Mellon University, 2006-10.
00008  * This file is licensed under the Eclipse Public License (EPL)
00009  */
00010 
00011 #ifndef COUENNE_PRECISIONS_HPP
00012 #define COUENNE_PRECISIONS_HPP
00013 
00014 #include <math.h>
00015 
00016 namespace Couenne {
00017 
00018 // must be >= 1e-7
00019 #define COUENNE_EPS           1.e-07
00020 
00021 // to be used in bounds tightening to avoid node pruning due to strict COUENNE_EPS tolerance
00022 #define COUENNE_BOUND_PREC    1.e-5
00023 
00024 // for integrality check
00025 #define COUENNE_EPS_INT       1.e-9
00026 
00027 // for simplification
00028 #define COUENNE_EPS_SIMPL     1.e-20
00029 
00030 // for bounds
00031 #define COUENNE_INFINITY      1.e+50
00032 
00033 // for cuts, ensures stability and scaling in Clp
00034 #define COU_MAX_COEFF     1.e+9
00035 
00036 // for cuts, ditto
00037 #define COU_MIN_COEFF     1.e-9
00038 
00039 // rounds to nearest integer
00040 #define COUENNE_round(x) ((int) (floor ((x) + 0.5)))
00041 
00042 #define MAX_BOUND 1.e45
00043 
00045 const double Couenne_large_bound =  9.999e12;
00046 
00047 }
00048 
00049 #endif

Generated on Wed Nov 30 03:04:01 2011 by  doxygen 1.4.7