create_eligible_PU_set: Create set of planning units eligible for adding species into

create_eligible_PU_setR Documentation

Create set of planning units eligible for adding species into

Description

When wrapping a species distribution around a Xu biodiversity problem, the first instance of any new species is added to the solution set of the original Xu problem that is being wrapped. However, if more than one instance of the new species is being added in the wrapped problem, the extra instances could go in a) just the new planning units outside the original Xu problem added for the wrapper, or b) in both the original solution set and the newly added planning units. This function builds that target set of planning units based on the value of the dep_set_PUs_eligible flag passed to it.

Usage

create_eligible_PU_set(Xu_dep_set, extra_PUs, dep_set_PUs_eligible)

Arguments

Xu_dep_set

integer vector of planning unit IDs for the solution set of the original Xu problem being wrapped around

extra_PUs

integer vector of plannning unit IDs being added to the original Xu problem to make the wrapped problem

dep_set_PUs_eligible

boolean indicating whether new species instances can be added to the original Xu problem's solution set in addition to the adding them to the newly added planning units; TRUE implies new species instances can be added to both sets; FALSE implies new species instances can only be added to the newly added planning units

Value

set of planning unit IDs where new species can be placed


langfob/bdpg documentation built on Dec. 8, 2022, 5:33 a.m.