#include <BonHeuristicDiveMIPVectorLength.hpp>
Inheritance diagram for Bonmin::HeuristicDiveMIPVectorLength:
Public Member Functions | |
HeuristicDiveMIPVectorLength () | |
Default Constructor. | |
HeuristicDiveMIPVectorLength (BonminSetup *setup) | |
Constructor with setup. | |
HeuristicDiveMIPVectorLength (const HeuristicDiveMIPVectorLength ©) | |
Copy constructor. | |
~HeuristicDiveMIPVectorLength () | |
Destructor. | |
HeuristicDiveMIPVectorLength & | operator= (const HeuristicDiveMIPVectorLength &rhs) |
Assignment operator. | |
virtual CbcHeuristic * | clone () const |
Clone. | |
virtual void | setSetup (BonminSetup *setup) |
Change setup used for heuristic. | |
virtual void | setInternalVariables (TMINLP2TNLP *minlp) |
sets internal variables | |
virtual void | selectVariableToBranch (TMINLP2TNLP *minlp, const vector< int > &integerColumns, const double *newSolution, int &bestColumn, int &bestRound) |
If bestColumn = -1, it means that no variable was found. | |
void | Initialize (Ipopt::SmartPtr< Bonmin::OptionsList > options) |
Initiaize using passed options. | |
Static Public Member Functions | |
static void | registerOptions (Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions) |
Register the options common to all local search based heuristics. | |
Private Attributes | |
int * | columnLength_ |
the number of nonzero elements in each column |
Definition at line 21 of file BonHeuristicDiveMIPVectorLength.hpp.
Bonmin::HeuristicDiveMIPVectorLength::HeuristicDiveMIPVectorLength | ( | ) |
Bonmin::HeuristicDiveMIPVectorLength::HeuristicDiveMIPVectorLength | ( | BonminSetup * | setup | ) |
Constructor with setup.
Definition at line 28 of file BonHeuristicDiveMIPVectorLength.cpp.
References Initialize(), and Bonmin::BabSetupBase::options().
Bonmin::HeuristicDiveMIPVectorLength::HeuristicDiveMIPVectorLength | ( | const HeuristicDiveMIPVectorLength & | copy | ) |
Bonmin::HeuristicDiveMIPVectorLength::~HeuristicDiveMIPVectorLength | ( | ) | [inline] |
Destructor.
Definition at line 33 of file BonHeuristicDiveMIPVectorLength.hpp.
References columnLength_.
HeuristicDiveMIPVectorLength & Bonmin::HeuristicDiveMIPVectorLength::operator= | ( | const HeuristicDiveMIPVectorLength & | rhs | ) |
Assignment operator.
Definition at line 44 of file BonHeuristicDiveMIPVectorLength.cpp.
References columnLength_, and Bonmin::HeuristicDiveMIP::operator=().
CbcHeuristic * Bonmin::HeuristicDiveMIPVectorLength::clone | ( | ) | const [virtual] |
Clone.
Implements Bonmin::HeuristicDiveMIP.
Definition at line 55 of file BonHeuristicDiveMIPVectorLength.cpp.
References HeuristicDiveMIPVectorLength().
virtual void Bonmin::HeuristicDiveMIPVectorLength::setSetup | ( | BonminSetup * | setup | ) | [inline, virtual] |
Change setup used for heuristic.
Reimplemented from Bonmin::HeuristicDiveMIP.
Definition at line 45 of file BonHeuristicDiveMIPVectorLength.hpp.
References Initialize(), Bonmin::BabSetupBase::options(), and Bonmin::HeuristicDiveMIP::setSetup().
void Bonmin::HeuristicDiveMIPVectorLength::setInternalVariables | ( | TMINLP2TNLP * | minlp | ) | [virtual] |
sets internal variables
Implements Bonmin::HeuristicDiveMIP.
Definition at line 61 of file BonHeuristicDiveMIPVectorLength.cpp.
References columnLength_, Bonmin::TMINLP2TNLP::eval_jac_g(), Bonmin::TMINLP2TNLP::get_nlp_info(), and Bonmin::TMINLP2TNLP::x_sol().
void Bonmin::HeuristicDiveMIPVectorLength::selectVariableToBranch | ( | TMINLP2TNLP * | minlp, | |
const vector< int > & | integerColumns, | |||
const double * | newSolution, | |||
int & | bestColumn, | |||
int & | bestRound | |||
) | [virtual] |
If bestColumn = -1, it means that no variable was found.
Implements Bonmin::HeuristicDiveMIP.
Definition at line 100 of file BonHeuristicDiveMIPVectorLength.cpp.
References columnLength_, e, Bonmin::TMINLP2TNLP::eval_grad_f(), Bonmin::TMINLP2TNLP::get_nlp_info(), Bonmin::TMINLP2TNLP::x_l(), and Bonmin::TMINLP2TNLP::x_u().
void Bonmin::HeuristicDiveMIPVectorLength::registerOptions | ( | Ipopt::SmartPtr< Bonmin::RegisteredOptions > | roptions | ) | [static] |
Register the options common to all local search based heuristics.
Definition at line 168 of file BonHeuristicDiveMIPVectorLength.cpp.
References Bonmin::RegisteredOptions::BonminCategory.
Referenced by Bonmin::BonminSetup::registerAllOptions().
void Bonmin::HeuristicDiveMIPVectorLength::Initialize | ( | Ipopt::SmartPtr< Bonmin::OptionsList > | options | ) |
Initiaize using passed options.
Definition at line 181 of file BonHeuristicDiveMIPVectorLength.cpp.
Referenced by HeuristicDiveMIPVectorLength(), and setSetup().
int* Bonmin::HeuristicDiveMIPVectorLength::columnLength_ [private] |
the number of nonzero elements in each column
Definition at line 70 of file BonHeuristicDiveMIPVectorLength.hpp.
Referenced by operator=(), selectVariableToBranch(), setInternalVariables(), and ~HeuristicDiveMIPVectorLength().