Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
opt
build
coinor-cbc
coinor-cbc-2.5.0
Cbc
examples
CbcSolver2.hpp
Go to the documentation of this file.
1
// Copyright (C) 2005, International Business Machines
2
// Corporation and others. All Rights Reserved.
3
4
#ifndef CbcSolver2_H
5
#define CbcSolver2_H
6
7
#include "OsiClpSolverInterface.hpp"
8
class
CbcModel
;
9
//#############################################################################
10
20
class
CbcSolver2
:
public
OsiClpSolverInterface {
21
22
public
:
23
//---------------------------------------------------------------------------
26
virtual
void
initialSolve
();
28
30
virtual
void
resolve
();
31
33
34
37
CbcSolver2
();
39
41
virtual
OsiSolverInterface *
clone
(
bool
CopyData=
true
)
const
;
42
44
CbcSolver2
(
const
CbcSolver2
&);
45
47
CbcSolver2
&
operator=
(
const
CbcSolver2
& rhs);
48
50
virtual
~CbcSolver2
();
51
53
54
57
void
initialize
(
CbcModel
* model,
const
char
* keep);
60
inline
const
int
*
when
()
const
61
{
return
node_
;}
63
inline
int
getMemory
()
const
64
{
return
memory_
;}
66
inline
int
getCount
()
const
67
{
return
count_
;}
69
inline
void
setMemory
(
int
value)
70
{
memory_
=value;}
72
inline
void
setAlgorithm
(
int
value)
73
{
algorithm_
=value;}
75
inline
int
getAlgorithm
()
const
76
{
return
algorithm_
;}
78
inline
void
setStrategy
(
int
value)
79
{
strategy_
=value;}
81
inline
int
getStrategy
()
const
82
{
return
strategy_
;}
84
85
//---------------------------------------------------------------------------
86
87
private
:
88
91
int
*
node_
;
94
int
*
howMany_
;
96
CbcModel
*
model_
;
98
int
count_
;
100
int
memory_
;
102
int
algorithm_
;
104
int
strategy_
;
106
};
107
108
#endif
Generated on Tue Mar 1 2016 22:38:11 by
1.8.4