source: trunk/Cbc/src/CbcHeuristicDiveLineSearch.hpp @ 2464

Last change on this file since 2464 was 2464, checked in by unxusr, 14 months ago

.clang-format with proposal for formatting code

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.4 KB
RevLine 
[1854]1/* $Id: CbcHeuristicDiveLineSearch.hpp 2464 2019-01-03 19:03:23Z unxusr $ */
[945]2// Copyright (C) 2008, International Business Machines
3// Corporation and others.  All Rights Reserved.
[1573]4// This code is licensed under the terms of the Eclipse Public License (EPL).
5
[945]6#ifndef CbcHeuristicDiveLineSearch_H
7#define CbcHeuristicDiveLineSearch_H
8
9#include "CbcHeuristicDive.hpp"
10
11/** DiveLineSearch class
12 */
13
14class CbcHeuristicDiveLineSearch : public CbcHeuristicDive {
15public:
[2464]16  // Default Constructor
17  CbcHeuristicDiveLineSearch();
[945]18
[2464]19  // Constructor with model - assumed before cuts
20  CbcHeuristicDiveLineSearch(CbcModel &model);
[945]21
[2464]22  // Copy constructor
23  CbcHeuristicDiveLineSearch(const CbcHeuristicDiveLineSearch &);
[945]24
[2464]25  // Destructor
26  ~CbcHeuristicDiveLineSearch();
[945]27
[2464]28  /// Clone
29  virtual CbcHeuristicDiveLineSearch *clone() const;
[945]30
[2464]31  /// Assignment operator
32  CbcHeuristicDiveLineSearch &operator=(const CbcHeuristicDiveLineSearch &rhs);
[945]33
[2464]34  /// Create C++ lines to get to current state
35  virtual void generateCpp(FILE *fp);
[1286]36
[2464]37  /// Selects the next variable to branch on
38  /** Returns true if all the fractional variables can be trivially
[1286]39        rounded. Returns false, if there is at least one fractional variable
40        that is not trivially roundable. In this case, the bestColumn
41        returned will not be trivially roundable.
42    */
[2464]43  virtual bool selectVariableToBranch(OsiSolverInterface *solver,
44    const double *newSolution,
45    int &bestColumn,
46    int &bestRound);
[945]47};
48
49#endif
Note: See TracBrowser for help on using the repository browser.