source: stable/0.2/Couenne/src/expression/CouennePrecisions.hpp @ 159

Last change on this file since 159 was 159, checked in by pbelotti, 11 years ago

created new stable branch 0.2 from trunk (rev. 157)

File size: 932 bytes
Line 
1/* $Id: CouennePrecisions.hpp 141 2009-06-03 04:19:19Z pbelotti $ */
2/*
3 * Name:    CouennePrecisions.hpp
4 * Author:  Pietro Belotti
5 * Purpose: constants for evaluation procedures
6 *
7 * (C) Carnegie-Mellon University, 2006-08.
8 * This file is licensed under the Common Public License (CPL)
9 */
10
11#ifndef COUENNE_PRECISIONS_HPP
12#define COUENNE_PRECISIONS_HPP
13
14#include <math.h>
15
16// must be >= 1e-7
17#define COUENNE_EPS           1.e-7
18
19// for integrality check
20#define COUENNE_EPS_INT       1.e-9
21
22// for simplification
23#define COUENNE_EPS_SIMPL     1.e-20
24
25// for bounds
26#define COUENNE_INFINITY      1.e+50
27
28// for cuts, ensures stability and scaling
29#define COU_MAX_COEFF     1.e+9
30
31// for cuts, ditto
32#define COU_MIN_COEFF     1.e-9
33
34// rounds to nearest integer
35#define COUENNE_round(x) ((int) (floor ((x) + 0.5)))
36
37#define MAX_BOUND 1.e45
38
39/// used to declare LP unbounded
40const double Couenne_large_bound =  9.999e12;
41
42#endif
Note: See TracBrowser for help on using the repository browser.