Dip
0.92.4
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
tmp
Dip-0.92.4
Cbc
src
CbcFeasibilityBase.hpp
Go to the documentation of this file.
1
/* $Id: CbcFeasibilityBase.hpp 2465 2019-01-03 19:26:52Z unxusr $ */
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::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
Definition:
CbcFeasibilityBase.hpp:21
CbcFeasibilityBase::operator=
CbcFeasibilityBase & operator=(const CbcFeasibilityBase &)
Definition:
CbcFeasibilityBase.hpp:46
CbcFeasibilityBase::clone
virtual CbcFeasibilityBase * clone() const
Clone.
Definition:
CbcFeasibilityBase.hpp:52
CbcFeasibilityBase::CbcFeasibilityBase
CbcFeasibilityBase(const CbcFeasibilityBase &)
Definition:
CbcFeasibilityBase.hpp:43
CbcFeasibilityBase::CbcFeasibilityBase
CbcFeasibilityBase()
Definition:
CbcFeasibilityBase.hpp:24
CbcFeasibilityBase::~CbcFeasibilityBase
virtual ~CbcFeasibilityBase()
Definition:
CbcFeasibilityBase.hpp:40
CbcModel
Simple Branch and bound class.
Definition:
CbcModel.hpp:100
Generated by
1.8.5