gen_wrapped_bdprob_COR | R Documentation |
Wrap a given distribution around a given Xu problem's distribution. That is, add more planning units and species to the flat Xu distribution's set of PUs and species so that the Xu distribution is a proper subset of the larger distribution.
gen_wrapped_bdprob_COR(starting_dir, parameters, base_bdprob)
starting_dir |
character string |
parameters |
parameters list for the run, usually derived from project.yaml and can have a varying number and set of elements depending on the run |
base_bdprob |
a correct Xu_bd_problem whose correct solution vector is known |
This is intended as a way of embedding the Xu problem's unrealistic species distribution (i.e., every species occurs on exactly 2 patches) inside a more realistic distribution, but one that has exactly the same correct solution set as the base Xu problem.
Returns a correct wrapped biodiversity problem
At the moment, the only wrapping distribution that there is code for generating is the lognormal distribution. However, the basic idea allows for ANY distribution where the base set of Xu species and planning units is a proper subset of the final distribution.
To enhance the capabilities of this routine to allow other distributions, you would just have to
provide some kind of option(s) to choose what kind of wrapping distribution to use
provide a function to generate that wrapping distribution
replace the call to find_lognormal_to_wrap_around_Xu() with the new function
One caveat is that all species that occur on one and only one planning unit are removed from the distribution. This is because those species would automatically require their planning unit to be included in the final solution and therefore, make the problem simpler for the optimizer.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.