Loading...
Searching...
No Matches
CglParam.hpp
Go to the documentation of this file.
// Name: CglParam.hpp
// Author: Francois Margot
// Tepper School of Business
// Carnegie Mellon University, Pittsburgh, PA 15213
// email: fmargot@andrew.cmu.edu
// Date: 11/24/06
//
// $Id$
//
// This code is licensed under the terms of the Eclipse Public License (EPL).
//-----------------------------------------------------------------------------
// Copyright (C) 2006, Francois Margot and others. All Rights Reserved.
#ifndef CglParam_H
#define CglParam_H
#include "CglConfig.h"
#include "CoinFinite.hpp"
class CglParam {
public:
virtual void setINFINIT(const double inf);
inline double getINFINIT() const { return INFINIT; }
virtual void setEPS(const double eps);
inline double getEPS() const { return EPS; }
virtual void setEPS_COEFF(const double eps_c);
inline double getEPS_COEFF() const { return EPS_COEFF; }
virtual void setMAX_SUPPORT(const int max_s);
inline int getMAX_SUPPORT() const { return MAX_SUPPORT; }
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);
CglParam(const CglParam &);
virtual CglParam *clone() const;
CglParam &operator=(const CglParam &rhs);
virtual ~CglParam();
protected:
// Protected member data
// Value for infinity. Default: COIN_DBL_MAX.
double INFINIT;
// EPSILON for double comparisons. Default: 1e-6.
double EPS;
// Returned cuts do not have coefficients with absolute value smaller
// than EPS_COEFF. Default: 1e-5.
double EPS_COEFF;
int MAX_SUPPORT;
};
#endif
/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
*/
CglConfig.h
CglParam::EPS_COEFF
double EPS_COEFF
Definition CglParam.hpp:82
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:86
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:31
CglParam::INFINIT
double INFINIT
Definition CglParam.hpp:75
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:36
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:46
CglParam::getEPS_COEFF
double getEPS_COEFF() const
Get value of EPS_COEFF.
Definition CglParam.hpp:41
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:78
CglParam::operator=
CglParam & operator=(const CglParam &rhs)
Assignment operator.