Cbc
2.10.13
Toggle main menu visibility
Loading...
Searching...
No Matches
Cbc
examples
CbcSolverLongThin.hpp
Go to the documentation of this file.
1
// $Id$
2
// Copyright (C) 2004, 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 CbcSolverLongThin_H
7
#define CbcSolverLongThin_H
8
9
#include "OsiClpSolverInterface.hpp"
10
class
CbcModel
;
11
//#############################################################################
12
17
18
class
CbcSolverLongThin
:
public
OsiClpSolverInterface {
19
20
public
:
21
//---------------------------------------------------------------------------
24
25
virtual
void
initialSolve
();
26
28
virtual
void
resolve
();
29
31
34
35
CbcSolverLongThin
();
36
38
virtual
OsiSolverInterface *
clone
(
bool
CopyData =
true
)
const
;
39
41
CbcSolverLongThin
(
const
CbcSolverLongThin
&);
42
44
CbcSolverLongThin
&
operator=
(
const
CbcSolverLongThin
&rhs);
45
47
virtual
~CbcSolverLongThin
();
48
50
53
54
void
initialize
(
CbcModel
*
model
,
const
char
*keep);
56
inline
const
int
*
when
()
const
57
{
58
return
node_
;
59
}
60
61
inline
int
getMemory
()
const
62
{
63
return
memory_
;
64
}
65
66
inline
int
getCount
()
const
67
{
68
return
count_
;
69
}
70
71
inline
void
setMemory
(
int
value)
72
{
73
memory_
= value;
74
}
75
76
inline
void
setBelieveInfeasible
(
bool
yesNo)
77
{
78
believeInfeasible_
= yesNo;
79
}
80
81
inline
void
setAlgorithm
(
int
value)
82
{
83
algorithm_
= value;
84
}
85
86
inline
void
setNested
(
double
value)
87
{
88
nestedSearch_
= value;
89
}
90
91
inline
int
getAlgorithm
()
const
92
{
93
return
algorithm_
;
94
}
95
96
inline
double
getNested
()
const
97
{
98
return
nestedSearch_
;
99
}
100
101
102
//---------------------------------------------------------------------------
103
104
private
:
107
108
double
nestedSearch_
;
110
int
*
node_
;
112
int
*
howMany_
;
114
CbcModel
*
model_
;
116
int
count_
;
118
int
memory_
;
120
bool
believeInfeasible_
;
122
bool
algorithm_
;
124
};
125
126
#endif
model
CbcModel * model() const
Return model.
Definition
CbcObject.hpp:252
CbcModel
Simple Branch and bound class.
Definition
CbcModel.hpp:100
CbcSolverLongThin::operator=
CbcSolverLongThin & operator=(const CbcSolverLongThin &rhs)
Assignment operator.
CbcSolverLongThin::setMemory
void setMemory(int value)
Set memory (i.e. how recent use should be).
Definition
CbcSolverLongThin.hpp:71
CbcSolverLongThin::getNested
double getNested() const
Do nested search if this fraction fixed.
Definition
CbcSolverLongThin.hpp:96
CbcSolverLongThin::clone
virtual OsiSolverInterface * clone(bool CopyData=true) const
Clone.
CbcSolverLongThin::getCount
int getCount() const
Get current count.
Definition
CbcSolverLongThin.hpp:66
CbcSolverLongThin::setBelieveInfeasible
void setBelieveInfeasible(bool yesNo)
Say whether to believe infeasible.
Definition
CbcSolverLongThin.hpp:76
CbcSolverLongThin::howMany_
int * howMany_
How many times in problem.
Definition
CbcSolverLongThin.hpp:112
CbcSolverLongThin::believeInfeasible_
bool believeInfeasible_
If infeasible on subset means infeasible.
Definition
CbcSolverLongThin.hpp:120
CbcSolverLongThin::nestedSearch_
double nestedSearch_
Do nested search if this fraction fixed.
Definition
CbcSolverLongThin.hpp:108
CbcSolverLongThin::model_
CbcModel * model_
Pointer back to model.
Definition
CbcSolverLongThin.hpp:114
CbcSolverLongThin::CbcSolverLongThin
CbcSolverLongThin()
Default Constructor.
CbcSolverLongThin::CbcSolverLongThin
CbcSolverLongThin(const CbcSolverLongThin &)
Copy constructor.
CbcSolverLongThin::memory_
int memory_
How recently it must have been used.
Definition
CbcSolverLongThin.hpp:118
CbcSolverLongThin::algorithm_
bool algorithm_
If 0 nothing, 1 compress and fix, 2 long thin.
Definition
CbcSolverLongThin.hpp:122
CbcSolverLongThin::setAlgorithm
void setAlgorithm(int value)
Say whether to just count usage.
Definition
CbcSolverLongThin.hpp:81
CbcSolverLongThin::count_
int count_
Counter.
Definition
CbcSolverLongThin.hpp:116
CbcSolverLongThin::getMemory
int getMemory() const
Get memory (i.e. how recent use should be).
Definition
CbcSolverLongThin.hpp:61
CbcSolverLongThin::initialize
void initialize(CbcModel *model, const char *keep)
Setup arrays - ones in keep will always be in.
CbcSolverLongThin::getAlgorithm
int getAlgorithm() const
Say whether to just count usage.
Definition
CbcSolverLongThin.hpp:91
CbcSolverLongThin::when
const int * when() const
get which ones have been used
Definition
CbcSolverLongThin.hpp:56
CbcSolverLongThin::initialSolve
virtual void initialSolve()
Solve initial LP relaxation.
CbcSolverLongThin::~CbcSolverLongThin
virtual ~CbcSolverLongThin()
Destructor.
CbcSolverLongThin::setNested
void setNested(double value)
Do nested search if this fraction fixed.
Definition
CbcSolverLongThin.hpp:86
CbcSolverLongThin::resolve
virtual void resolve()
Resolve an LP relaxation after problem modification.
CbcSolverLongThin::node_
int * node_
Node number when variable last in problem.
Definition
CbcSolverLongThin.hpp:110
Generated by
1.17.0