source: stable/2.4/Cbc/src/CbcHeuristicRandRound.hpp @ 1271

Last change on this file since 1271 was 1271, checked in by forrest, 10 years ago

Creating new stable branch 2.4 from trunk (rev 1270)

File size: 1.4 KB
Line 
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#ifndef CbcHeuristicRandRound_H
5#define CbcHeuristicRandRound_H
6
7#include "CbcHeuristic.hpp"
8/** LocalSearch class
9 */
10
11class CbcHeuristicRandRound : public CbcHeuristic {
12public:
13
14  // Default Constructor
15  CbcHeuristicRandRound ();
16
17  /* Constructor with model - assumed before cuts
18     Initial version does not do Lps
19  */
20  CbcHeuristicRandRound (CbcModel & model);
21 
22  // Copy constructor
23  CbcHeuristicRandRound ( const CbcHeuristicRandRound &);
24   
25  // Destructor
26  ~CbcHeuristicRandRound ();
27 
28  /// Clone
29  virtual CbcHeuristic * clone() const;
30
31  /// Assignment operator
32  CbcHeuristicRandRound & operator=(const CbcHeuristicRandRound& rhs);
33
34  /// Create C++ lines to get to current state
35  virtual void generateCpp( FILE * fp) ;
36
37  /// Resets stuff if model changes
38  virtual void resetModel(CbcModel * model);
39
40  /// update model (This is needed if cliques update matrix etc)
41  virtual void setModel(CbcModel * model);
42 
43  using CbcHeuristic::solution ;
44  /** returns 0 if no solution, 1 if valid solution.
45      Sets solution values if good, sets objective value (only if good)
46      needs comments
47  */
48  virtual int solution(double & objectiveValue,
49                       double * newSolution);
50
51protected:
52};
53
54
55#endif
Note: See TracBrowser for help on using the repository browser.