summaryrefslogtreecommitdiff
path: root/thirdparty/linux/include/coin/BonBabInfos.hpp
diff options
context:
space:
mode:
authorHarpreet2016-09-03 00:36:51 +0530
committerHarpreet2016-09-03 00:36:51 +0530
commita0d9443af147e949c1e6a01ac24749d12593ec5b (patch)
tree1a1955c5482ae608fd7f618b06f4ecc6a0d39a23 /thirdparty/linux/include/coin/BonBabInfos.hpp
parent4b64cf486f5c999fd8167758cae27839f3b50848 (diff)
downloadFOSSEE-Optim-toolbox-development-a0d9443af147e949c1e6a01ac24749d12593ec5b.tar.gz
FOSSEE-Optim-toolbox-development-a0d9443af147e949c1e6a01ac24749d12593ec5b.tar.bz2
FOSSEE-Optim-toolbox-development-a0d9443af147e949c1e6a01ac24749d12593ec5b.zip
cbcintlinprog added
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