1 | /* $Id: CbcHeuristicRandRound.hpp 1173 2009-06-04 09:44:10Z forrest $ */ |
---|
2 | // Copyright (C) 2008, International Business Machines |
---|
3 | // Corporation and others. All Rights Reserved. |
---|
4 | // This code is licensed under the terms of the Eclipse Public License (EPL). |
---|
5 | |
---|
6 | #ifndef CbcHeuristicRandRound_H |
---|
7 | #define CbcHeuristicRandRound_H |
---|
8 | |
---|
9 | #include "CbcHeuristic.hpp" |
---|
10 | /** LocalSearch class |
---|
11 | */ |
---|
12 | |
---|
13 | class CbcHeuristicRandRound : public CbcHeuristic { |
---|
14 | public: |
---|
15 | |
---|
16 | // Default Constructor |
---|
17 | CbcHeuristicRandRound (); |
---|
18 | |
---|
19 | /* Constructor with model - assumed before cuts |
---|
20 | Initial version does not do Lps |
---|
21 | */ |
---|
22 | CbcHeuristicRandRound (CbcModel & model); |
---|
23 | |
---|
24 | // Copy constructor |
---|
25 | CbcHeuristicRandRound ( const CbcHeuristicRandRound &); |
---|
26 | |
---|
27 | // Destructor |
---|
28 | ~CbcHeuristicRandRound (); |
---|
29 | |
---|
30 | /// Clone |
---|
31 | virtual CbcHeuristic * clone() const; |
---|
32 | |
---|
33 | /// Assignment operator |
---|
34 | CbcHeuristicRandRound & operator=(const CbcHeuristicRandRound& rhs); |
---|
35 | |
---|
36 | /// Create C++ lines to get to current state |
---|
37 | virtual void generateCpp( FILE * fp) ; |
---|
38 | |
---|
39 | /// Resets stuff if model changes |
---|
40 | virtual void resetModel(CbcModel * model); |
---|
41 | |
---|
42 | /// update model (This is needed if cliques update matrix etc) |
---|
43 | virtual void setModel(CbcModel * model); |
---|
44 | |
---|
45 | using CbcHeuristic::solution ; |
---|
46 | /** returns 0 if no solution, 1 if valid solution. |
---|
47 | Sets solution values if good, sets objective value (only if good) |
---|
48 | needs comments |
---|
49 | */ |
---|
50 | virtual int solution(double & objectiveValue, |
---|
51 | double * newSolution); |
---|
52 | |
---|
53 | protected: |
---|
54 | }; |
---|
55 | |
---|
56 | |
---|
57 | #endif |
---|
58 | |
---|