summaryrefslogtreecommitdiff
path: root/thirdparty/linux/include/coin/BonBabInfos.hpp
diff options
context:
space:
mode:
authorGeorgey2017-07-05 11:40:43 +0530
committerGeorgey2017-07-05 11:40:43 +0530
commit938fef4a37a7b7c61b4b6ff74cb4cfd2f100c427 (patch)
treeb343c0ee5609433c80e0de1db8b6886c9126dc2d /thirdparty/linux/include/coin/BonBabInfos.hpp
parent5b72577efe080c5294b32d804e4d26351fef30bc (diff)
downloadFOSSEE-Optimization-toolbox-938fef4a37a7b7c61b4b6ff74cb4cfd2f100c427.tar.gz
FOSSEE-Optimization-toolbox-938fef4a37a7b7c61b4b6ff74cb4cfd2f100c427.tar.bz2
FOSSEE-Optimization-toolbox-938fef4a37a7b7c61b4b6ff74cb4cfd2f100c427.zip
Added linux shared libraries and header files for int and ecos functions
Diffstat (limited to 'thirdparty/linux/include/coin/BonBabInfos.hpp')
-rw-r--r--thirdparty/linux/include/coin/BonBabInfos.hpp57
1 files changed, 57 insertions, 0 deletions
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 <stdlib.h>
+#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