diff options
author | Harpreet | 2016-08-04 15:25:44 +0530 |
---|---|---|
committer | Harpreet | 2016-08-04 15:25:44 +0530 |
commit | 9fd2976931c088dc523974afb901e96bad20f73c (patch) | |
tree | 22502de6e6988d5cd595290d11266f8432ad825b /build/Bonmin/include/coin/BonGuessHeuristic.hpp | |
download | FOSSEE-Optim-toolbox-development-9fd2976931c088dc523974afb901e96bad20f73c.tar.gz FOSSEE-Optim-toolbox-development-9fd2976931c088dc523974afb901e96bad20f73c.tar.bz2 FOSSEE-Optim-toolbox-development-9fd2976931c088dc523974afb901e96bad20f73c.zip |
initial add
Diffstat (limited to 'build/Bonmin/include/coin/BonGuessHeuristic.hpp')
-rw-r--r-- | build/Bonmin/include/coin/BonGuessHeuristic.hpp | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/build/Bonmin/include/coin/BonGuessHeuristic.hpp b/build/Bonmin/include/coin/BonGuessHeuristic.hpp new file mode 100644 index 0000000..c8c4e6f --- /dev/null +++ b/build/Bonmin/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 ©): + 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 |