FMT 0.9.8
Forest management tools for forest planning
Loading...
Searching...
No Matches
RexportHeuristics.hpp
Go to the documentation of this file.
1/*
2Copyright (c) 2019 Gouvernement du Québec
3
4SPDX-License-Identifier: LiLiQ-R-1.1
5License-Filename: LICENSES/EN/LiLiQ-R11unicode.txt
6*/
7
8#ifndef REXPORTHEURISTICS_H_INCLUDED
9#define REXPORTHEURISTICS_H_INCLUDED
10
11
12#include "FMToperatingarea.hpp"
18#include "FMTlpsolver.hpp"
19#include "Rdefinitions.hpp"
20#include <Rcpp.h>
21
22#ifdef FMTWITHOSI
41#endif
42
43namespace R
44{
46{
47
48 #ifdef FMTWITHOSI
49
50 Rcpp::class_<Heuristics::FMToperatingarea>("FMToperatingarea", "@DocString(FMToperatingarea)")
51 .constructor("@DocString(FMToperatingarea())")
52 .constructor<Core::FMTmask,double>("@DocString(FMToperatingarea(const Core::FMTmask&,const double&))")
53 .method("getneighbors", &Heuristics::FMToperatingarea::getneighbors,
54 "@DocString(FMToperatingarea::getneighbors)")
55 .method("setneighbors", &Heuristics::FMToperatingarea::setneighbors,
56 "@DocString(FMToperatingarea::setneighbors)")
57 .method("getmask", &Heuristics::FMToperatingarea::getmask,
58 "@DocString(FMToperatingarea::getmask)")
59 .method("getneihgborsperimeter", &Heuristics::FMToperatingarea::getneihgborsperimeter,
60 "@DocString(FMToperatingarea::getneihgborsperimeter)");
61
62 Rcpp::class_<Heuristics::FMToperatingareacluster>("FMToperatingareacluster", "@DocString(FMToperatingareacluster)")
63 .constructor("@DocString(FMToperatingareacluster())")
64 .constructor<Heuristics::FMToperatingareacluster,double,double>("@DocString(FMToperatingareacluster(const FMToperatingareacluster&,const double&,const double&))")
66 "@DocString(FMToperatingareacluster::getfilteredcluster)")
68 "@DocString(FMToperatingareacluster::getallmasks)")
70 "@DocString(FMToperatingareacluster::setminimalarea)")
72 "@DocString(FMToperatingareacluster::setmaximalarea)");
73
74 Rcpp::class_<Heuristics::FMToperatingareascheme>("FMToperatingareascheme", "@DocString(FMToperatingareascheme)")
75 .derives<Heuristics::FMToperatingarea>("FMToperatingarea")
76 .constructor("@DocString(FMToperatingareascheme())")
77 .constructor<Heuristics::FMToperatingarea,size_t,size_t,size_t,size_t,size_t,size_t>("@DocString(FMToperatingareascheme(const Heuristics::FMToperatingarea&,const size_t&,const size_t&,const size_t&, const size_t&, const size_t&,double,bool))");
78
79 Rcpp::class_<Heuristics::FMTlpheuristic>("FMTlpheuristic", "@DocString(FMTlpheuristic)")
80 .derives<Core::FMTobject>("FMTobject")
81 .constructor("@DocString(FMTlpheuristic())");
82
83 Rcpp::class_<Heuristics::FMToperatingareascheduler>("FMToperatingareascheduler","@DocString(FMToperatingareascheduler)")
84 .derives<Heuristics::FMTlpheuristic>("FMTlpheuristic")
85 //.derives<Models::FMTlpsolver>("FMTlpsolver")
86 .constructor("@DocString(FMToperatingareascheduler())")
88 "@DocString(FMToperatingareascheduler::initialsolve)")
90 "@DocString(FMToperatingareascheduler::branchnboundsolve)")
92 "@DocString(FMToperatingareascheduler::getsolution)");
93
94 Rcpp::class_<Heuristics::FMToperatingareaclusterer>("FMToperatingareaclusterer", "@DocString(FMToperatingareaclusterer)")
95 .derives<Heuristics::FMTlpheuristic>("FMTlpheuristic")
96 .constructor("@DocString(FMToperatingareaclusterer())")
98 "@DocString(FMToperatingareaclusterer::initialsolve)")
100 "@DocString(FMToperatingareaclusterer::branchnboundsolve)")
102 "@DocString(FMToperatingareaclusterer::getsolution)");
103
104 #endif
105 }
106}
107#endif
RCPP_DEFINEVECTOR(Heuristics::FMToperatingarea)
RCPP_EXPOSED_AS(Heuristics::FMToperatingarea)
RCPP_EXPOSED_WRAP(Heuristics::FMToperatingarea)
Definition: FMTmask.hpp:96
Definition: FMTobject.hpp:50
Definition: FMTlpheuristic.hpp:40
Definition: FMToperatingarea.hpp:29
double getneihgborsperimeter() const
Core::FMTmask getmask() const
void setneighbors(const std::vector< Core::FMTmask > &lneighbors)
std::vector< Core::FMTmask > getneighbors() const
Definition: FMToperatingareacluster.hpp:28
FMToperatingareacluster getfilteredcluster(const Core::FMTmask &filtermask) const
void setmaximalarea(const double &newmaximalarea)
void setminimalarea(const double &newminimalarea)
std::vector< Core::FMTmask > getallmasks() const
Definition: FMToperatingareaclusterbinary.hpp:33
Definition: FMToperatingareaclusterer.hpp:30
std::vector< FMToperatingareacluster > getsolution() const
Definition: FMToperatingareascheduler.hpp:63
std::vector< Core::FMTtimeyieldhandler > getsolution(const std::string &yldname) const
Definition: FMToperatingareascheme.hpp:44
Definition: RexportCore.hpp:153
void exportHeuristics()
Definition: RexportHeuristics.hpp:45