summaryrefslogtreecommitdiff
path: root/thirdparty/linux/include/coin/BonOACutGenerator2.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/BonOACutGenerator2.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/BonOACutGenerator2.hpp')
-rw-r--r--thirdparty/linux/include/coin/BonOACutGenerator2.hpp56
1 files changed, 56 insertions, 0 deletions
diff --git a/thirdparty/linux/include/coin/BonOACutGenerator2.hpp b/thirdparty/linux/include/coin/BonOACutGenerator2.hpp
new file mode 100644
index 0000000..c098c9b
--- /dev/null
+++ b/thirdparty/linux/include/coin/BonOACutGenerator2.hpp
@@ -0,0 +1,56 @@
+// (C) Copyright Carnegie Mellon University 2005
+// All Rights Reserved.
+// This code is published under the Eclipse Public License.
+//
+// Authors :
+// P. Bonami, Carnegie Mellon University
+//
+// Date : 05/26/2005
+
+
+#ifndef BonOACutGenerator2_HPP
+#define BonOACutGenerator2_HPP
+#include "BonOaDecBase.hpp"
+
+namespace Bonmin
+{
+ /** Class to perform OA in its classical form.*/
+ class OACutGenerator2 : public OaDecompositionBase
+ {
+ public:
+ /// Constructor with basic setup
+ OACutGenerator2(BabSetupBase & b);
+
+ /// Copy constructor
+ OACutGenerator2(const OACutGenerator2 &copy)
+ :
+ OaDecompositionBase(copy),
+ subMip_(new SubMipSolver (*copy.subMip_))
+ {}
+ /// Destructor
+ ~OACutGenerator2();
+
+ void setStrategy(const CbcStrategy & strategy)
+ {
+ parameters_.setStrategy(strategy);
+ }
+
+ virtual CglCutGenerator * clone() const
+ {
+ return new OACutGenerator2(*this);
+ }
+ /** Register OA options.*/
+ static void registerOptions(Ipopt::SmartPtr<Bonmin::RegisteredOptions> roptions);
+
+ protected:
+ /// virtual method which performs the OA algorithm by modifying lp and nlp.
+ virtual double performOa(OsiCuts & cs, solverManip &lpManip,
+ BabInfo * babInfo, double &cutoff, const CglTreeInfo & info) const;
+ /// virutal method to decide if local search is performed
+ virtual bool doLocalSearch(BabInfo * babInfo) const;
+
+ private:
+ SubMipSolver * subMip_;
+ };
+}
+#endif