Cbc 2.10.12
Loading...
Searching...
No Matches
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
20class CbcModel;
22public:
23 // Default Constructor
25
35 virtual int feasible(CbcModel *, int)
36 {
37 return 0;
38 }
39
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(const CbcFeasibilityBase &)
virtual int feasible(CbcModel *, int)
On input mode: 0 - called after a solve but before any cuts -1 - called after strong branching Return...
virtual CbcFeasibilityBase * clone() const
Clone.
CbcFeasibilityBase & operator=(const CbcFeasibilityBase &)
Simple Branch and bound class.
Definition CbcModel.hpp:100