Cgl
0.60.10
Toggle main menu visibility
Loading...
Searching...
No Matches
Cgl
src
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"
21
22
// soplex lets a macro named EPS leak into the global namespace
23
#undef EPS
24
25
class
CglParam
{
26
27
public
:
30
32
virtual
void
setINFINIT
(
const
double
inf);
34
inline
double
getINFINIT
()
const
{
return
INFINIT
; }
35
37
virtual
void
setEPS
(
const
double
eps);
39
inline
double
getEPS
()
const
{
return
EPS
; }
40
42
virtual
void
setEPS_COEFF
(
const
double
eps_c);
44
inline
double
getEPS_COEFF
()
const
{
return
EPS_COEFF
; }
45
47
virtual
void
setMAX_SUPPORT
(
const
int
max_s);
49
inline
int
getMAX_SUPPORT
()
const
{
return
MAX_SUPPORT
; }
51
54
55
CglParam
(
const
double
inf = COIN_DBL_MAX,
const
double
eps = 1e-6,
56
const
double
eps_c = 1e-5,
const
int
max_s = COIN_INT_MAX);
57
59
CglParam
(
const
CglParam
&);
60
62
virtual
CglParam
*
clone
()
const
;
63
65
CglParam
&
operator=
(
const
CglParam
&rhs);
66
68
virtual
~CglParam
();
70
71
protected
:
72
// Protected member data
73
75
77
// Value for infinity. Default: COIN_DBL_MAX.
78
double
INFINIT
;
79
80
// EPSILON for double comparisons. Default: 1e-6.
81
double
EPS
;
82
83
// Returned cuts do not have coefficients with absolute value smaller
84
// than EPS_COEFF. Default: 1e-5.
85
double
EPS_COEFF
;
86
89
int
MAX_SUPPORT
;
91
};
92
93
#endif
94
95
/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
96
*/
CglConfig.h
CglParam::EPS_COEFF
double EPS_COEFF
Definition
CglParam.hpp:85
CglParam::setINFINIT
virtual void setINFINIT(const double inf)
Set INFINIT.
CglParam::MAX_SUPPORT
int MAX_SUPPORT
Maximum number of non zero coefficients in a generated cut; Default: COIN_INT_MAX.
Definition
CglParam.hpp:89
CglParam::setEPS_COEFF
virtual void setEPS_COEFF(const double eps_c)
Set EPS_COEFF.
CglParam::getINFINIT
double getINFINIT() const
Get value of INFINIT.
Definition
CglParam.hpp:34
CglParam::INFINIT
double INFINIT
Definition
CglParam.hpp:78
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.
CglParam::CglParam
CglParam(const CglParam &)
Copy constructor.
CglParam::getEPS
double getEPS() const
Get value of EPS.
Definition
CglParam.hpp:39
CglParam::setEPS
virtual void setEPS(const double eps)
Set EPS.
CglParam::~CglParam
virtual ~CglParam()
Destructor.
CglParam::getMAX_SUPPORT
int getMAX_SUPPORT() const
Get value of MAX_SUPPORT.
Definition
CglParam.hpp:49
CglParam::getEPS_COEFF
double getEPS_COEFF() const
Get value of EPS_COEFF.
Definition
CglParam.hpp:44
CglParam::clone
virtual CglParam * clone() const
Clone.
CglParam::setMAX_SUPPORT
virtual void setMAX_SUPPORT(const int max_s)
Set MAX_SUPPORT.
CglParam::EPS
double EPS
Definition
CglParam.hpp:81
CglParam::operator=
CglParam & operator=(const CglParam &rhs)
Assignment operator.
Generated by
1.17.0