compute_num_spp_covered_by_solution: Compute number of species whose targets are met by a...

compute_num_spp_covered_by_solutionR Documentation

Compute number of species whose targets are met by a candidate solution

Description

Compute number of species whose targets are met by a candidate solution

Usage

compute_num_spp_covered_by_solution(cand_sol_PU_IDs, bpm, spp_rep_targets)

Arguments

cand_sol_PU_IDs

vector of only the planning unit IDs that are included in the candidate solution

bpm

bipartite matrix; integer matrix with one row for each species and one column for each planning unit. Each matrix entry specifies whether that species occupies that planning unit; 1 indicates the species does occupy the planning unit and 0 indicates it does not. Same as occ_matrix.

spp_rep_targets

numeric vector with a target abundance for each species in the problem

Value

number of species whose targets are met by the candidate solution


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