Cbc  2.10.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CbcFeasibilityBase.hpp
Go to the documentation of this file.
1 /* $Id: CbcFeasibilityBase.hpp 2465 2019-01-03 19:26:52Z unxusr $ */
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 */
virtual CbcFeasibilityBase * clone() const
Clone.
virtual int feasible(CbcModel *, int)
On input mode: 0 - called after a solve but before any cuts -1 - called after strong branching Return...
CbcFeasibilityBase(const CbcFeasibilityBase &)
CbcFeasibilityBase & operator=(const CbcFeasibilityBase &)
Simple Branch and bound class.
Definition: CbcModel.hpp:100