Processing math: 100%

Provides the maximum values of benefits to achieve for each feature given a set of data inputs.

getPotentialBenefit(x)

Arguments

x

data-class object.

Value

data.frame.

Details

For a given feature s, let Is be the set of planning units associated with s, let ris is the amount of feature s in planning unit i, let Ks be the set of threats associated with s, and let Ki be the set of threats associated with i. The local benefit associated with s in a unit i is given by:

bis=pisrisbis=kKiKsxik|KiKs|ris

Where xik is a decision variable such that xik=1 if an action againts threat k is applied in unit i, and xik=0, otherwise. This expression for the probability of persistence of the feature (pis) is defined only for the cases where we work with values of binary intensities (presence or absence of threats). See the sensitivities vignette to know the work with continuous intensities.

While the total benefit is calculated as the sum of the local benefits per feature:

bs=iIskKiKsxik|KiKs|ris

Since the potential benefit is being calculated, all variables xik are assumed to be equal to 1; that is, all possible actions are carried out, and only those that have a lock-out status are kept out of the planning (see inputData() function for more information).

Examples

# set seed for reproducibility
set.seed(14)

## Load data
data(sim_pu_data, sim_features_data, sim_dist_features_data,
sim_threats_data, sim_dist_threats_data, sim_sensitivity_data,
sim_boundary_data)

## Create data instance
problem_data <- inputData(
  pu = sim_pu_data, features = sim_features_data, dist_features = sim_dist_features_data,
  threats = sim_threats_data, dist_threats = sim_dist_threats_data,
  sensitivity = sim_sensitivity_data, boundary = sim_boundary_data
)

## Get maximum benefits to obtain
getPotentialBenefit(problem_data)
#>   feature dist dist_threatened maximum.conservation.benefit
#> 1       1   47              47                            0
#> 2       2   30              28                            2
#> 3       3   66              56                           10
#> 4       4   33              33                            0
#>   maximum.recovery.benefit maximum.benefit
#> 1                       47              47
#> 2                       28              30
#> 3                       56              66
#> 4                       33              33