Bonmin 1.8.9
Loading...
Searching...
No Matches
BonBabInfos.hpp
Go to the documentation of this file.
1// (C) Copyright International Business Machines Corporation 2007
2// All Rights Reserved.
3// This code is published under the Eclipse Public License.
4//
5// Authors :
6// Pierre Bonami, International Business Machines Corporation
7//
8// Date : 04/23/2007
9
10#ifndef BonBabInfos_H
11#define BonBabInfos_H
12#include <stdlib.h>
13#include "BonAuxInfos.hpp"
14
15namespace Bonmin
16{
17 class Bab;
19 class BabInfo : public Bonmin::AuxInfo
20 {
21 public:
23 BabInfo(int type);
24
26 BabInfo(const OsiBabSolver &other);
27
29 BabInfo(const BabInfo &other);
30
32 virtual ~BabInfo();
33
35 virtual OsiAuxInfo * clone() const;
36
39 {
41 }
42
45 {
46 return babPtr_;
47 }
48
49 bool hasSolution() const{
50 return bestSolution_ != NULL;}
51 protected:
54 };
55}/* End namespace.*/
56
57#endif
Bonmin class for passing info between components of branch-and-cuts.
Bonmin class for passing info between components of branch-and-cuts.
BabInfo(const OsiBabSolver &other)
Constructor from OsiBabSolver.
virtual ~BabInfo()
Destructor.
BabInfo(const BabInfo &other)
Copy constructor.
Bab * babPtr()
Pointer to the branch-and-bound algorithm (to access CbcModel).
Bab * babPtr_
Pointer to branch-and-bound algorithm.
BabInfo(int type)
Default constructor.
void setBabPtr(Bab *babPtr)
Set pointer to the branch-and-bound algorithm (to access CbcModel).
virtual OsiAuxInfo * clone() const
Virtual copy constructor.
bool hasSolution() const
double * bestSolution_
(C) Copyright International Business Machines Corporation 2007