Bonmin  1.8.8
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 
15 namespace 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  {
40  babPtr_ = babPtr;
41  }
42 
44  Bab * babPtr()
45  {
46  return babPtr_;
47  }
48 
49  bool hasSolution() const{
50  return bestSolution_ != NULL;}
51  protected:
54  };
55 }/* End namespace.*/
56 
57 #endif
virtual OsiAuxInfo * clone() const
Virtual copy constructor.
virtual ~BabInfo()
Destructor.
BabInfo(int type)
Default constructor.
Bab * babPtr_
Pointer to branch-and-bound algorithm.
Definition: BonBabInfos.hpp:53
bool hasSolution() const
Definition: BonBabInfos.hpp:49
Bab * babPtr()
Pointer to the branch-and-bound algorithm (to access CbcModel).
Definition: BonBabInfos.hpp:44
void setBabPtr(Bab *babPtr)
Set pointer to the branch-and-bound algorithm (to access CbcModel).
Definition: BonBabInfos.hpp:38
Bonmin class for passing info between components of branch-and-cuts.
Definition: BonAuxInfos.hpp:23
Bonmin class for passing info between components of branch-and-cuts.
Definition: BonBabInfos.hpp:19