flsgen_structure {rflsgen} | R Documentation |
Landscape structure solver
Description
Find landscape structures satisfying user targets
Usage
flsgen_structure(
targets_str,
targets_file,
nb_solutions = 1,
time_limit = 60,
search_strategy = "DEFAULT"
)
Arguments
targets_str |
JSON-formatted string describing user targets |
targets_file |
JSON file describing user targets |
nb_solutions |
Number of solutions to generate |
time_limit |
Time limit in seconds (if time_limit = 0, no time limit is set) |
search_strategy |
Choco solver search strategy (for more details refer to Choco solver documentation: https://choco-solver.org/docs/) |
Details
The input user targets must be either specified as a JSON-formatted string (targets_str parameter) or as a JSON file (target_file parameter).
Value
A vector of JSON-formatted landscape structures satisfying user targets.
Examples
## Not run:
json <- "{
\"nbRows\" : 200,
\"nbCols\" : 200,
{
\"name\" : \"Class A\",
\"NP\" : [1, 10],
\"AREA\" : [300, 4000],
\"CA\" : [1000, 5000],
\"MESH\" : [225, 225]
},
{
\"name\" : \"Class B\",
\"NP\" : [2, 8],
\"AREA\" : [200, 4000],
\"PLAND\" : [40, 40]
},
{
\"name\" : \"Class C\",
\"NP\" : [5, 7],
\"AREA\" : [800, 1200]
}
]
}"
structure <- flsgen_structure(targets_str = json)
## End(Not run)
[Package rflsgen version 1.2.2 Index]