diff options
author | Georgey | 2017-07-05 11:40:43 +0530 |
---|---|---|
committer | Georgey | 2017-07-05 11:40:43 +0530 |
commit | 938fef4a37a7b7c61b4b6ff74cb4cfd2f100c427 (patch) | |
tree | b343c0ee5609433c80e0de1db8b6886c9126dc2d /thirdparty/linux/include/coin/BonDummyHeuristic.hpp | |
parent | 5b72577efe080c5294b32d804e4d26351fef30bc (diff) | |
download | symphony-938fef4a37a7b7c61b4b6ff74cb4cfd2f100c427.tar.gz symphony-938fef4a37a7b7c61b4b6ff74cb4cfd2f100c427.tar.bz2 symphony-938fef4a37a7b7c61b4b6ff74cb4cfd2f100c427.zip |
Added linux shared libraries and header files for int and ecos functions
Diffstat (limited to 'thirdparty/linux/include/coin/BonDummyHeuristic.hpp')
-rw-r--r-- | thirdparty/linux/include/coin/BonDummyHeuristic.hpp | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/thirdparty/linux/include/coin/BonDummyHeuristic.hpp b/thirdparty/linux/include/coin/BonDummyHeuristic.hpp new file mode 100644 index 0000000..5c3d7fa --- /dev/null +++ b/thirdparty/linux/include/coin/BonDummyHeuristic.hpp @@ -0,0 +1,53 @@ +// (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 BonDummyHeuristic_HPP +#define BonDummyHeuristic_HPP +#include "BonOsiTMINLPInterface.hpp" + +#include "CbcHeuristic.hpp" +namespace Bonmin +{ + class DummyHeuristic : public CbcHeuristic + { + public: + /// Default constructor + DummyHeuristic(OsiTMINLPInterface * si = NULL); + /// Usefull constructor + DummyHeuristic(CbcModel &model, OsiTMINLPInterface * si = NULL); + ///Copy constructor + DummyHeuristic( const DummyHeuristic ©): + CbcHeuristic(copy), + nlp_(copy.nlp_), + knowsSolution(copy.knowsSolution) + {} + /// Set nlp_ + void setNlp(OsiTMINLPInterface * si); + /// heuristic method + 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 DummyHeuristic(*this); + } + virtual void resetModel(CbcModel*) + {} + virtual bool shouldHeurRun(int whereFrom){ + return true;} + private: + /// Pointer to the Ipopt interface + OsiTMINLPInterface * nlp_; + /// Do I have a solution? + bool knowsSolution; + }; +} +#endif |