Bonmin
1.7
|
#include <BonHeuristicLocalBranching.hpp>
Public Member Functions | |
HeuristicLocalBranching () | |
Default constructor. | |
HeuristicLocalBranching (BonminSetup *setup) | |
Constructor with setup. | |
HeuristicLocalBranching (const HeuristicLocalBranching &other) | |
Copy constructor. | |
virtual CbcHeuristic * | clone () const |
Virtual constructor. | |
virtual | ~HeuristicLocalBranching () |
Destructor. | |
virtual void | setModel (CbcModel *model) |
Update model. | |
virtual void | validate () |
Validate model i.e. sets when_ to 0 if necessary. | |
int | solution (double &objectiveValue, double *newSolution) |
Runs heuristic. | |
void | Initialize (Ipopt::SmartPtr< Ipopt::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 | howOften_ |
How often to do (code can change) | |
int | numberSolutions_ |
Number of solutions so we can do something at solution. |
Definition at line 16 of file BonHeuristicLocalBranching.hpp.
Bonmin::HeuristicLocalBranching::HeuristicLocalBranching | ( | ) |
Default constructor.
Referenced by clone().
Bonmin::HeuristicLocalBranching::HeuristicLocalBranching | ( | BonminSetup * | setup | ) |
Constructor with setup.
Bonmin::HeuristicLocalBranching::HeuristicLocalBranching | ( | const HeuristicLocalBranching & | other | ) |
Copy constructor.
virtual Bonmin::HeuristicLocalBranching::~HeuristicLocalBranching | ( | ) | [virtual] |
Destructor.
virtual CbcHeuristic* Bonmin::HeuristicLocalBranching::clone | ( | ) | const [inline, virtual] |
Virtual constructor.
Implements Bonmin::LocalSolverBasedHeuristic.
Definition at line 26 of file BonHeuristicLocalBranching.hpp.
References HeuristicLocalBranching().
virtual void Bonmin::HeuristicLocalBranching::setModel | ( | CbcModel * | model | ) | [virtual] |
Update model.
virtual void Bonmin::HeuristicLocalBranching::validate | ( | ) | [virtual] |
Validate model i.e. sets when_ to 0 if necessary.
int Bonmin::HeuristicLocalBranching::solution | ( | double & | objectiveValue, |
double * | newSolution | ||
) | [virtual] |
Runs heuristic.
Implements Bonmin::LocalSolverBasedHeuristic.
static void Bonmin::HeuristicLocalBranching::registerOptions | ( | Ipopt::SmartPtr< Bonmin::RegisteredOptions > | roptions | ) | [static] |
Register the options common to all local search based heuristics.
Reimplemented from Bonmin::LocalSolverBasedHeuristic.
void Bonmin::HeuristicLocalBranching::Initialize | ( | Ipopt::SmartPtr< Ipopt::OptionsList > | options | ) |
Initiaize using passed options.
Reimplemented from Bonmin::LocalSolverBasedHeuristic.
int Bonmin::HeuristicLocalBranching::howOften_ [private] |
How often to do (code can change)
Definition at line 51 of file BonHeuristicLocalBranching.hpp.
int Bonmin::HeuristicLocalBranching::numberSolutions_ [private] |
Number of solutions so we can do something at solution.
Definition at line 53 of file BonHeuristicLocalBranching.hpp.