coin-Cgl
Main Page
Namespaces
Classes
Files
File List
File Members
opt
build
coinor-cgl
coinor-cgl-0.55.0
Cgl
src
CglAllDifferent
CglAllDifferent.hpp
Go to the documentation of this file.
1
// Copyright (C) 2005, International Business Machines
2
// Corporation and others. All Rights Reserved.
3
#ifndef CglAllDifferent_H
4
#define CglAllDifferent_H
5
6
#include <string>
7
8
#include "
CglCutGenerator.hpp
"
9
18
class
CglAllDifferent
:
public
CglCutGenerator
{
19
20
public
:
21
22
27
virtual
void
generateCuts
(
const
OsiSolverInterface & si, OsiCuts & cs,
28
const
CglTreeInfo
info =
CglTreeInfo
())
const
;
30
31
34
CglAllDifferent
();
36
38
CglAllDifferent
(
int
numberSets,
const
int
* starts,
const
int
* which);
39
41
CglAllDifferent
(
42
const
CglAllDifferent
&);
43
45
virtual
CglCutGenerator
*
clone
()
const
;
46
48
CglAllDifferent
&
49
operator=
(
50
const
CglAllDifferent
& rhs);
51
53
virtual
54
~CglAllDifferent
();
56
virtual
std::string
generateCpp
( FILE * fp);
57
59
virtual
void
refreshSolver
(OsiSolverInterface * solver);
67
virtual
bool
mayGenerateRowCutsInTree
()
const
68
{
return
false
;}
70
72
inline
void
setLogLevel
(
int
value)
74
{
logLevel_
=value;}
76
inline
int
getLogLevel
()
const
77
{
return
logLevel_
;}
79
inline
void
setMaxLook
(
int
value)
80
{
maxLook_
=value;}
82
inline
int
getMaxLook
()
const
83
{
return
maxLook_
;}
85
86
private
:
87
88
// Private member methods
91
92
93
// Private member data
94
97
int
numberSets_
;
100
int
numberDifferent_
;
102
int
maxLook_
;
104
int
logLevel_
;
106
int
*
start_
;
108
int
*
which_
;
110
int
*
originalWhich_
;
112
};
113
#endif
Generated on Tue Mar 1 2016 22:35:38 for coin-Cgl by
1.8.4