Bonmin
1.7
|
00001 // (C) Copyright International Business Machines Corporation 2007 00002 // All Rights Reserved. 00003 // This code is published under the Common Public License. 00004 // 00005 // Authors : 00006 // Pierre Bonami, International Business Machines Corporation 00007 // 00008 // Date : 04/23/2007 00009 00010 #ifndef BonBabInfos_H 00011 #define BonBabInfos_H 00012 #include <stdlib.h> 00013 #include "BonAuxInfos.hpp" 00014 00015 namespace Bonmin 00016 { 00017 class Bab; 00019 class BabInfo : public Bonmin::AuxInfo 00020 { 00021 public: 00023 BabInfo(int type); 00024 00026 BabInfo(const OsiBabSolver &other); 00027 00029 BabInfo(const BabInfo &other); 00030 00032 virtual ~BabInfo(); 00033 00035 virtual OsiAuxInfo * clone() const; 00036 00038 void setBabPtr(Bab * babPtr) 00039 { 00040 babPtr_ = babPtr; 00041 } 00042 00044 Bab * babPtr() 00045 { 00046 return babPtr_; 00047 } 00048 00049 bool hasSolution() const{ 00050 return bestSolution_ != NULL;} 00051 protected: 00053 Bab * babPtr_; 00054 }; 00055 }/* End namespace.*/ 00056 00057 #endif