10#ifndef FMToperatingareaclusterbinary_Hm_included
11#define FMToperatingareaclusterbinary_Hm_included
13#include <boost/serialization/serialization.hpp>
14#include <boost/serialization/nvp.hpp>
15#include <boost/serialization/export.hpp>
67 std::vector<FMTOperatingAreaClusterBinary>
filterNeighbors(std::vector<FMTOperatingAreaClusterBinary> potentiallink)
const;
76 const std::vector<Core::FMTTheme>& themes)
const;
109 friend class boost::serialization::access;
117 template<
class Archive>
118 void serialize(Archive& ar,
const unsigned int version)
120 ar & boost::serialization::make_nvp(
"operatingarea", boost::serialization::base_object<FMTOperatingArea>(*
this));
121 ar & boost::serialization::make_nvp(
"variable", m_variable);
122 ar & boost::serialization::make_nvp(
"statistic", m_statistic);
#define FMTEXPORT
Definition: FMTutility.h:125
Class letting the user formulate a constraint in the optimize section or collect data across the grap...
Definition: FMTOutput.h:37
Definition of a non clustered operating area, used by the FMTOperatingAreaCluster.
Definition: FMTOperatingAreaClusterBinary.h:32
const int & getVariable() const
Return the binary variable of the LP model representing the operating area.
Definition: FMTOperatingAreaClusterBinary.h:94
FMTOperatingAreaClusterBinary()=default
Default constructor for FMTOperatingAreaClusterBinary.
~FMTOperatingAreaClusterBinary()=default
Default destructor for FMTOperatingAreaClusterBinary.
void setVariable(const int &lvariable)
Set the binary variable of the LP model representing the operating area.
Core::FMTOutput getOutputIntersect(const Core::FMTOutput &output, const std::vector< Core::FMTTheme > &themes) const
Intersect the mask of an output with the mask of the operating area to get an output targeting only t...
void setStatistic(const double &statvalue)
Set the statistic of the cluster binary used in the global objective to minimize heterogeneity.
const double & getStatistic() const
Return the statistic value of the operating area.
Definition: FMTOperatingAreaClusterBinary.h:103
FMTOperatingAreaClusterBinary(const FMTOperatingArea &oparea)
Construct a FMTOperatingAreaClusterBinary from a base operating area.
std::vector< FMTOperatingAreaClusterBinary > filterNeighbors(std::vector< FMTOperatingAreaClusterBinary > potentiallink) const
Filter a list of potential binary links by looking at the neighbors of each binary to keep only the r...
FMTOperatingAreaClusterBinary(const FMTOperatingAreaClusterBinary &)=default
Default copy constructor for FMTOperatingAreaClusterBinary.
Operating area giving information about its mask, neighbors and neighbors perimeter.
Definition: FMTOperatingArea.h:29
The Core namespace provides classes for simulating stands/strata growth/harvest through time.
Definition: FMTAction.h:34
Namespace regrouping all tools for solving LP/MIP problems using an heuristic.
Definition: FMTAreaParser.h:47