View source: R/PRE_FATE.params_multipleSet.R
PRE_FATE.params_multipleSet | R Documentation |
FATE
simulationThis script is designed to create multiple sets of parameters
using Latin Hypercube Sampling to help find best combination of parameters
(see Details
)
PRE_FATE.params_multipleSet(
name.simulation.1,
name.simulation.2 = NULL,
file.simulParam.1,
file.simulParam.2 = NULL,
no_simulations,
opt.folder.name = "FATE_simulation_MULTIPLE_SET",
opt.seed = NULL,
opt.percent_maxAbund = 0.5,
opt.percent_seeding = 0.5,
opt.percent_light = 0.5,
opt.percent_soil = 0.5,
do.max_abund_low = TRUE,
do.max_abund_medium = TRUE,
do.max_abund_high = TRUE,
do.seeding_duration = TRUE,
do.seeding_timestep = TRUE,
do.seeding_input = TRUE,
do.potential_fecundity = TRUE,
do.no_strata = TRUE,
do.LIGHT.thresh_medium = TRUE,
do.LIGHT.thresh_low = TRUE,
do.SOIL.init = TRUE,
do.SOIL.retention = TRUE,
do.DISPERSAL.mode = TRUE,
do.HABSUIT.mode = TRUE
)
name.simulation.1 |
a |
name.simulation.2 |
(optional) default |
file.simulParam.1 |
a |
file.simulParam.2 |
(optional) default |
no_simulations |
an |
opt.folder.name |
(optional) default
|
opt.seed |
(optional) default |
opt.percent_maxAbund |
default |
opt.percent_seeding |
default |
opt.percent_light |
default |
opt.percent_soil |
default |
do.max_abund_low |
default |
do.max_abund_medium |
default |
do.max_abund_high |
default |
do.seeding_duration |
default |
do.seeding_timestep |
default |
do.seeding_input |
default |
do.potential_fecundity |
default |
do.no_strata |
default |
do.LIGHT.thresh_medium |
default |
do.LIGHT.thresh_low |
default |
do.SOIL.init |
default |
do.SOIL.retention |
default |
do.DISPERSAL.mode |
default |
do.HABSUIT.mode |
default |
A FATE
simulation requires several parameters to define general
characteristics of the simulation : they are saved within a
Global_parameters file (see
PRE_FATE.params_globalParameters
). To fit the model to a
particular area and set of Plant Functional Groups (PFG), these are the
parameters that should be optimized, since they are not data-dependant,
unlike, for example, parameters related to PFG (height, maturity, dispersal
distances, soil tolerance, etc).
(Note : this is true, except when varying the number of strata, which will have an impact on some parameters within SUCC and LIGHT PFG parameter files.)
The main idea is to start from a complete simulation folder, to
select the parameters that should vary, and to create new parameter files
with new parameter values based on pre-existing values.
Three possible scenarios are available :
requested parameter values are extracted from the given simulation file
ranges are assigned to each parameter according to the specified
value
e.g. : if opt.percent_seeding = 0.5
, and
do.seeding_duration
is asked, values will be generated for this
parameter between :
\text{SEEDING_DURATION} \pm \text{SEEDING_DURATION} *
\frac{50}{100}
according to the required number of parameter sets to be produced
(no_simulations
), Latin Hypercube Sampling is applied to select
each new parameter values
parameter files are created for these new parameter values
same as 1st scenario
ranges assigned to each parameter correspond to the extracted
values (e.g. : if do.seeding_duration is asked, values will be
generated for this parameter between : SEEDING_DURATION
(file_simulation.1)
and SEEDING_DURATION (file_simulation.2)
same as 2nd scenario, except that the two given simulation files
come from two different simulation folders
Latin Hypercube Sampling is a statistical method to generate a sampling of parameter values from a multidimensional space, while ensuring a good representation of the real variability. The range of each parameter is known, and depending on the number of set of parameters asked to be obtained at the end, each range is more or less finely cut and values are drawn in order to explore the whole space of combinations.
A new folder containing the different sets of parameters asked.
Depending on what elements have been asked to be varied, three types of files can have been modified :
the global parameter file
the PFG succession files
the PFG light succession files
Below are listed the parameters that can change (if selected) within each file :
Into the name.simulation/DATA/GLOBAL_PARAMETERS
folder :
NO_STRATA
SEEDING_DURATION
SEEDING_TIMESTEP
SEEDING_INPUT
POTENTIAL_FECUNDITY
MAX_ABUND_LOW
MAX_ABUND_MEDIUM
MAX_ABUND_HIGH
If the simulation includes light interaction :
LIGHT_THRESH_MEDIUM
LIGHT_THRESH_LOW
If the simulation includes soil interaction :
SOIL_INIT
SOIL_RETENTION
If the simulation includes dispersal :
DISPERSAL_MODE
If the simulation includes habitat suitability :
HABSUIT_MODE
Into the name.simulation/DATA/PFGS/SUCC
folder :
STRATA
MAX_ABUNDANCE
IMM_SIZE
CHANG_STR_AGES
Into the name.simulation/DATA/PFGS/LIGHT
folder :
LIGHT_TOL
Billur Bektas, Maya Guéguen
designLHD
,
PRE_FATE.skeletonDirectory
,
PRE_FATE.params_globalParameters
,
PRE_FATE.params_PFGsuccession
,
PRE_FATE.params_PFGlight
,
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.