source: trunk/Cbc/src/CbcHeuristicDiveFractional.hpp @ 1564

Last change on this file since 1564 was 1432, checked in by bjarni, 10 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: CbcHeuristicDiveFractional.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 CbcHeuristicDiveFractional_H
5#define CbcHeuristicDiveFractional_H
6
7#include "CbcHeuristicDive.hpp"
8
9/** DiveFractional class
10 */
11
12class CbcHeuristicDiveFractional : public CbcHeuristicDive {
13public:
14
15    // Default Constructor
16    CbcHeuristicDiveFractional ();
17
18    // Constructor with model - assumed before cuts
19    CbcHeuristicDiveFractional (CbcModel & model);
20
21    // Copy constructor
22    CbcHeuristicDiveFractional ( const CbcHeuristicDiveFractional &);
23
24    // Destructor
25    ~CbcHeuristicDiveFractional ();
26
27    /// Clone
28    virtual CbcHeuristicDiveFractional * clone() const;
29
30    /// Assignment operator
31    CbcHeuristicDiveFractional & operator=(const CbcHeuristicDiveFractional& rhs);
32
33    /// Create C++ lines to get to current state
34    virtual void generateCpp( FILE * fp) ;
35
36    /// Selects the next variable to branch on
37    /** Returns true if all the fractional variables can be trivially
38        rounded. Returns false, if there is at least one fractional variable
39        that is not trivially roundable. In this case, the bestColumn
40        returned will not be trivially roundable.
41    */
42    virtual bool selectVariableToBranch(OsiSolverInterface* solver,
43                                        const double* newSolution,
44                                        int& bestColumn,
45                                        int& bestRound);
46
47};
48
49#endif
50
Note: See TracBrowser for help on using the repository browser.