Cbc  2.9.9
 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 1573 2011-01-05 01:12:36Z lou $ */
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 //#############################################################################
11 /* There are cases where the user wants to control how CBC sees the problems feasibility.
12  The user may want to examine the problem and say :
13  a) The default looks OK
14  b) Pretend this problem is Integer feasible
15  c) Pretend this problem is infeasible even though it looks feasible
16 
17  This simple class allows user to do that.
18 
19 */
20 
21 class CbcModel;
23 public:
24  // Default Constructor
26 
36  virtual int feasible(CbcModel * , int ) {
37  return 0;
38  }
39 
40  virtual ~CbcFeasibilityBase() {}
41 
42  // Copy constructor
44 
45  // Assignment operator
47  return *this;
48  }
49 
51  virtual CbcFeasibilityBase * clone() const {
52  return new CbcFeasibilityBase(*this);
53  }
54 };
55 #endif
56 
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:101