Cbc  2.9.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CbcHeuristicDivePseudoCost.hpp
Go to the documentation of this file.
1 /* $Id: CbcHeuristicDivePseudoCost.hpp 1899 2013-04-09 18:12:08Z stefan $ */
2 // Copyright (C) 2008, International Business Machines
3 // Corporation and others. All Rights Reserved.
4 // This code is licensed under the terms of the Eclipse Public License (EPL).
5 
6 #ifndef CbcHeuristicDivePseudoCost_H
7 #define CbcHeuristicDivePseudoCost_H
8 
9 #include "CbcHeuristicDive.hpp"
10 
15 public:
16 
17  // Default Constructor
19 
20  // Constructor with model - assumed before cuts
22 
23  // Copy constructor
25 
26  // Destructor
28 
30  virtual CbcHeuristicDivePseudoCost * clone() const;
31 
34 
36  virtual void generateCpp( FILE * fp) ;
37 
39 
44  virtual bool selectVariableToBranch(OsiSolverInterface* solver,
45  const double* newSolution,
46  int& bestColumn,
47  int& bestRound);
50  virtual void initializeData() ;
52  virtual int fixOtherVariables(OsiSolverInterface * solver,
53  const double * solution,
54  PseudoReducedCost * candidate,
55  const double * random);
56 
57 };
58 
59 #endif
60 
virtual CbcHeuristicDivePseudoCost * clone() const
Clone.
CbcHeuristicDivePseudoCost & operator=(const CbcHeuristicDivePseudoCost &rhs)
Assignment operator.
Abstract Base Class for describing an interface to a solver.
virtual void initializeData()
Initializes any data which is going to be used repeatedly in selectVariableToBranch.
virtual void generateCpp(FILE *fp)
Create C++ lines to get to current state.
virtual bool selectVariableToBranch(OsiSolverInterface *solver, const double *newSolution, int &bestColumn, int &bestRound)
Selects the next variable to branch on.
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 int fixOtherVariables(OsiSolverInterface *solver, const double *solution, PseudoReducedCost *candidate, const double *random)
Fix other variables at bounds.
Simple Branch and bound class.
Definition: CbcModel.hpp:101