Bonmin 1.8.9
Loading...
Searching...
No Matches
BonHeuristicDiveVectorLength.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 BonHeuristicDiveVectorLength_H
11#define BonHeuristicDiveVectorLength_H
12
13#include "BonBonminSetup.hpp"
14#include "BonHeuristicDive.hpp"
15
19namespace Bonmin
20{
22 public:
25
28
31
34 {
35 delete [] columnLength_;
36 }
37
40
42 virtual CbcHeuristic * clone() const;
43
45 virtual void setSetup(BonminSetup * setup){
47 Initialize(setup->options());
48 }
49
51 virtual void setInternalVariables(TMINLP2TNLP* minlp);
52
54
57 const vector<int> & integerColumns,
58 const double* newSolution,
59 int& bestColumn,
60 int& bestRound);
61
64
67
68 private:
70 int* columnLength_;
71
72 };
73}
74#endif
Ipopt::SmartPtr< Ipopt::OptionsList > options()
Acces list of Options.
virtual void setInternalVariables(TMINLP2TNLP *minlp)
sets internal variables
HeuristicDiveVectorLength(const HeuristicDiveVectorLength &copy)
Copy constructor.
virtual CbcHeuristic * clone() const
Clone.
static void registerOptions(Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions)
Register the options common to all local search based heuristics.
HeuristicDiveVectorLength()
Default Constructor.
HeuristicDiveVectorLength(BonminSetup *setup)
Constructor with setup.
HeuristicDiveVectorLength & operator=(const HeuristicDiveVectorLength &rhs)
Assignment operator.
virtual void setSetup(BonminSetup *setup)
Change setup used for heuristic.
virtual void selectVariableToBranch(TMINLP2TNLP *minlp, const vector< int > &integerColumns, const double *newSolution, int &bestColumn, int &bestRound)
Selects the next variable to branch on.
void Initialize(Ipopt::SmartPtr< Ipopt::OptionsList > options)
Initiaize using passed options.
virtual void setSetup(BonminSetup *setup)
Change setup used for heuristic.
This is an adapter class that converts a TMINLP to a TNLP to be solved by Ipopt.
A small wrap around std::vector to give easy access to array for interfacing with fortran code.
Definition BonTypes.hpp:9
(C) Copyright International Business Machines Corporation 2007