![]() |
FMT 1.2.0
Forest management tools for forest planning
|
Definition of a non clustered operating area, used by the FMTOperatingAreaCluster. More...
#include <FMTOperatingAreaClusterBinary.h>
Public Member Functions | |
| FMTOperatingAreaClusterBinary ()=default | |
| Default constructor for FMTOperatingAreaClusterBinary. | |
| FMTOperatingAreaClusterBinary (const FMTOperatingAreaClusterBinary &)=default | |
| Default copy constructor for FMTOperatingAreaClusterBinary. | |
| FMTOperatingAreaClusterBinary & | operator= (const FMTOperatingAreaClusterBinary &)=default |
| Default copy assignment operator for FMTOperatingAreaClusterBinary. | |
| ~FMTOperatingAreaClusterBinary ()=default | |
| Default destructor for FMTOperatingAreaClusterBinary. | |
| 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 real neighbors. | |
| 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 the operating area. | |
| void | setStatistic (const double &statvalue) |
| Set the statistic of the cluster binary used in the global objective to minimize heterogeneity. | |
| void | setVariable (const int &lvariable) |
| Set the binary variable of the LP model representing the operating area. | |
| const int & | getVariable () const |
| Return the binary variable of the LP model representing the operating area. | |
| const double & | getStatistic () const |
| Return the statistic value of the operating area. | |
Public Member Functions inherited from Heuristics::FMTOperatingArea | |
| FMTOperatingArea & | operator+= (const double &value) |
| Add area to the operating area. | |
| std::vector< Core::FMTMask > | getNeighbors () const |
| Return a copy of the neighbors masks of the operating area. | |
| double | getArea () const |
| Get the area of the operating area. | |
| double | getNeighborsPerimeter () const |
| Return the percentage of perimeter the operating area needs to share with another operating area to be considered a neighbor. | |
| Core::FMTMask | getMask () const |
| Return the mask of the operating area. | |
| void | setNeighbors (const std::vector< Core::FMTMask > &lneighbors) |
| Set the neighbors masks of the operating area. | |
| FMTOperatingArea (const Core::FMTMask &lmask, const double &lneighborsperimeter) | |
| Main constructor for FMTOperatingArea from a mask and a neighbors perimeter. | |
| void | setArea (const double &newarea) |
| Set the area of the operating area. | |
| FMTOperatingArea ()=default | |
| Default constructor for FMTOperatingArea. | |
| FMTOperatingArea (const FMTOperatingArea &rhs)=default | |
| Copy constructor for FMTOperatingArea. | |
| FMTOperatingArea & | operator= (const FMTOperatingArea &rhs)=default |
| Copy assignment operator for FMTOperatingArea. | |
| bool | operator== (const FMTOperatingArea &rhs) const |
| Comparison operator for FMTOperatingArea. | |
| bool | operator!= (const FMTOperatingArea &rhs) const |
| Comparison operator for FMTOperatingArea. | |
| virtual | ~FMTOperatingArea ()=default |
| Default destructor for FMTOperatingArea. | |
| FMTOperatingArea | preSolveOperatingArea (const Core::FMTMaskFilter &filter, const std::vector< Core::FMTTheme > &presolvedthemes) const |
| Return a presolved FMTOperatingArea using a mask filter and a subset of the original themes. | |
| FMTOperatingArea | postSolveOperatingArea (const Core::FMTMaskFilter &filter, const std::vector< Core::FMTTheme > &basethemes) const |
| Return a postsolved FMTOperatingArea using a mask filter and the original themes. | |
Friends | |
| class | boost::serialization::access |
Additional Inherited Members | |
Protected Attributes inherited from Heuristics::FMTOperatingArea | |
| Core::FMTMask | m_mask |
| The mask describing the operating area. | |
| std::vector< Core::FMTMask > | m_neighbors |
| Neighbors mask of the operating area. | |
| double | m_neighborsperimeter |
| neighborsperimeter is the ratio a operatingarea needs to share to a other operatingarea to be considered neighbor. | |
| double | m_area |
| The initial area of the operating area used as big M for the MIP. | |
Definition of a non clustered operating area, used by the FMTOperatingAreaCluster.
Each cluster binary has a binary variable id, a maximal and minimal row statistic and the statistic value of the binary used to compute the objective function.
|
default |
Default constructor for FMTOperatingAreaClusterBinary.
|
default |
Default copy constructor for FMTOperatingAreaClusterBinary.
|
default |
Default destructor for FMTOperatingAreaClusterBinary.
| Heuristics::FMTOperatingAreaClusterBinary::FMTOperatingAreaClusterBinary | ( | const FMTOperatingArea & | oparea | ) |
Construct a FMTOperatingAreaClusterBinary from a base operating area.
| [in] | oparea | the operating area. |
| std::vector< FMTOperatingAreaClusterBinary > Heuristics::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 real neighbors.
| [in] | potentiallink | the potential binary links. |
| Core::FMTOutput Heuristics::FMTOperatingAreaClusterBinary::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 the operating area.
| [in] | output | the output. |
| [in] | themes | the themes. |
|
inline |
Return the statistic value of the operating area.
|
inline |
Return the binary variable of the LP model representing the operating area.
|
default |
Default copy assignment operator for FMTOperatingAreaClusterBinary.
| void Heuristics::FMTOperatingAreaClusterBinary::setStatistic | ( | const double & | statvalue | ) |
Set the statistic of the cluster binary used in the global objective to minimize heterogeneity.
| [in] | statvalue | the statistic value. |
| void Heuristics::FMTOperatingAreaClusterBinary::setVariable | ( | const int & | lvariable | ) |
Set the binary variable of the LP model representing the operating area.
| [in] | lvariable | the binary variable. |
|
friend |