10#ifndef FMTlpheuristic_H_INCLUDED
11#define FMTlpheuristic_H_INCLUDED
20#include <boost/serialization/serialization.hpp>
21#include <boost/serialization/nvp.hpp>
22#include <boost/serialization/export.hpp>
45 friend class boost::serialization::access;
46 template<
class Archive>
47 void save(Archive& ar,
const unsigned int version)
const
49 ar & boost::serialization::make_nvp(
"lpsolve", boost::serialization::base_object<FMTlpsolver>(*
this));
50 ar & BOOST_SERIALIZATION_NVP(seed);
51 ar & BOOST_SERIALIZATION_NVP(usingsolvercopy);
57 template<
class Archive>
58 void load(Archive& ar,
const unsigned int version)
60 ar & boost::serialization::make_nvp(
"lpsolve", boost::serialization::base_object<FMTlpsolver>(*
this));
61 this->passinmessagehandler(*this->_logger);
62 ar & BOOST_SERIALIZATION_NVP(seed);
63 this->setgeneratorseed(seed);
64 ar & BOOST_SERIALIZATION_NVP(usingsolvercopy);
66 BOOST_SERIALIZATION_SPLIT_MEMBER()
70 std::default_random_engine generator;
82 void setgeneratorseed(const
size_t& lseed);
122 virtual
bool branchnboundsolve();
127 virtual
bool greedypass(const
double& initsol,const
unsigned int& iteration);
128 virtual
void paralleloptimize(const
double& initbestsolution, const
unsigned int& iterations,const
double& maxtime, const std::chrono::steady_clock::time_point& Starttime);
#define FMTEXPORT
Definition: FMTutility.hpp:92
Definition: FMTlpheuristic.hpp:40
Definition: FMTlpsolver.hpp:39
Namespace regrouping all tools for solving LP/MIP problems using an heuristic.
Definition: FMTareaparser.hpp:43
Namespace containing all enumerator and classes used to construct or manipulate the different type of...
Definition: FMTareaparser.hpp:50