#include <BonFixAndSolveHeuristic.hpp>
Public Member Functions | |
FixAndSolveHeuristic () | |
Default constructor. More... | |
FixAndSolveHeuristic (BonminSetup *setup) | |
Constructor with setup. More... | |
FixAndSolveHeuristic (const FixAndSolveHeuristic &other) | |
Copy constructor. More... | |
virtual CbcHeuristic * | clone () const |
Virtual constructor. More... | |
virtual | ~FixAndSolveHeuristic () |
Destructor. More... | |
int | solution (double &objectiveValue, double *newSolution) |
Runs heuristic. More... | |
void | Initialize (Ipopt::SmartPtr< Ipopt::OptionsList > options) |
Initiaize using passed options. More... | |
![]() | |
LocalSolverBasedHeuristic () | |
Default constructor. More... | |
LocalSolverBasedHeuristic (BonminSetup *setup) | |
Constructor with setup. More... | |
LocalSolverBasedHeuristic (const LocalSolverBasedHeuristic &other) | |
Copy constructor. More... | |
~LocalSolverBasedHeuristic () | |
Destructor. 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, 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 void | registerOptions (Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions) |
Register the options common to all local search based heuristics. More... | |
Additional Inherited Members | |
![]() | |
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) |
![]() | |
BonminSetup * | setup_ |
Setup to use for local searches (will make copies). More... | |
Definition at line 14 of file BonFixAndSolveHeuristic.hpp.
Bonmin::FixAndSolveHeuristic::FixAndSolveHeuristic | ( | ) |
Default constructor.
Definition at line 16 of file BonFixAndSolveHeuristic.cpp.
Bonmin::FixAndSolveHeuristic::FixAndSolveHeuristic | ( | BonminSetup * | setup | ) |
Constructor with setup.
Definition at line 21 of file BonFixAndSolveHeuristic.cpp.
Bonmin::FixAndSolveHeuristic::FixAndSolveHeuristic | ( | const FixAndSolveHeuristic & | other | ) |
Copy constructor.
Definition at line 28 of file BonFixAndSolveHeuristic.cpp.
|
virtual |
Destructor.
Definition at line 32 of file BonFixAndSolveHeuristic.cpp.
|
inlinevirtual |
Virtual constructor.
Implements Bonmin::LocalSolverBasedHeuristic.
Definition at line 24 of file BonFixAndSolveHeuristic.hpp.
|
virtual |
Runs heuristic.
Implements Bonmin::LocalSolverBasedHeuristic.
Definition at line 37 of file BonFixAndSolveHeuristic.cpp.
|
static |
Register the options common to all local search based heuristics.
Definition at line 75 of file BonFixAndSolveHeuristic.cpp.
void Bonmin::FixAndSolveHeuristic::Initialize | ( | Ipopt::SmartPtr< Ipopt::OptionsList > | options | ) |
Initiaize using passed options.
Definition at line 89 of file BonFixAndSolveHeuristic.cpp.