Cgl 0.59.7

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 // $Id: CglParam.hpp 1122 2013-04-06 20:39:53Z stefan $
9 //
10 // This code is licensed under the terms of the Eclipse Public License (EPL).
11 //-----------------------------------------------------------------------------
12 // Copyright (C) 2006, Francois Margot and others. All Rights Reserved.
13
14 #ifndef CglParam_H
15 #define CglParam_H
16 #include "CglConfig.h"
17 #include "CoinFinite.hpp"
22 class CglParam {
23
24 public:
25
28
30 virtual void setINFINIT(const double inf);
32 inline double getINFINIT() const {return INFINIT;}
33
35 virtual void setEPS(const double eps);
37 inline double getEPS() const {return EPS;}
38
40 virtual void setEPS_COEFF(const double eps_c);
42 inline double getEPS_COEFF() const {return EPS_COEFF;}
43
45 virtual void setMAX_SUPPORT(const int max_s);
47 inline int getMAX_SUPPORT() const {return MAX_SUPPORT;}
49
52 CglParam(const double inf = COIN_DBL_MAX, const double eps = 1e-6,
54 const double eps_c = 1e-5, const int max_s = COIN_INT_MAX);
55
57 CglParam(const CglParam&);
58
60 virtual CglParam* clone() const;
61
63 CglParam& operator=(const CglParam &rhs);
64
66 virtual ~CglParam();
68
69 protected:
70
71 // Protected member data
72
76 // Value for infinity. Default: COIN_DBL_MAX.
77 double INFINIT;
78
79 // EPSILON for double comparisons. Default: 1e-6.
80 double EPS;
81
82 // Returned cuts do not have coefficients with absolute value smaller
83 // than EPS_COEFF. Default: 1e-5.
84 double EPS_COEFF;
85
88 int MAX_SUPPORT;
90
91 };
92
93 #endif
CglParam::operator=
CglParam & operator=(const CglParam &rhs)
Assignment operator.
CglParam::INFINIT
double INFINIT
Definition: CglParam.hpp:77
CglParam::getEPS_COEFF
double getEPS_COEFF() const
Get value of EPS_COEFF.
Definition: CglParam.hpp:42
CglParam::EPS_COEFF
double EPS_COEFF
Definition: CglParam.hpp:84
CglParam::setEPS
virtual void setEPS(const double eps)
Set EPS.
CglParam::setEPS_COEFF
virtual void setEPS_COEFF(const double eps_c)
Set EPS_COEFF.
CglConfig.h
CoinFinite.hpp
CglParam::MAX_SUPPORT
int MAX_SUPPORT
Maximum number of non zero coefficients in a generated cut; Default: COIN_INT_MAX.
Definition: CglParam.hpp:88
CglParam::setMAX_SUPPORT
virtual void setMAX_SUPPORT(const int max_s)
Set MAX_SUPPORT.
CglParam::getINFINIT
double getINFINIT() const
Get value of INFINIT.
Definition: CglParam.hpp:32
CglParam
Class collecting parameters for all cut generators.
Definition: CglParam.hpp:22
CglParam::EPS
double EPS
Definition: CglParam.hpp:80
CglParam::~CglParam
virtual ~CglParam()
Destructor.
COIN_INT_MAX
const int COIN_INT_MAX
Definition: CoinFinite.hpp:19
CglParam::getEPS
double getEPS() const
Get value of EPS.
Definition: CglParam.hpp:37
CglParam::CglParam
CglParam(const double inf=COIN_DBL_MAX, const double eps=1e-6, const double eps_c=1e-5, const int max_s=COIN_INT_MAX)
Default constructor.
COIN_DBL_MAX
const double COIN_DBL_MAX
Definition: CoinFinite.hpp:18
CglParam::clone
virtual CglParam * clone() const
Clone.
CglParam::getMAX_SUPPORT
int getMAX_SUPPORT() const
Get value of MAX_SUPPORT.
Definition: CglParam.hpp:47
CglParam::setINFINIT
virtual void setINFINIT(const double inf)
Set INFINIT.