10#ifndef FMToperatingarea_H_INCLUDED
11#define FMToperatingarea_H_INCLUDED
17#include <boost/serialization/serialization.hpp>
18#include <boost/serialization/nvp.hpp>
19#include <boost/serialization/export.hpp>
34 friend class boost::serialization::access;
35 template<
class Archive>
36 void serialize(Archive& ar,
const unsigned int version)
38 ar & BOOST_SERIALIZATION_NVP(mask);
39 ar & BOOST_SERIALIZATION_NVP(neighbors);
40 ar & BOOST_SERIALIZATION_NVP(neihgborsperimeter);
41 ar & BOOST_SERIALIZATION_NVP(_area);
#define FMTEXPORT
Definition: FMTutility.hpp:92
Definition: FMTmask.hpp:96
Definition: FMTmaskfilter.hpp:27
Definition: FMToperatingarea.hpp:29
std::vector< Core::FMTmask > neighbors
Neighbors mask of the operating area.
Definition: FMToperatingarea.hpp:49
FMToperatingarea(const FMToperatingarea &rhs)=default
FMToperatingarea(const Core::FMTmask &lmask, const double &lneihgborsperimeter)
void setarea(const double &newarea)
Core::FMTmask mask
The mask describing the operating area.
Definition: FMToperatingarea.hpp:46
double getneihgborsperimeter() const
FMToperatingarea postsolveoperatingarea(const Core::FMTmaskfilter &filter, const std::vector< Core::FMTtheme > &basethemes) const
double neihgborsperimeter
neighborsperimeter is the ratio a operatingarea needs to share to a other operatingarea to be conside...
Definition: FMToperatingarea.hpp:52
double _area
The initial area of the operating area used as big M for the MIP.
Definition: FMToperatingarea.hpp:55
Core::FMTmask getmask() const
virtual ~FMToperatingarea()=default
FMToperatingarea presolveoperatingarea(const Core::FMTmaskfilter &filter, const std::vector< Core::FMTtheme > &presolvedthemes) const
void setneighbors(const std::vector< Core::FMTmask > &lneighbors)
std::vector< Core::FMTmask > getneighbors() const
FMToperatingarea()=default
Definition: FMToperatingarea.hpp:149
FMToperatingareacomparator(const FMToperatingarea &oparea)
bool operator()(const FMToperatingarea &oparea) const
FMToperatingareacomparator(const Core::FMTmask &lmask)
Namespace regrouping all tools for solving LP/MIP problems using an heuristic.
Definition: FMTareaparser.hpp:43