Cbc 2.10.8
CbcHeuristicDivePseudoCost.hpp
Go to the documentation of this file.
1/* $Id$ */
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
10
15public:
16 // Default Constructor
18
19 // Constructor with model - assumed before cuts
21
22 // Copy constructor
24
25 // Destructor
27
30
33
35 virtual void generateCpp(FILE *fp);
36
38
43 virtual bool selectVariableToBranch(OsiSolverInterface *solver,
44 const double *newSolution,
45 int &bestColumn,
46 int &bestRound);
49 virtual void initializeData();
51 virtual int fixOtherVariables(OsiSolverInterface *solver,
52 const double *solution,
53 PseudoReducedCost *candidate,
54 const double *random);
55};
56
57#endif
58
59/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
60*/
CbcHeuristicDivePseudoCost & operator=(const CbcHeuristicDivePseudoCost &rhs)
Assignment operator.
CbcHeuristicDivePseudoCost(CbcModel &model)
virtual bool selectVariableToBranch(OsiSolverInterface *solver, const double *newSolution, int &bestColumn, int &bestRound)
Selects the next variable to branch on.
virtual CbcHeuristicDivePseudoCost * clone() const
Clone.
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 int fixOtherVariables(OsiSolverInterface *solver, const double *solution, PseudoReducedCost *candidate, const double *random)
Fix other variables at bounds.
CbcHeuristicDivePseudoCost(const CbcHeuristicDivePseudoCost &)
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...
Simple Branch and bound class.
Definition: CbcModel.hpp:100