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

Last change on this file since 1432 was 1432, checked in by bjarni, 9 years ago

Added extra return at end of each source file where needed, to remove possible linefeed conflicts (NightlyBuild? errors)

File size: 1.4 KB
RevLine 
[1271]1/* $Id: CbcHeuristicRandRound.hpp 1173 2009-06-04 09:44:10Z forrest $ */
[1057]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
[1286]14    // Default Constructor
15    CbcHeuristicRandRound ();
[1057]16
[1286]17    /* Constructor with model - assumed before cuts
18       Initial version does not do Lps
19    */
20    CbcHeuristicRandRound (CbcModel & model);
[1057]21
[1286]22    // Copy constructor
23    CbcHeuristicRandRound ( const CbcHeuristicRandRound &);
[1057]24
[1286]25    // Destructor
26    ~CbcHeuristicRandRound ();
[1057]27
[1286]28    /// Clone
29    virtual CbcHeuristic * clone() const;
[1057]30
[1286]31    /// Assignment operator
32    CbcHeuristicRandRound & operator=(const CbcHeuristicRandRound& rhs);
[1057]33
[1286]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
[1057]51protected:
52};
53
54
55#endif
[1432]56
Note: See TracBrowser for help on using the repository browser.