Main Page
Related Pages
Classes
Files
File List
File Members
opt
build
coinor-osi
coinor-osi-0.103.0
Osi
src
OsiOpbdpSolve.hpp
Go to the documentation of this file.
1
// Copyright (C) 2006, International Business Machines
2
// Corporation and others. All Rights Reserved.
3
#ifndef OsiOpbdpSolve_H
4
#define OsiOpbdpSolve_H
5
6
#include <string>
7
8
#include "
OsiSolverInterface.hpp
"
9
14
int
solveOpbdp
(
OsiSolverInterface
* model);
35
unsigned
int
**
solveOpbdp
(
const
OsiSolverInterface
* model,
int
& numberFound);
36
37
inline
bool
atOne
(
int
i,
unsigned
int
* array) {
38
return
((array[i>>5]>>(i&31))&1)!=0;
39
}
40
inline
void
setAtOne
(
int
i,
unsigned
int
* array,
bool
trueFalse) {
41
unsigned
int
& value = array[i>>5];
42
int
bit = i&31;
43
if
(trueFalse)
44
value |= (1<<bit);
45
else
46
value &= ~(1<<bit);
47
}
48
#endif
Generated on Tue Mar 1 2016 22:33:32 by
1.8.4