Bonmin  1.8.8
BonHeuristicDiveMIPFractional.hpp
Go to the documentation of this file.
1 // Copyright (C) 2007, International Business Machines Corporation and others.
2 // All Rights Reserved.
3 // This code is published under the Eclipse Public License.
4 //
5 // Authors :
6 // Joao P. Goncalves, International Business Machines Corporation
7 //
8 // Date : November 12, 2007
9 
10 #ifndef BonHeuristicDiveMIPFractional_H
11 #define BonHeuristicDiveMIPFractional_H
12 
13 #include "BonBonminSetup.hpp"
14 #include "BonHeuristicDiveMIP.hpp"
15 
19 namespace Bonmin
20 {
22  public:
25 
28 
31 
34 
37 
39  virtual CbcHeuristic * clone() const;
40 
42  virtual void setSetup(BonminSetup * setup){
44  Initialize(setup->options());
45  }
46 
48  virtual void setInternalVariables(TMINLP2TNLP* minlp);
49 
51 
53  virtual void selectVariableToBranch(TMINLP2TNLP* minlp,
54  const vector<int> & integerColumns,
55  const double* newSolution,
56  int& bestColumn,
57  int& bestRound);
58 
60  static void registerOptions(Ipopt::SmartPtr<Bonmin::RegisteredOptions> roptions);
61 
63  void Initialize(Ipopt::SmartPtr<Ipopt::OptionsList> options);
64 
65  };
66 }
67 #endif
virtual void selectVariableToBranch(TMINLP2TNLP *minlp, const vector< int > &integerColumns, const double *newSolution, int &bestColumn, int &bestRound)
Selects the next variable to branch on.
virtual void setInternalVariables(TMINLP2TNLP *minlp)
sets internal variables
void Initialize(Ipopt::SmartPtr< Ipopt::OptionsList > options)
Initiaize using passed options.
virtual void setSetup(BonminSetup *setup)
Change setup used for heuristic.
static void registerOptions(Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions)
Register the options common to all local search based heuristics.
virtual void setSetup(BonminSetup *setup)
Change setup used for heuristic.
HeuristicDiveMIPFractional & operator=(const HeuristicDiveMIPFractional &rhs)
Assignment operator.
HeuristicDiveMIPFractional()
Default Constructor.
Ipopt::SmartPtr< Ipopt::OptionsList > options()
Acces list of Options.
virtual CbcHeuristic * clone() const
Clone.
This is an adapter class that converts a TMINLP to a TNLP to be solved by Ipopt.