FMT 0.9.8
Forest management tools for forest planning
Loading...
Searching...
No Matches
FMTlpheuristicmthandler.hpp
Go to the documentation of this file.
1/*
2Copyright (c) 2019 Gouvernement du Québec
3
4SPDX-License-Identifier: LiLiQ-R-1.1
5License-Filename: LICENSES/EN/LiLiQ-R11unicode.txt
6*/
7#ifdef FMTWITHOSI
8
9#ifndef FMTlpheuristicmthandler_H_INCLUDED
10#define FMTlpheuristicmthandler_H_INCLUDED
11
12
13#if defined FMTWITHPYTHON
14 #include "boost/python.hpp"
15#endif
16
17#include "FMTobject.hpp"
18#include <vector>
19
20
21
22
23namespace Heuristics
24{
25 class FMToperatingareascheduler;
26 class FMToperatingareaclusterer;
27 class FMTlpheuristic;
28
30 {
31 double initialsolution;
32 std::vector<FMTlpheuristic*> heuristics;
33 size_t best_heuristic() const;
34 void reset_number_of_threads(const unsigned int& ncpu) const;
35 public:
37 FMTlpheuristicmthandler(std::vector<FMToperatingareascheduler>& lheuristics, const double& linitialsolution);
38 FMTlpheuristicmthandler(std::vector<FMToperatingareaclusterer>& lheuristics, const double& linitialsolution);
39 #if defined FMTWITHPYTHON
40 FMTlpheuristicmthandler(boost::python::list& lheuristics, const double& linitialsolution);
41 #endif
42 size_t initialsolve() const;
43 size_t greedysolve(const unsigned int& iterations, const double& maxtime) const;
44 };
45}
46//BOOST_CLASS_EXPORT_KEY(Heuristics::FMTlpheuristicmthandler)
47#endif
48#endif
#define FMTEXPORT
Definition: FMTutility.hpp:92
Definition: FMTlpheuristicmthandler.hpp:30
FMTlpheuristicmthandler(std::vector< FMToperatingareaclusterer > &lheuristics, const double &linitialsolution)
FMTlpheuristicmthandler(std::vector< FMToperatingareascheduler > &lheuristics, const double &linitialsolution)
size_t greedysolve(const unsigned int &iterations, const double &maxtime) const
Namespace regrouping all tools for solving LP/MIP problems using an heuristic.
Definition: FMTareaparser.hpp:43