Cbc
2.8.12
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
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
;
22
class
CbcFeasibilityBase
{
23
public
:
24
// Default Constructor
25
CbcFeasibilityBase
() {}
26
36
virtual
int
feasible
(
CbcModel
* ,
int
) {
37
return
0;
38
}
39
40
virtual
~CbcFeasibilityBase
() {}
41
42
// Copy constructor
43
CbcFeasibilityBase
(
const
CbcFeasibilityBase
& ) {}
44
45
// Assignment operator
46
CbcFeasibilityBase
&
operator=
(
const
CbcFeasibilityBase
& ) {
47
return
*
this
;
48
}
49
51
virtual
CbcFeasibilityBase
*
clone
()
const
{
52
return
new
CbcFeasibilityBase
(*
this
);
53
}
54
};
55
#endif
56
CbcFeasibilityBase::CbcFeasibilityBase
CbcFeasibilityBase()
Definition:
CbcFeasibilityBase.hpp:25
CbcFeasibilityBase::clone
virtual CbcFeasibilityBase * clone() const
Clone.
Definition:
CbcFeasibilityBase.hpp:51
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:36
CbcFeasibilityBase::~CbcFeasibilityBase
virtual ~CbcFeasibilityBase()
Definition:
CbcFeasibilityBase.hpp:40
CbcFeasibilityBase::CbcFeasibilityBase
CbcFeasibilityBase(const CbcFeasibilityBase &)
Definition:
CbcFeasibilityBase.hpp:43
CbcFeasibilityBase::operator=
CbcFeasibilityBase & operator=(const CbcFeasibilityBase &)
Definition:
CbcFeasibilityBase.hpp:46
CbcFeasibilityBase
Definition:
CbcFeasibilityBase.hpp:22
CbcModel
Simple Branch and bound class.
Definition:
CbcModel.hpp:100
Generated on Sun Oct 19 2014 01:06:23 for Cbc by
1.8.6