mizerReef methods for mizer's steady-state generics, both of which run
reefSteady() so that the algae and detritus pools are tuned along with
the fish sub-model. mizer::steady() is the superseded name;
mizer::tuneSteadyState() is the current one.
Usage
# S3 method for class 'mizerReef'
steady(
params,
t_max = 100,
t_per = 1.5,
dt = 0.1,
t_save = dt,
tol = 0.1 * dt,
amplitude_tol = 0.01,
amp_rel_tol = 0.01,
extinction_threshold = 1e-06,
return_sim = FALSE,
preserve = c("reproduction_level", "erepro", "R_max"),
progress_bar = TRUE,
info_level = mizer::default_info_level(),
method = c("euler", "predictor_corrector", "tr_bdf2")
)
# S3 method for class 'mizerReef'
tuneSteadyState(
params,
solver = c("project", "newton"),
effort = params@initial_effort,
preserve = c("reproduction_level", "erepro", "R_max"),
info_level = mizer::default_info_level(),
...
)
# S3 method for class 'mizerReef'
findSteadyState(params, solver = c("project", "newton"), ...)Arguments
- params
A
mizerReefobject- t_max, t_per, dt, t_save, tol
Control the projection.
t_saveis accepted for compatibility with the generic and, as in mizer's own method, does not affect the result.- amplitude_tol, amp_rel_tol, extinction_threshold, method, info_level
Passed on to mizer's steady-state machinery.
- return_sim
If TRUE, return the
MizerSimof the run rather than the tunedMizerParams.- preserve
See
reefSteady().- progress_bar
A shiny progress object, or FALSE.
- solver
Only
"project"is supported for reef models.- effort
The fishing effort to hold during the run.
- ...
Passed on to
reefSteady().
Value
A MizerParams object, or a MizerSim when return_sim = TRUE.
Details
tuneSteadyState() supports only solver = "project" here, because
reefSteady() needs the projection in order to let algae co-adapt with
the fish spectra (see reefSteady()).
