summaryrefslogtreecommitdiff
path: root/build/Bonmin/include/coin/BonLocalSolverBasedHeuristic.hpp
diff options
context:
space:
mode:
authorHarpreet2016-09-03 00:34:27 +0530
committerHarpreet2016-09-03 00:34:27 +0530
commit4b64cf486f5c999fd8167758cae27839f3b50848 (patch)
treed9d06639fb7fa61aef59be0363655e4747105ec7 /build/Bonmin/include/coin/BonLocalSolverBasedHeuristic.hpp
parentd19794fb80a271a4c885ed90f97cfc12baa012f2 (diff)
downloadFOSSEE-Optim-toolbox-development-4b64cf486f5c999fd8167758cae27839f3b50848.tar.gz
FOSSEE-Optim-toolbox-development-4b64cf486f5c999fd8167758cae27839f3b50848.tar.bz2
FOSSEE-Optim-toolbox-development-4b64cf486f5c999fd8167758cae27839f3b50848.zip
Structure updated and intqpipopt files added
Diffstat (limited to 'build/Bonmin/include/coin/BonLocalSolverBasedHeuristic.hpp')
-rw-r--r--build/Bonmin/include/coin/BonLocalSolverBasedHeuristic.hpp102
1 files changed, 0 insertions, 102 deletions
diff --git a/build/Bonmin/include/coin/BonLocalSolverBasedHeuristic.hpp b/build/Bonmin/include/coin/BonLocalSolverBasedHeuristic.hpp
deleted file mode 100644
index 3f935e6..0000000
--- a/build/Bonmin/include/coin/BonLocalSolverBasedHeuristic.hpp
+++ /dev/null
@@ -1,102 +0,0 @@
-// (C) Copyright CNRS
-// This code is published under the Eclipse Public License.
-//
-// Authors :
-// Pierre Bonami, LIF Université de la Méditérannée-CNRS
-//
-// Date : 06/18/2008
-
-#ifndef BonLocalSolverBasedHeuristic_H
-#define BonLocalSolverBasedHeuristic_H
-#include "BonBonminSetup.hpp"
-#include "CbcHeuristic.hpp"
-
-namespace Bonmin {
- class LocalSolverBasedHeuristic : public CbcHeuristic {
- public:
- /** Default constructor.*/
- LocalSolverBasedHeuristic();
-
- /** Constructor with setup.*/
- LocalSolverBasedHeuristic(BonminSetup * setup);
-
- /** Copy constructor.*/
- LocalSolverBasedHeuristic(const LocalSolverBasedHeuristic & other);
-
- /** Destructor.*/
- ~LocalSolverBasedHeuristic();
-
- /** Virtual copy constructor.*/
- virtual CbcHeuristic * clone() const = 0;
-
- /// Assignment operator
- LocalSolverBasedHeuristic & operator=(const LocalSolverBasedHeuristic& rhs);
-
-#if 0
- /// update model (This is needed if cliques update matrix etc)
- virtual void setModel(CbcModel * model){throw -1;}
-#endif
- /// Resets stuff if model changes
- virtual void resetModel(CbcModel * model){
- setModel(model);
- }
-
- /** Change setup used for heuristic.*/
- void setSetup(BonminSetup * setup){
- setup_ = setup;
- Initialize(setup_->options());
- }
- /** Performs heuristic */
- virtual int solution(double & objectiveValue,
- double * newSolution)=0;
-
- /** Performs heuristic which adds cuts */
- virtual int solution(double & objectiveValue,
- double * newSolution,
- OsiCuts & cs) {return 0;}
-
-
- /** Do a local search based on setup and passed solver.*/
- int doLocalSearch(OsiTMINLPInterface * solver,
- double *solution,
- double & solValue,
- double cutoff, std::string prefix = "local_solver.") const;
-
- /** Register the options common to all local search based heuristics.*/
- static void registerOptions(Ipopt::SmartPtr<Bonmin::RegisteredOptions> roptions);
-
- /** Setup the defaults.*/
- virtual void setupDefaults(Ipopt::SmartPtr<Ipopt::OptionsList> options);
-
- /** Initiaize using passed options.*/
- void Initialize(Ipopt::SmartPtr<Ipopt::OptionsList> options);
- protected:
- /** Setup to use for local searches (will make copies).*/
- BonminSetup * setup_;
-
- 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);
- private:
- /** Time limit in local search.*/
- double time_limit_;
- /** maximal number of nodes in local search.*/
- int max_number_nodes_;
- /** Maximal number of solutions in local search.*/
- int max_number_solutions_;
- };
-} /** ends namespace Bonmin.*/
-
-#endif
-