Cbc  2.10.10
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CbcFeasibilityBase.hpp
Go to the documentation of this file.
1 /* $Id$ */
2 // Copyright (C) 2005, International Business Machines
3 // Corporation and others. All Rights Reserved.
4 // This code is licensed under the terms of the Eclipse Public License (EPL).
5 
6 #ifndef CbcFeasibilityBase_H
7 #define CbcFeasibilityBase_H
8 
9 //#############################################################################
10 /* There are cases where the user wants to control how CBC sees the problems feasibility.
11  The user may want to examine the problem and say :
12  a) The default looks OK
13  b) Pretend this problem is Integer feasible
14  c) Pretend this problem is infeasible even though it looks feasible
15 
16  This simple class allows user to do that.
17 
18 */
19 
20 class CbcModel;
22 public:
23  // Default Constructor
25 
35  virtual int feasible(CbcModel *, int)
36  {
37  return 0;
38  }
39 
40  virtual ~CbcFeasibilityBase() {}
41 
42  // Copy constructor
44 
45  // Assignment operator
47  {
48  return *this;
49  }
50 
52  virtual CbcFeasibilityBase *clone() const
53  {
54  return new CbcFeasibilityBase(*this);
55  }
56 };
57 #endif
58 
59 /* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
60 */
CbcFeasibilityBase::CbcFeasibilityBase
CbcFeasibilityBase()
Definition: CbcFeasibilityBase.hpp:24
CbcFeasibilityBase::clone
virtual CbcFeasibilityBase * clone() const
Clone.
Definition: CbcFeasibilityBase.hpp:52
CbcFeasibilityBase::feasible
virtual int feasible(CbcModel *, int)
On input mode: 0 - called after a solve but before any cuts -1 - called after strong branching Return...
Definition: CbcFeasibilityBase.hpp:35
CbcFeasibilityBase::CbcFeasibilityBase
CbcFeasibilityBase(const CbcFeasibilityBase &)
Definition: CbcFeasibilityBase.hpp:43
CbcModel
Simple Branch and bound class.
Definition: CbcModel.hpp:100
CbcFeasibilityBase::~CbcFeasibilityBase
virtual ~CbcFeasibilityBase()
Definition: CbcFeasibilityBase.hpp:40
CbcFeasibilityBase
Definition: CbcFeasibilityBase.hpp:21
CbcFeasibilityBase::operator=
CbcFeasibilityBase & operator=(const CbcFeasibilityBase &)
Definition: CbcFeasibilityBase.hpp:46