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

Go to the documentation of this file.
00001 /* $Id: CouennePrecisions.hpp 217 2009-07-08 17:02:07Z pbelotti $
00002  *
00003  * Name:    CouennePrecisions.hpp
00004  * Author:  Pietro Belotti
00005  * Purpose: constants for evaluation procedures
00006  *
00007  * (C) Carnegie-Mellon University, 2006-08. 
00008  * This file is licensed under the Common Public License (CPL)
00009  */
00010 
00011 #ifndef COUENNE_PRECISIONS_HPP
00012 #define COUENNE_PRECISIONS_HPP
00013 
00014 #include <math.h>
00015 
00016 // must be >= 1e-7
00017 #define COUENNE_EPS           1.e-7
00018 
00019 // for integrality check
00020 #define COUENNE_EPS_INT       1.e-9
00021 
00022 // for simplification
00023 #define COUENNE_EPS_SIMPL     1.e-20
00024 
00025 // for bounds
00026 #define COUENNE_INFINITY      1.e+50
00027 
00028 // for cuts, ensures stability and scaling
00029 #define COU_MAX_COEFF     1.e+9
00030 
00031 // for cuts, ditto
00032 #define COU_MIN_COEFF     1.e-9
00033 
00034 // rounds to nearest integer
00035 #define COUENNE_round(x) ((int) (floor ((x) + 0.5)))
00036 
00037 #define MAX_BOUND 1.e45
00038 
00040 const double Couenne_large_bound =  9.999e12;
00041 
00042 #endif

Generated on Tue Mar 30 03:04:37 2010 by  doxygen 1.4.7