Cgl 0.60.3
Loading...
Searching...
No Matches
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$
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"
22class CglParam {
23
24public:
27
29 virtual void setINFINIT(const double inf);
31 inline double getINFINIT() const { return INFINIT; }
32
34 virtual void setEPS(const double eps);
36 inline double getEPS() const { return EPS; }
37
39 virtual void setEPS_COEFF(const double eps_c);
41 inline double getEPS_COEFF() const { return EPS_COEFF; }
42
44 virtual void setMAX_SUPPORT(const int max_s);
46 inline int getMAX_SUPPORT() const { return MAX_SUPPORT; }
48
52 CglParam(const double inf = COIN_DBL_MAX, const double eps = 1e-6,
53 const double eps_c = 1e-5, const int max_s = COIN_INT_MAX);
54
57
59 virtual CglParam *clone() const;
60
63
65 virtual ~CglParam();
67
68protected:
69 // Protected member data
70
74 // Value for infinity. Default: COIN_DBL_MAX.
75 double INFINIT;
76
77 // EPSILON for double comparisons. Default: 1e-6.
78 double EPS;
79
80 // Returned cuts do not have coefficients with absolute value smaller
81 // than EPS_COEFF. Default: 1e-5.
82 double EPS_COEFF;
83
88};
89
90#endif
91
92/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
93*/
Class collecting parameters for all cut generators.
Definition: CglParam.hpp:22
double EPS_COEFF
Definition: CglParam.hpp:82
virtual void setINFINIT(const double inf)
Set INFINIT.
int MAX_SUPPORT
Maximum number of non zero coefficients in a generated cut; Default: COIN_INT_MAX.
Definition: CglParam.hpp:86
virtual void setEPS_COEFF(const double eps_c)
Set EPS_COEFF.
double getINFINIT() const
Get value of INFINIT.
Definition: CglParam.hpp:31
double INFINIT
Definition: CglParam.hpp:75
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.
CglParam(const CglParam &)
Copy constructor.
double getEPS() const
Get value of EPS.
Definition: CglParam.hpp:36
virtual void setEPS(const double eps)
Set EPS.
virtual ~CglParam()
Destructor.
int getMAX_SUPPORT() const
Get value of MAX_SUPPORT.
Definition: CglParam.hpp:46
double getEPS_COEFF() const
Get value of EPS_COEFF.
Definition: CglParam.hpp:41
virtual CglParam * clone() const
Clone.
virtual void setMAX_SUPPORT(const int max_s)
Set MAX_SUPPORT.
double EPS
Definition: CglParam.hpp:78
CglParam & operator=(const CglParam &rhs)
Assignment operator.