summaryrefslogtreecommitdiff
path: root/newstructure/thirdparty/linux/include/coin/BonGuessHeuristic.hpp
diff options
context:
space:
mode:
authorHarpreet2016-09-03 00:34:27 +0530
committerHarpreet2016-09-03 00:34:27 +0530
commit4b64cf486f5c999fd8167758cae27839f3b50848 (patch)
treed9d06639fb7fa61aef59be0363655e4747105ec7 /newstructure/thirdparty/linux/include/coin/BonGuessHeuristic.hpp
parentd19794fb80a271a4c885ed90f97cfc12baa012f2 (diff)
downloadFOSSEE-Optim-toolbox-development-4b64cf486f5c999fd8167758cae27839f3b50848.tar.gz
FOSSEE-Optim-toolbox-development-4b64cf486f5c999fd8167758cae27839f3b50848.tar.bz2
FOSSEE-Optim-toolbox-development-4b64cf486f5c999fd8167758cae27839f3b50848.zip
Structure updated and intqpipopt files added
Diffstat (limited to 'newstructure/thirdparty/linux/include/coin/BonGuessHeuristic.hpp')
-rw-r--r--newstructure/thirdparty/linux/include/coin/BonGuessHeuristic.hpp46
1 files changed, 46 insertions, 0 deletions
diff --git a/newstructure/thirdparty/linux/include/coin/BonGuessHeuristic.hpp b/newstructure/thirdparty/linux/include/coin/BonGuessHeuristic.hpp
new file mode 100644
index 0000000..c8c4e6f
--- /dev/null
+++ b/newstructure/thirdparty/linux/include/coin/BonGuessHeuristic.hpp
@@ -0,0 +1,46 @@
+// (C) Copyright International Business Machines 2007
+// All Rights Reserved.
+// This code is published under the Eclipse Public License.
+//
+// Authors :
+// Andreas Waechter IBM 2007-09-01
+
+#ifndef BonGuessHeuristic_HPP
+#define BonGuessHeuristic_HPP
+#include "BonOsiTMINLPInterface.hpp"
+
+#include "CbcHeuristic.hpp"
+
+namespace Bonmin
+{
+ class GuessHeuristic : public CbcHeuristic
+ {
+ public:
+ /// Usefull constructor
+ GuessHeuristic(CbcModel &model);
+ ///Copy constructor
+ GuessHeuristic( const GuessHeuristic &copy):
+ CbcHeuristic(copy)
+ {}
+
+ /// heuristic method providing guess, based on pseudo costs
+ virtual int solution(double &solutionValue, double *betterSolution);
+ virtual int solution(double &solutionValue, double *betterSolution, OsiCuts & cs)
+ {
+ return solution(solutionValue, betterSolution);
+ }
+ virtual CbcHeuristic * clone()const
+ {
+ return new GuessHeuristic(*this);
+ }
+ virtual void resetModel(CbcModel*)
+ {}
+ private:
+ /// Default constructor
+ GuessHeuristic();
+
+ /// Assignment operator
+ GuessHeuristic & operator=(const GuessHeuristic& rhs);
+ };
+}
+#endif