Debian Codegraph @

Bonmin/src/CbcBonmin/BonGuessHeuristic.hpp

raw
1 // (C) Copyright International Business Machines 2007
2 // All Rights Reserved.
3 // This code is published under the Eclipse Public License.
4 //
5 // Authors :
6 // Andreas Waechter IBM 2007-09-01
7
8 #ifndef BonGuessHeuristic_HPP
9 #define BonGuessHeuristic_HPP
10 #include "BonOsiTMINLPInterface.hpp"
11
12 #include "CbcHeuristic.hpp"
13
14 namespace Bonmin
15 {
16 class GuessHeuristic : public CbcHeuristic
17 {
18 public:
19 /// Usefull constructor
20 GuessHeuristic(CbcModel &model);
21 ///Copy constructor
22 GuessHeuristic( const GuessHeuristic &copy):
23 CbcHeuristic(copy)
24 {}
25
26 /// heuristic method providing guess, based on pseudo costs
27 virtual int solution(double &solutionValue, double *betterSolution);
28 virtual int solution(double &solutionValue, double *betterSolution, OsiCuts & cs)
29 {
30 return solution(solutionValue, betterSolution);
31 }
32 virtual CbcHeuristic * clone()const
33 {
34 return new GuessHeuristic(*this);
35 }
36 virtual void resetModel(CbcModel*)
37 {}
38 private:
39 /// Default constructor
40 GuessHeuristic();
41
42 /// Assignment operator
43 GuessHeuristic & operator=(const GuessHeuristic& rhs);
44 };
45 }
46 #endif