Cgl 0.60.2

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
opbdp_solve.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
setAtOne
void setAtOne(int i, unsigned int *array, bool trueFalse)
Definition: opbdp_solve.hpp:40
OsiSolverInterface
Abstract Base Class for describing an interface to a solver.
Definition: OsiSolverInterface.hpp:61
solveOpbdp
int solveOpbdp(OsiSolverInterface *model)
Solve pure 0-1 with integral coefficients etc (or can be made by scaling) using opdbp The solution wi...
atOne
bool atOne(int i, unsigned int *array)
Definition: opbdp_solve.hpp:37
OsiSolverInterface.hpp