coin-Cgl
CglParam.hpp
Go to the documentation of this file.
1 // Name: CglParam.hpp
2 // Author: Francois Margot
3 // Tepper School of Business
4 // Carnegie Mellon University, Pittsburgh, PA 15213
5 // email: fmargot@andrew.cmu.edu
6 // Date: 11/24/06
7 //-----------------------------------------------------------------------------
8 // Copyright (C) 2006, Francois Margot and others. All Rights Reserved.
9 
10 #ifndef CglParam_H
11 #define CglParam_H
12 #include "CoinFinite.hpp"
17 class CglParam {
18 
19 public:
20 
23 
25  virtual void setINFINIT(const double inf);
27  inline double getINFINIT() const {return INFINIT;}
28 
30  virtual void setEPS(const double eps);
32  inline double getEPS() const {return EPS;}
33 
35  virtual void setEPS_COEFF(const double eps_c);
37  inline double getEPS_COEFF() const {return EPS_COEFF;}
38 
40  virtual void setMAX_SUPPORT(const int max_s);
42  inline int getMAX_SUPPORT() const {return MAX_SUPPORT;}
44 
47  CglParam(const double inf = DBL_MAX, const double eps = 1e-6,
49  const double eps_c = 1e-5, const int max_s = COIN_INT_MAX);
50 
52  CglParam(const CglParam&);
53 
55  virtual CglParam* clone() const;
56 
58  CglParam& operator=(const CglParam &rhs);
59 
61  virtual ~CglParam();
63 
64 protected:
65 
66  // Protected member data
67 
71  // Value for infinity. Default: DBL_MAX.
72  double INFINIT;
73 
74  // EPSILON for double comparisons. Default: 1e-6.
75  double EPS;
76 
77  // Returned cuts do not have coefficients with absolute value smaller
78  // than EPS_COEFF. Default: 1e-5.
79  double EPS_COEFF;
80 
85 
86 };
87 
88 #endif