CbcHeuristicDivePseudoCost.hpp
Go to the documentation of this file.
1 /* $Id: CbcHeuristicDivePseudoCost.hpp 1240 2009-10-02 18:41:44Z forrest $ */
2 // Copyright (C) 2008, International Business Machines
3 // Corporation and others. All Rights Reserved.
4 #ifndef CbcHeuristicDivePseudoCost_H
5 #define CbcHeuristicDivePseudoCost_H
6 
7 #include "CbcHeuristicDive.hpp"
8 
13 public:
14 
15  // Default Constructor
17 
18  // Constructor with model - assumed before cuts
20 
21  // Copy constructor
23 
24  // Destructor
26 
28  virtual CbcHeuristicDivePseudoCost * clone() const;
29 
32 
34  virtual void generateCpp( FILE * fp) ;
35 
37 
42  virtual bool selectVariableToBranch(OsiSolverInterface* solver,
43  const double* newSolution,
44  int& bestColumn,
45  int& bestRound);
48  virtual void initializeData() ;
50  virtual int fixOtherVariables(OsiSolverInterface * solver,
51  const double * solution,
52  PseudoReducedCost * candidate,
53  const double * random);
54 
55 };
56 
57 #endif
58 
CbcHeuristicDivePseudoCost & operator=(const CbcHeuristicDivePseudoCost &rhs)
Assignment operator.
virtual bool selectVariableToBranch(OsiSolverInterface *solver, const double *newSolution, int &bestColumn, int &bestRound)
Selects the next variable to branch on.
virtual void initializeData()
Initializes any data which is going to be used repeatedly in selectVariableToBranch.
virtual int solution(double &objectiveValue, double *newSolution)
returns 0 if no solution, 1 if valid solution with better objective value than one passed in Sets sol...
virtual void generateCpp(FILE *fp)
Create C++ lines to get to current state.
virtual int fixOtherVariables(OsiSolverInterface *solver, const double *solution, PseudoReducedCost *candidate, const double *random)
Fix other variables at bounds.
virtual CbcHeuristicDivePseudoCost * clone() const
Clone.
Simple Branch and bound class.
Definition: CbcModel.hpp:98