Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
opt
build
coinor-cbc
coinor-cbc-2.5.0
debian
tmp
usr
include
coin
CbcFeasibilityBase.hpp
Go to the documentation of this file.
1
/* $Id: CbcFeasibilityBase.hpp 1432 2010-02-07 19:33:53Z bjarni $ */
2
// Copyright (C) 2005, International Business Machines
3
// Corporation and others. All Rights Reserved.
4
#ifndef CbcFeasibilityBase_H
5
#define CbcFeasibilityBase_H
6
7
8
//#############################################################################
9
/* There are cases where the user wants to control how CBC sees the problems feasibility.
10
The user may want to examine the problem and say :
11
a) The default looks OK
12
b) Pretend this problem is Integer feasible
13
c) Pretend this problem is infeasible even though it looks feasible
14
15
This simple class allows user to do that.
16
17
*/
18
19
class
CbcModel
;
20
class
CbcFeasibilityBase
{
21
public
:
22
// Default Constructor
23
CbcFeasibilityBase
() {}
24
34
virtual
int
feasible
(
CbcModel
* ,
int
) {
35
return
0;
36
}
37
38
virtual
~CbcFeasibilityBase
() {}
39
40
// Copy constructor
41
CbcFeasibilityBase
(
const
CbcFeasibilityBase
& ) {}
42
43
// Assignment operator
44
CbcFeasibilityBase
&
operator=
(
const
CbcFeasibilityBase
& ) {
45
return
*
this
;
46
}
47
49
virtual
CbcFeasibilityBase
*
clone
()
const
{
50
return
new
CbcFeasibilityBase
(*
this
);
51
}
52
};
53
#endif
54
Generated on Tue Mar 1 2016 22:38:12 by
1.8.4