An individual management procedure (MP) is run for a number of years, on an operating model, observation error model, control and arguments.
mp(
om,
oem = NULL,
iem = NULL,
control = ctrl,
ctrl = control,
args,
scenario = "NA",
tracking = "missing",
logfile = tempfile(),
verbose = !handlers(global = NA),
parallel = TRUE
)The operating model (OM), an object of class FLom or FLombf.
The observation error model (OEM), an object of class FLoem.
The implementation error model (IEM), an object of class FLiem.
A control structure for the MP run, an object of class mpCtrl.
MSE arguments, list. Only 'iy', the intermediate (starting) year, is required.
Name of the scenario tested in this run, character.
Extra elements (rows) to add to the standard tracking FLQuant in its first dimensions, character.
Should output be verbose or not, logical.
An object of class FLmse.
# dataset contains both OM (FLom) and OEM (FLoem)
data(sol274)
#> Warning: namespace ‘AAP’ is not available and has been replaced
#> by .GlobalEnv when processing object ‘om’
# Set control: sa and hcr
control <- mpCtrl(list(
est = mseCtrl(method=perfect.sa),
hcr = mseCtrl(method=hockeystick.hcr, args=list(lim=0,
trigger=41500, target=0.27))))
tes <- mp(om, oem=oem, ctrl=control, args=list(iy=2021, fy=2034))
#> 2021 - 2022 - 2023 - 2024 - 2025 - 2026 - 2027 - 2028 - 2029 - 2030 - 2031 - 2032 - 2033 -
tes3 <- mp(om, oem=oem, ctrl=control, args=list(iy=2021, fy=2034, frq=3))
#> 2021 - 2024 - 2027 - 2030 - 2033 -
plot(om, list(annual=tes, triannual=tes3))
# 'perfect.oem' is used if none is given
tes <- mp(om, ctrl=control, args=list(iy=2021, fy=2035))
#> 2021 - 2022 - 2023 - 2024 - 2025 - 2026 - 2027 - 2028 - 2029 - 2030 - 2031 - 2032 - 2033 - 2034 -
plot(om, tes)