![]() |
FMT 1.2.0
Forest management tools for forest planning
|
Operating area giving information about its mask, neighbors and neighbors perimeter. More...
#include <FMTOperatingArea.h>
Public Member Functions | |
| 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. | |
Protected Attributes | |
| 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. | |
Friends | |
| class | boost::serialization::access |
| Serialize the FMTOperatingArea for multiprocessing across multiple cpus (pickle in Python). | |
Operating area giving information about its mask, neighbors and neighbors perimeter.
The operating area has to be based on static themes not used within transitions.
| Heuristics::FMTOperatingArea::FMTOperatingArea | ( | const Core::FMTMask & | lmask, |
| const double & | lneighborsperimeter | ||
| ) |
Main constructor for FMTOperatingArea from a mask and a neighbors perimeter.
Before synchronizing to the solver interface, the user has to provide the green up, return time and other parameters for each operating area.
| [in] | lmask | the mask. |
| [in] | lneighborsperimeter | the neighbors perimeter. |
|
default |
Default constructor for FMTOperatingArea.
|
default |
Copy constructor for FMTOperatingArea.
| [in] | rhs | the FMTOperatingArea to copy. |
|
virtualdefault |
Default destructor for FMTOperatingArea.
| double Heuristics::FMTOperatingArea::getArea | ( | ) | const |
Get the area of the operating area.
| Core::FMTMask Heuristics::FMTOperatingArea::getMask | ( | ) | const |
Return the mask of the operating area.
| std::vector< Core::FMTMask > Heuristics::FMTOperatingArea::getNeighbors | ( | ) | const |
Return a copy of the neighbors masks of the operating area.
| double Heuristics::FMTOperatingArea::getNeighborsPerimeter | ( | ) | const |
Return the percentage of perimeter the operating area needs to share with another operating area to be considered a neighbor.
| bool Heuristics::FMTOperatingArea::operator!= | ( | const FMTOperatingArea & | rhs | ) | const |
Comparison operator for FMTOperatingArea.
| [in] | rhs | the FMTOperatingArea to compare to. |
| FMTOperatingArea & Heuristics::FMTOperatingArea::operator+= | ( | const double & | value | ) |
Add area to the operating area.
| [in] | value | the area to add. |
|
default |
Copy assignment operator for FMTOperatingArea.
| [in] | rhs | the FMTOperatingArea to copy. |
| bool Heuristics::FMTOperatingArea::operator== | ( | const FMTOperatingArea & | rhs | ) | const |
Comparison operator for FMTOperatingArea.
| [in] | rhs | the FMTOperatingArea to compare to. |
| FMTOperatingArea Heuristics::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.
| [in] | filter | the mask filter. |
| [in] | basethemes | the base themes. |
| FMTOperatingArea Heuristics::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.
| [in] | filter | the mask filter. |
| [in] | presolvedthemes | the presolved themes. |
| void Heuristics::FMTOperatingArea::setArea | ( | const double & | newarea | ) |
Set the area of the operating area.
| [in] | newarea | the new area. |
| void Heuristics::FMTOperatingArea::setNeighbors | ( | const std::vector< Core::FMTMask > & | lneighbors | ) |
Set the neighbors masks of the operating area.
| [in] | lneighbors | the neighbors masks. |
|
friend |
Serialize the FMTOperatingArea for multiprocessing across multiple cpus (pickle in Python).
| Archive | the archive type. |
| [in,out] | ar | the archive to serialize to or from. |
| [in] | version | the serialization version. |
|
protected |
The initial area of the operating area used as big M for the MIP.
|
protected |
The mask describing the operating area.
|
protected |
Neighbors mask of the operating area.
|
protected |
neighborsperimeter is the ratio a operatingarea needs to share to a other operatingarea to be considered neighbor.