|
Bonmin 1.8.8
|
#include <BonLocalSolverBasedHeuristic.hpp>
Inheritance diagram for Bonmin::LocalSolverBasedHeuristic:
Collaboration diagram for Bonmin::LocalSolverBasedHeuristic:Public Member Functions | |
| LocalSolverBasedHeuristic () | |
| Default constructor. More... | |
| LocalSolverBasedHeuristic (BonminSetup *setup) | |
| Constructor with setup. More... | |
| LocalSolverBasedHeuristic (const LocalSolverBasedHeuristic &other) | |
| Copy constructor. More... | |
| ~LocalSolverBasedHeuristic () | |
| Destructor. More... | |
| virtual CbcHeuristic * | clone () const =0 |
| Virtual copy constructor. More... | |
| LocalSolverBasedHeuristic & | operator= (const LocalSolverBasedHeuristic &rhs) |
| Assignment operator. More... | |
| virtual void | resetModel (CbcModel *model) |
| Resets stuff if model changes. More... | |
| void | setSetup (BonminSetup *setup) |
| Change setup used for heuristic. More... | |
| virtual int | solution (double &objectiveValue, double *newSolution)=0 |
| Performs heuristic More... | |
| virtual int | solution (double &objectiveValue, double *newSolution, OsiCuts &cs) |
| Performs heuristic which adds cuts More... | |
| int | doLocalSearch (OsiTMINLPInterface *solver, double *solution, double &solValue, double cutoff, std::string prefix="local_solver.") const |
| Do a local search based on setup and passed solver. More... | |
| virtual void | setupDefaults (Ipopt::SmartPtr< Ipopt::OptionsList > options) |
| Setup the defaults. More... | |
| void | Initialize (Ipopt::SmartPtr< Ipopt::OptionsList > options) |
| Initiaize using passed options. More... | |
Static Public Member Functions | |
| static void | registerOptions (Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions) |
| Register the options common to all local search based heuristics. More... | |
Static Protected Member Functions | |
| static void | changeIfNotSet (Ipopt::SmartPtr< Ipopt::OptionsList > options, std::string prefix, const std::string &option, const std::string &value) |
| static void | changeIfNotSet (Ipopt::SmartPtr< Ipopt::OptionsList > options, std::string prefix, const std::string &option, const double &value) |
| static void | changeIfNotSet (Ipopt::SmartPtr< Ipopt::OptionsList > options, std::string prefix, const std::string &option, const int &value) |
Protected Attributes | |
| BonminSetup * | setup_ |
| Setup to use for local searches (will make copies). More... | |
Definition at line 15 of file BonLocalSolverBasedHeuristic.hpp.
| Bonmin::LocalSolverBasedHeuristic::LocalSolverBasedHeuristic | ( | ) |
Default constructor.
| Bonmin::LocalSolverBasedHeuristic::LocalSolverBasedHeuristic | ( | BonminSetup * | setup | ) |
Constructor with setup.
| Bonmin::LocalSolverBasedHeuristic::LocalSolverBasedHeuristic | ( | const LocalSolverBasedHeuristic & | other | ) |
Copy constructor.
| Bonmin::LocalSolverBasedHeuristic::~LocalSolverBasedHeuristic | ( | ) |
Destructor.
|
pure virtual |
Virtual copy constructor.
Implemented in Bonmin::DummyPump, Bonmin::FixAndSolveHeuristic, Bonmin::HeuristicLocalBranching, Bonmin::HeuristicRINS, and Bonmin::PumpForMinlp.
| LocalSolverBasedHeuristic & Bonmin::LocalSolverBasedHeuristic::operator= | ( | const LocalSolverBasedHeuristic & | rhs | ) |
Assignment operator.
|
inlinevirtual |
Resets stuff if model changes.
Definition at line 40 of file BonLocalSolverBasedHeuristic.hpp.
|
inline |
Change setup used for heuristic.
Definition at line 45 of file BonLocalSolverBasedHeuristic.hpp.
|
pure virtual |
Performs heuristic
Implemented in Bonmin::DummyPump, Bonmin::FixAndSolveHeuristic, Bonmin::HeuristicLocalBranching, Bonmin::HeuristicRINS, and Bonmin::PumpForMinlp.
|
inlinevirtual |
Performs heuristic which adds cuts
Definition at line 54 of file BonLocalSolverBasedHeuristic.hpp.
| int Bonmin::LocalSolverBasedHeuristic::doLocalSearch | ( | OsiTMINLPInterface * | solver, |
| double * | solution, | ||
| double & | solValue, | ||
| double | cutoff, | ||
| std::string | prefix = "local_solver." |
||
| ) | const |
Do a local search based on setup and passed solver.
|
static |
Register the options common to all local search based heuristics.
|
virtual |
Setup the defaults.
Reimplemented in Bonmin::PumpForMinlp.
| void Bonmin::LocalSolverBasedHeuristic::Initialize | ( | Ipopt::SmartPtr< Ipopt::OptionsList > | options | ) |
Initiaize using passed options.
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
Setup to use for local searches (will make copies).
Definition at line 75 of file BonLocalSolverBasedHeuristic.hpp.