From 938fef4a37a7b7c61b4b6ff74cb4cfd2f100c427 Mon Sep 17 00:00:00 2001 From: Georgey Date: Wed, 5 Jul 2017 11:40:43 +0530 Subject: Added linux shared libraries and header files for int and ecos functions --- thirdparty/linux/include/coin/BonBabInfos.hpp | 57 +++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 thirdparty/linux/include/coin/BonBabInfos.hpp (limited to 'thirdparty/linux/include/coin/BonBabInfos.hpp') diff --git a/thirdparty/linux/include/coin/BonBabInfos.hpp b/thirdparty/linux/include/coin/BonBabInfos.hpp new file mode 100644 index 0000000..4ff4b37 --- /dev/null +++ b/thirdparty/linux/include/coin/BonBabInfos.hpp @@ -0,0 +1,57 @@ +// (C) Copyright International Business Machines Corporation 2007 +// All Rights Reserved. +// This code is published under the Eclipse Public License. +// +// Authors : +// Pierre Bonami, International Business Machines Corporation +// +// Date : 04/23/2007 + +#ifndef BonBabInfos_H +#define BonBabInfos_H +#include +#include "BonAuxInfos.hpp" + +namespace Bonmin +{ + class Bab; + /** Bonmin class for passing info between components of branch-and-cuts.*/ + class BabInfo : public Bonmin::AuxInfo + { + public: + /** Default constructor.*/ + BabInfo(int type); + + /** Constructor from OsiBabSolver.*/ + BabInfo(const OsiBabSolver &other); + + /** Copy constructor.*/ + BabInfo(const BabInfo &other); + + /** Destructor.*/ + virtual ~BabInfo(); + + /** Virtual copy constructor.*/ + virtual OsiAuxInfo * clone() const; + + /** Set pointer to the branch-and-bound algorithm (to access CbcModel).*/ + void setBabPtr(Bab * babPtr) + { + babPtr_ = babPtr; + } + + /** Pointer to the branch-and-bound algorithm (to access CbcModel).*/ + Bab * babPtr() + { + return babPtr_; + } + + bool hasSolution() const{ + return bestSolution_ != NULL;} + protected: + /** Pointer to branch-and-bound algorithm.*/ + Bab * babPtr_; + }; +}/* End namespace.*/ + +#endif -- cgit