source: trunk/Cbc/src/CbcHeuristicPivotAndFix.hpp @ 1514

Last change on this file since 1514 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.5 KB
Line 
1/* $Id: CbcHeuristicPivotAndFix.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 CbcHeuristicPivotAndFix_H
5#define CbcHeuristicPivotAndFix_H
6
7#include "CbcHeuristic.hpp"
8/** LocalSearch class
9 */
10
11class CbcHeuristicPivotAndFix : public CbcHeuristic {
12public:
13
14    // Default Constructor
15    CbcHeuristicPivotAndFix ();
16
17    /* Constructor with model - assumed before cuts
18       Initial version does not do Lps
19    */
20    CbcHeuristicPivotAndFix (CbcModel & model);
21
22    // Copy constructor
23    CbcHeuristicPivotAndFix ( const CbcHeuristicPivotAndFix &);
24
25    // Destructor
26    ~CbcHeuristicPivotAndFix ();
27
28    /// Clone
29    virtual CbcHeuristic * clone() const;
30
31    /// Assignment operator
32    CbcHeuristicPivotAndFix & operator=(const CbcHeuristicPivotAndFix& 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
56
Note: See TracBrowser for help on using the repository browser.