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