Cbc
2.10.10
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
d
l
p
r
s
Functions
a
d
l
p
r
s
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Typedefs
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
Related Functions
Files
File List
File Members
All
a
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
Functions
a
c
d
e
f
g
o
r
s
w
Variables
Enumerations
Enumerator
c
d
f
g
l
n
o
s
Macros
c
h
i
m
n
o
p
s
t
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Cbc
src
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
;
21
class
CbcFeasibilityBase
{
22
public
:
23
// Default Constructor
24
CbcFeasibilityBase
() {}
25
35
virtual
int
feasible
(
CbcModel
*,
int
)
36
{
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
{
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
Generated by
1.8.17