source: trunk/Cbc/src/CbcHeuristicRandRound.hpp @ 1899

Last change on this file since 1899 was 1899, checked in by stefan, 6 years ago

fixup svn properties

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.4 KB
Line 
1/* $Id: CbcHeuristicRandRound.hpp 1899 2013-04-09 18:12:08Z stefan $ */
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
13class CbcHeuristicRandRound : public CbcHeuristic {
14public:
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
53protected:
54};
55
56
57#endif
58
Note: See TracBrowser for help on using the repository browser.