Skip to contents
Show code
library(dplyr)
library(ggplot2)
library(mizer)
library(mizerExperimental)
library(mizerEcopath)
library(knitr)

# The data file lives in `inst/`, which is at a different place depending on
# whether this document is rendered from the package root, from `vignettes/`,
# or from an installed copy of the package.
pkg_file <- function(name) {
    for (p in c(name, file.path("inst", name), file.path("..", "inst", name))) {
        if (file.exists(p)) return(p)
    }
    system.file(name, package = "mizerEcopath")
}

What this document is

This document builds a nine-species mizer model of the Celtic Sea from data assembled by Richard and Jess, and then shows what the resulting model looks like. It is meant to explain the method to Richard and Jess: what each step does, why it is needed, and where the judgement calls are.

The model is built in a sequence of stages. Each stage adds one piece of biological structure, and each stage is arranged so that it does not destroy what the previous stages achieved. That is the central idea, and it is worth stating up front:

  1. Single-species scaffolding. Start from a model in which every species grows and dies according to pure power laws and nothing interacts with anything. Such a model can be solved essentially by hand, so we can put it exactly where we want it.
  2. Fit to size data. Adjust gear selectivity, catchability, growth diffusion and external mortality so that the steady state reproduces the observed catch and survey size distributions, the observed yield, and the observed biomass.
  3. Add physiology. Introduce a finite maximum intake rate and a metabolic cost, without changing the energy available for growth and reproduction, so the fit from stage 2 survives.
  4. Give three species more mortality, because otherwise the diet matrix in the next stage cannot be imposed.
  5. Add species interactions. Replace part of the anonymous “external” food and mortality by explicit predation, chosen to reproduce an observed diet matrix — again arranged to preserve the steady state.
  6. Add the resource. Let a dynamic plankton resource absorb as much as possible of the remaining external food.
  7. Weaken cod’s cannibalism, because it is what keeps cod’s yield curve peaking far above the fishing mortality we want to target.
  8. Add density dependence. Choose the reproduction level of each species so that the model’s yield-versus-fishing-mortality curve peaks near the species’ \(F_{MSY}\).

A theme runs through stages 3, 6, 7 and 8 that is worth naming, because it is what makes the later stages possible at all. Each of them changes only how the model responds to being perturbed, while leaving the steady state — and hence every quantity the earlier stages fitted — exactly where it was. The feeding level, the resource level, the strength of cannibalism and the reproduction level are all knobs of this kind. They are invisible to the biomass, the size distributions and the Ecopath ratios, and they are the only things left to choose once those have been matched.

Stages 1 to 7 are run live below and take about a minute. Stage 8 takes roughly half an hour, so its code is shown but not executed; the recorded results are reproduced instead.

The data

Show code
load(pkg_file("data_Richard_and_Jess.rda"))

The file inst/data_Richard_and_Jess.rda was produced by inst/combine_data_from_Richard_and_Jess.R. It contains three objects.

Species parameters sp

Nine species: Herring, Cod, Megrim, Haddock, Whiting, Hake, Blue whiting, Plaice, Sole.

The life-history parameters (length–weight coefficients a, b, maturity size and age, w_inf, von Bertalanffy k_vb and t0) come from James’s compilation. The predation-kernel parameters come from Jess’s Celtic Sea model: a power_law kernel, which is a smoothly truncated power law specified by the four exponents kernel_l_l, kernel_u_l, kernel_l_r, kernel_u_r rather than by the usual lognormal beta/sigma. The observed biomasses are Richard’s, in t/km².

Show code
sp |>
    select(species, a, b, w_mat, age_mat, w_inf, k_vb,
           biomass_observed, l_max, biomass_cutoff) |>
    kable(digits = 3,
          caption = "Life-history and observation parameters.")
Life-history and observation parameters.
species a b w_mat age_mat w_inf k_vb biomass_observed l_max biomass_cutoff
Herring 0.005 3.10 81.00 2.994 212.65 0.440 0.716 40.7 59.368
Cod 0.007 3.08 3214.00 3.567 19200.00 0.230 0.108 122.1 68.726
Megrim 0.005 3.10 80.00 4.866 1000.00 0.120 0.323 69.3 51.705
Haddock 0.007 3.08 344.00 3.656 2900.00 0.190 0.956 91.3 67.201
Whiting 0.006 3.06 165.42 2.478 430.66 0.377 0.867 72.6 59.080
Hake 0.005 3.12 547.00 4.612 17300.00 0.087 1.075 134.2 53.636
Blue whiting 0.004 3.12 77.00 1.162 310.71 0.280 4.005 51.7 47.791
Plaice 0.008 3.07 235.00 5.985 2200.00 0.110 0.242 66.0 76.564
Sole 0.007 3.07 132.00 5.130 1200.00 0.130 0.035 69.3 71.433

Two entries deserve comment.

biomass_cutoff is the weight of a 20 cm fish. Richard’s biomass estimates come from survey catches, and the survey does not see fish much below 20 cm reliably, so biomass_observed is treated as the biomass above that cutoff rather than the biomass of the whole population. Without this the model would be asked to match an observed biomass against a modelled biomass that includes a large number of small fish that were never counted.

D_ext = 1 switches on growth diffusion. Individuals of the same species and age do not all grow at exactly the same rate, and modelling that spread as a diffusion in size broadens the modelled size distribution, which matters when we are about to fit to observed size distributions.

Gear parameters gp

Show code
gp |> filter(species %in% c("Herring", "Cod")) |>
    kable(digits = 4, caption = "Gear parameters for two of the nine species.")
Gear parameters for two of the nine species.
species gear sel_func l50 l25 catchability yield_weight yield_observed
Herring survey sigmoid_length 20 18 0.0 0 0.0000
Herring commercial sigmoid_length 40 38 0.2 1 0.0015
Cod survey sigmoid_length 20 18 0.0 0 0.0000
Cod commercial sigmoid_length 40 38 0.2 1 0.0550

Every species gets two gears:

  • a survey gear with catchability \(10^{-12}\), i.e. effectively zero, and yield_weight = 0;
  • a commercial gear carrying the observed yield, with yield_weight = 1.

This is a device for feeding two different kinds of size information into the same fit. The survey gear exists only to give the survey size distribution a selectivity curve of its own; because its catchability is negligible it removes no fish and contributes no yield, and its yield_observed is set to a token \(10^{-10}\) so that it is not mistaken for missing data. The commercial gear is the one that actually fishes and the one whose yield is matched.

Both gears start from a sigmoid_length selectivity with round-number \(l_{50}\) and \(l_{25}\); these are starting values only, since the fit will move them.

Size distributions catch

Show code
catch |> filter(species == "Cod", length %in% c(20, 40, 60)) |>
    select(species, gear, length, dl, catch) |>
    arrange(gear, length) |>
    kable(digits = 2, caption = "A few rows of the size-distribution data.")
A few rows of the size-distribution data.
species gear length dl catch
Cod commercial 20 1 0.01
Cod commercial 40 1 21.78
Cod commercial 60 1 58.60
Cod survey 20 1 4.00
Cod survey 40 1 54.00
Cod survey 60 1 22.00

Numbers of fish in 1 cm length bins, for each species and gear.

  • The commercial distribution is Richard’s, computed as \(F_\text{mean} \times\) density, so that it is consistent with the yields we are matching.
  • The survey distribution is Jess’s, which is used in preference to Richard’s because it extends below 20 cm.

The commercial distribution is then rescaled so that it contains the same total number of fish as the survey distribution. Only the shape of a catch distribution enters the likelihood, so this rescaling changes nothing about the fit; it just stops one gear from dominating simply by having larger numbers.

The data covers sixteen species; the seven that are not among the nine in sp are simply ignored, as are the NA entries at lengths where a species was not measured.

Diet matrix

The diet matrix reduced_dm is a package dataset, derived from Ecopath diet compositions with reduceEcopathDiet(). It is 14×15: fourteen predators, fourteen prey plus an other column collecting everything that is not one of the modelled species. Rows are diet proportions.

Show code
round(reduced_dm[c("Cod", "Hake", "Megrim"),
                 c("Blue whiting", "Haddock", "Herring", "Whiting", "other")],
      3) |>
    kable(caption = "Part of the diet matrix: proportion of each predator's diet.")
Part of the diet matrix: proportion of each predator’s diet.
Blue whiting Haddock Herring Whiting other
Cod 0.041 0.007 0.00 0.034 0.669
Hake 0.105 0.000 0.01 0.009 0.649
Megrim 0.153 0.000 0.00 0.000 0.620

Note how large the other column is. Most of what these fish eat is not one of the nine modelled species, and that is the part the model has to represent as external food or, later, as the plankton resource.

Stage 1: the allometric starting model

Show code

newAllometricParams() builds a model in which

  • the encounter rate is a pure power law \(E_i(w) = E_i w^n\) with \(n = 0.7\),
  • the natural mortality rate is a pure power law \(\mu_i(w) = \mu_i w^{n-1}\),
  • maximum intake is infinite (\(h = \infty\)) and metabolic respiration is switched off (\(k_s = 0\)), so the feeding level is zero,
  • species do not interact, either with each other or with the resource: all food is “external”,
  • the reproduction level is zero, i.e. reproduction is fully density-independent.

The two power-law coefficients are pinned down by two requirements: the encounter coefficient \(E_i\) is chosen so that the species reaches w_mat at age age_mat, and the mortality coefficient \(\mu_i\) is then chosen so that the juvenile biomass spectrum has slope \(-0.2\).

This is a deliberately impoverished model, and that is the point. Because nothing interacts, each species can be solved independently and put exactly where we want it, which gives the later stages a well-defined starting point.

Stage 2: matching the size distributions

Anchoring the mortality

Show code
species_params(p)$production_observed <- getSomaticProduction(p)

This one line is worth dwelling on. The fit in the next step is free to change the external mortality coefficient z_ext, and with only size distributions and a yield to constrain it, it can wander a long way from anything sensible.

In steady state, mortality and production are two sides of the same coin: what a cohort produces in new tissue is exactly what mortality removes. So we can constrain mortality indirectly by telling the optimiser to keep production close to the value the default model already has. We are not claiming to have observed the production — we are using production_observed as a regularisation term that says “stay near the default mortality unless the size data give you a good reason not to”.

The fit

Show code
pm <- matchCatch(p, catch = catch)

matchCatch() adjusts, per species, the selectivity parameters \(l_{50}\) and \(l_{25}\) of both gears, the catchability of the commercial gear, the growth-diffusion coefficient D_ext and the external mortality coefficient z_ext, by minimising

  • the negative log likelihood of the observed catch size distributions given the size distributions the model predicts, plus
  • the squared difference in log yield (commercial gear only, because the survey gear has yield_weight = 0), plus
  • the squared difference in log production, i.e. the anchor above.

The reason selectivity, diffusion and mortality have to be fitted together is that the model’s predicted catch distribution is the product of the selectivity curve and the species’ size spectrum, and the size spectrum is itself shaped by the balance between growth, diffusion and mortality. Fitting a selectivity curve against a fixed spectrum, or a mortality against a fixed selectivity, would both be wrong. The objective function is written in C++ and differentiated automatically by TMB, which is what makes a joint fit over four parameters per species per gear practical.

After the fit, the biomass is rescaled to the observation and the reproduction level is reset to zero.

Stage 3: giving the fish a physiology

Show code
# Note that setFeedingLevels() assigns `f` and `f_c` *positionally*: the names
# below are for our benefit only, and the vector must be in the same order as
# species_params(pm). It is, because both come from `sp`.
f <- setNames(rep(0.6, nrow(sp)), sp$species)
f[["Whiting"]] <- 0.8406          # see "What the feeding level buys" below

pm <- setFeedingLevels(pm, f = f, f_c = f / 3)

So far the fish have infinite maximum intake and no metabolic cost, which is convenient but not believable. setFeedingLevels() introduces a feeding level \(f\) (the fraction of its maximum rate at which a fish eats) and a critical feeding level \(f_c\) (below which it cannot grow at all) by solving for the encounter rate \(E\), maximum intake \(h\) and metabolic loss \(k_s\) that produce them:

\[E=E_r\frac{f}{\alpha(f-f_c)(1-f)},\qquad h = \frac{E_r}{\alpha(f-f_c)},\qquad k_s = E_r\frac{f_c}{f-f_c}.\]

The point of solving it this way is that the energy available for growth and reproduction, \(E_r\), is held fixed. The fish now have a realistic physiology, but they grow exactly as they did before, so the size-distribution fit from stage 2 is not disturbed.

What the feeding level buys

Eight of the nine species get the conventional \(f = 0.6\), \(f_c = 0.2\). Whiting gets \(f = 0.8406\), \(f_c = 0.2802\), and the reason is worth setting out, because it turns on a property of these formulae that is easy to miss.

Substituting \(h\) back into the consumption rate \(f\,h\,w^n\) gives

\[\text{consumption} = \frac{E_r}{\alpha\left(1 - f_c/f\right)}, \qquad k_s = E_r\,\frac{f_c/f}{1 - f_c/f},\]

both of which depend on \(f\) and \(f_c\) only through their ratio. So the Ecopath quantities this stage could damage — the consumption \(Q/B\) and the respiration — are fixed by \(f_c/f\) alone, while the overall level of \(f\) is free. Keeping \(f_c = f/3\) throughout, as the code above does, means Whiting’s raised feeding level changes neither its steady state nor any Ecopath ratio. Rebuilding the model with \(f\) raised from 0.6 to 0.9 for every species moves \(Q/B\) and \(P/B\) by less than 0.2% and the size spectra by less than 2%.

What the level of \(f\) does change is how strongly growth responds to a change in food supply. Since \(\mathrm{d}f/\mathrm{d}\log E = f(1-f)\),

\[\frac{\mathrm{d}\log E_r}{\mathrm{d}\log E} = \frac{f(1-f)}{f-f_c} = \frac{1-f}{1-f_c/f},\]

which at fixed \(f_c/f\) is linear in \(1-f\). A fish close to satiation barely grows faster when its competitors are fished away. That matters because this food-mediated response is one of the compensatory mechanisms that hold a species’ yield peak above the fishing mortality we are trying to target: at \(f = 0.6\) the elasticity is 0.60, at \(f = 0.8406\) it is 0.24.

The same structure appears again in stage 6: the resource feedback is linear in \(1 - \texttt{resource_level}\). The two multiply along the food loop, and both are free in exactly the sense described in the introduction.

Whiting’s value was found by bisection against the criterion of stage 8 — it is the feeding level at which whiting’s yield curve peaks at its \(F_{MSY}\) — and the bisection is reported there. It is set here rather than later because setFeedingLevels() requires a non-interacting model with \(h = \infty\) and \(k_s = 0\), so this is the only stage at which it can be applied.

Stage 4: three species that need more mortality

If we go straight on to imposing the diet matrix, three species object:

Show code
pd <- matchDiet(pm, reduced_dm)
Warning in makeInteracting(params, theta, interaction_resource =
interaction_resource_orig): Implied negative external encounter rate for
Megrim. Setting it to zero. This may alter the steady state.
Warning in makeInteracting(params, theta, interaction_resource =
interaction_resource_orig): Implied negative external encounter rate for
Whiting. Setting it to zero. This may alter the steady state.
Warning in makeInteracting(params, theta, interaction_resource =
interaction_resource_orig): Implied negative external encounter rate for Hake.
Setting it to zero. This may alter the steady state.
Warning in makeInteracting(params, theta, interaction_resource =
interaction_resource_orig): Implied negative external mortality rate for
Herring. Setting it to zero. This may alter the steady state.
Warning in makeInteracting(params, theta, interaction_resource =
interaction_resource_orig): Implied negative external mortality rate for Cod.
Setting it to zero. This may alter the steady state.
Warning in makeInteracting(params, theta, interaction_resource =
interaction_resource_orig): Implied negative external mortality rate for Hake.
Setting it to zero. This may alter the steady state.

The warnings say that Herring, Cod and Hake would require negative external mortality. The reason is a simple accounting one. The diet matrix says how much of each species is eaten by the others. Imposing it converts part of the anonymous external mortality into explicit predation mortality. If the diet matrix implies more predation on a species than that species’ total mortality in the current model, there is nothing left for external mortality to be, and it would have to go negative to balance the books.

The fix is to give those three species more total mortality, which — by the same steady-state identity used in stage 2 — we do by asking for more production:

Show code
species_params(pm)["Herring", "production_observed"] <- 0.8
pm <- matchCatch(pm, catch = catch, species = "Herring")
species_params(pm)["Cod", "production_observed"] <- 0.1
pm <- matchCatch(pm, catch = catch, species = "Cod")
species_params(pm)["Hake", "production_observed"] <- 0.8
pm <- matchCatch(pm, catch = catch, species = "Hake")

These three numbers were found by hand in the tuning gadget:

pt <- tuneEcopath(pm, catch = catch, diet = reduced_dm, match = "catch")
# On the Death tab, set production_observed to 0.8 for Herring, 0.1 for Cod
# and 0.8 for Hake, hitting `match` after each, then hit "Return".

They are the least satisfying part of the procedure: they are chosen to make the diet matrix fit, not measured. A caveat is recorded in Section 12 about a discrepancy between the interactive and the scripted route.

Stage 5: species interactions from the diet matrix

Show code
pd <- matchDiet(pm, reduced_dm)
ps <- steady(pd)

matchDiet() converts the diet proportions into absolute consumption rates using each predator’s consumption rate, then solves for the interaction matrix \(\theta_{ij}\) that reproduces them, and applies it. Crucially, as it turns on predation between species it turns down the external encounter and external mortality by exactly the corresponding amounts, so the total food each predator gets and the total mortality each prey suffers are unchanged. The steady state therefore survives; what changes is the attribution of food and mortality from anonymous external terms to named species.

A few residual warnings about negative external encounter rates remain (Megrim, Hake): for these the diet matrix says they get more food from the modelled species than the model gives them in total, and the shortfall is clipped at zero. This leads to a higher total encounter rate but this only applies to a very small number of large individuals of these species, so the effect on the steady state is negligible. But this explains why we call steady() after matchDiet() to calculate the new steady state.

Stage 6: the plankton resource

Show code
psr <- alignResource(ps)
resource_params(psr)$w_pp_cutoff <- 1
initialNResource(psr)[w_full(psr) > 1] <- 0
comment(psr@cc_pp) <- NULL
psr <- setResourceInteraction(psr,
                              resource_dynamics = "resource_semichemostat",
                              tol = 1e-2)
psr <- steady(psr)
resource_level(psr) <- 0.5
psr <- steady(psr, tol = 1e-12, t_max = 200)

Up to here the resource has been inert. Now:

alignResource() sets the resource to a power law \(\kappa w^{-\lambda}\) and chooses \(\kappa\) so that this power law is tangent to the total fish abundance spectrum from above — the smallest resource abundance that still sits everywhere above the fish. That gives a resource on the right scale without having to know its absolute level.

The resource is then cut off at 1 g. This is not just realism about what counts as plankton; it is also what makes the next step work. Cutting the resource off small means that a large predator gets a negligible fraction of its food from the resource, so its large individuals stop constraining how much resource interaction it is allowed to have.

setResourceInteraction() then lets each species absorb as much of its remaining external encounter as it can into genuine feeding on the resource, adjusting the resource carrying capacity so that the resource abundance and hence the steady state are unchanged. The limit is that resource encounter must not exceed external encounter at any size; tol = 1e-2 allows a 1% violation, which stops a single size where external encounter happens to be exactly zero from blocking the whole species.

Finally the resource is given semichemostat dynamics and a resource level of 0.5, and the model is brought to a tight steady state.

The resource level is the ratio of the resource abundance to its carrying capacity. Setting it does not move the resource: setResource() adjusts the carrying capacity and the replenishment rate together so that the current abundance remains the steady state. What it sets is how hard the resource pushes back. From the semichemostat balance \(N_R = c_R\,r/(r+\mu)\),

\[\frac{\mathrm{d}\log N_R}{\mathrm{d}\log \mu} = -\frac{\mu}{r+\mu} = -\left(1 - \texttt{resource\_level}\right),\]

so the strength of the resource’s response to a change in the predation on it is linear in \(1 - \texttt{resource\_level}\) — the same form as the feeding-level elasticity in Section 5.1. At 1 the resource is an inexhaustible fixed background; at 0 its abundance is inversely proportional to the pressure on it. At 0.5, a 10% drop in predation on the resource buys a 5% rise in its abundance.

This is the second of the response-only knobs, and it is worth knowing which species it can actually reach. The resource is cut off at 1 g, so it feeds larvae and small juveniles of everything, but for a predator whose adult diet is mostly fish or external food it does almost no work. Cod is the extreme case: at 1 kg only 7% of its encounter is resource and 85% is external, so changing the resource level barely moves cod’s response to fishing at all. That is what forces the next stage.

At this point the model is complete except for cannibalism and density dependence in reproduction.

Stage 7: cannibalism and the yield peak

Stage 8 chooses each species’ reproduction level so that its yield curve peaks at its \(F_{MSY}\). For cod that criterion cannot be met, and this stage explains why and fixes it.

Why the reproduction level runs out

Push the reproduction level towards zero and recruitment becomes proportional to egg production. The steady state has been calibrated to sit exactly at replacement at the current fishing mortality, so with no other density dependence in the model, no positive steady state would exist at any higher \(F\) and the yield curve would peak exactly at the current \(F\). It follows that whenever the peak sits above the target with the reproduction level already at its floor, something other than reproduction is compensating — and the reproduction level cannot reach it.

For cod, that something is cannibalism. Two facts locate it. First, the mortality on juvenile cod:

Show code
m2 <- getPredMort(psr); m0 <- ext_mort(psr); fm <- getFMort(psr)
idx <- vapply(c(0.01, 1, 10, 100, 1000),
              function(x) which.min(abs(w(psr) - x)), integer(1))
data.frame(
    `w (g)`      = signif(w(psr)[idx], 2),
    predation    = signif(m2["Cod", idx], 3),
    external     = signif(m0["Cod", idx], 3),
    fishing      = signif(fm["Cod", idx], 3),
    `predation share` = signif(m2["Cod", idx] /
        (m2["Cod", idx] + m0["Cod", idx] + fm["Cod", idx]), 2),
    check.names = FALSE) |>
    kable(row.names = FALSE,
          caption = "Mortality on cod, by source and size (1/yr).")
Mortality on cod, by source and size (1/yr).
w (g) predation external fishing predation share
9.8e-03 0.00639 11.500 0.000152 0.00055
1.0e+00 0.13300 2.730 0.000291 0.04600
1.0e+01 0.40200 1.040 0.000727 0.28000
9.9e+01 0.43700 0.293 0.004960 0.59000
9.7e+02 0.01640 0.350 0.199000 0.02900

Larval mortality is almost entirely external, and external mortality is a fixed rate that cannot respond to anything. But between 10 g and 100 g predation supplies a quarter to a half of the total. Second, who that predator is:

Show code
inter <- interaction_matrix(psr)
data.frame(predator = rownames(inter),
           `on cod` = signif(inter[, "Cod"], 3),
           check.names = FALSE) |>
    dplyr::filter(`on cod` > 0) |>
    kable(row.names = FALSE, caption = "Non-zero entries of the cod column.")
Non-zero entries of the cod column.
predator on cod
Cod 9.6e+11

Nothing else in the model eats cod. So every unit of predation mortality on juvenile cod comes from adult cod, and fishing the adults down releases the juveniles in direct proportion — a powerful compensatory mechanism, and one mizer applies without any foraging-arena refuge to damp it.

Reallocating cannibalism

The remedy is to weaken the cod-on-cod entry of the interaction matrix and hand back what that removes: the lost predation mortality to external mortality, the lost food to external encounter. This is makeInteracting() run in reverse, and it leaves growth, mortality, the spectrum and the catch size distributions exactly where they were.

Show code
set_cannib <- function(params, sp, lambda) {
    mort_old <- getPredMort(params)
    enc_old  <- getEncounter(params)
    inter <- interaction_matrix(params)
    inter[sp, sp] <- inter[sp, sp] * lambda
    interaction_matrix(params) <- inter
    # Encounter first: predation mortality depends on the feeding level, which
    # depends on the encounter rate. Restoring mortality first bakes a spurious
    # correction into every species this one preys on.
    ext_encounter(params) <- ext_encounter(params) + (enc_old  - getEncounter(params))
    ext_mort(params)      <- ext_mort(params)      + (mort_old - getPredMort(params))
    params
}

psr <- set_cannib(psr, "Cod", 0.1875)

The ordering of the two restorations is not cosmetic. Predation mortality carries a factor \((1-f)\), so it depends on the feeding level and hence on the encounter rate; measuring the mortality shortfall before the encounter has been restored attributes a spurious external mortality to every species cod preys on. With the order above the steady state is preserved to machine precision and the model does not move when projected.

The multiplier 0.1875 was found by bisection against the stage 8 criterion:

\(\lambda\) 0 0.125 0.188 0.25 0.5 1.0
side −0.384 −0.031 +0.014 +0.052 +0.100 +0.157

where side is the diagnostic of Section 10: positive means the peak is above the target. Full cannibalism puts cod’s peak 16% too high; removing five sixths of it brings the peak onto \(F_{MSY}\).

What it costs

Almost nothing, and the reason is an asymmetry worth stating plainly. Cannibalism accounts for 1.23% of cod’s diet by mass but supplies 28–59% of the mortality on 10–100 g cod, because the prey in question are tiny. So reallocating it barely registers in the diet matrix — cod’s cannibalism entry falls from 1.23% to 0.23% of its diet and no other entry moves by more than \(10^{-6}\) — while transforming how cod responds to fishing. Consumption, production and biomass are unchanged for every species to within 0.1%.

What is genuinely given up is that cannibalism, which the Ecopath diet matrix does report, is now carried as anonymous external mortality. Mizer ties a predator’s diet and its prey’s mortality to the same coefficient, so there is no way to keep one and drop the other. Whether that is a fair trade depends on whether one believes the Ecopath cannibalism entry more than the \(F_{MSY}\) estimate.

Stage 8: reproduction levels

The reproduction level controls how strongly reproduction is buffered against changes in spawning stock: 0 means recruitment is proportional to spawning stock, 1 means it is completely insensitive to it. It is not something we can read off the data, but it has a large effect on how the model responds to fishing — the more density dependence, the less a species suffers from being fished, and the higher \(F_{MSY}\).

The criterion used here is that the peak of each species’ yield-versus-\(F\) curve should sit at that species’ \(F_{MSY}\), taken from the FMSY column of sp — the ICES reference points that came with the data. Plaice has no FMSY, and for it we fall back to the fishing mortality the model says it currently experiences, i.e. the catchability that matchCatch() fitted.

Targeting the assessment \(F_{MSY}\) rather than the current \(F\) is a real choice, and a stronger one than it looks: it makes the reproduction level carry whatever discrepancy exists between the single-species reference point and the multispecies model’s own productivity. The alternative — assuming the fishery is currently at MSY and targeting the fitted \(F\) — asks less of the data but asserts more about the fishery.

Doing this by eye with plotYieldVsF() for nine species is slow. The helper functions below automate it: to know which way to move we only need to know which side of the peak \(F_\text{cur}\) is on, which takes two projections rather than a whole curve, and then we bisect on the reproduction level. The bisection is done in \(u = -\log(1 - r_l)\) because \(F_{MSY}\) is most sensitive to the reproduction level as it approaches 1.

Show code
# Relative difference between the yield a little above and a little below the
# current F. Positive means the peak is above F_cur, negative that it is below.
side <- function(params, sp, F_cur, d = 1.25) {
    y <- suppressMessages(getYieldVsF(params, sp,
                                      F_range = c(F_cur / d, F_cur * d)))
    lo <- y$yield[which.min(abs(y$F - F_cur / d))]
    hi <- y$yield[which.min(abs(y$F - F_cur * d))]
    (hi - lo) / max(hi, lo, 1e-30)
}

set_rl <- function(params, sp, rl) {
    setBevertonHolt(params, reproduction_level = setNames(rl, sp))
}

tune <- function(params, sp, F_cur, rl_lo = 0.01, rl_hi = 0.99,
                 steps = 6, tol = 0.02) {
    u2rl <- function(u) 1 - exp(-u)
    u_lo <- -log(1 - rl_lo)
    u_hi <- -log(1 - rl_hi)
    s_lo <- side(set_rl(params, sp, rl_lo), sp, F_cur)
    if (s_lo >= 0) return(list(rl = rl_lo, side = s_lo, status = "at lower bound"))
    s_hi <- side(set_rl(params, sp, rl_hi), sp, F_cur)
    if (s_hi <= 0) return(list(rl = rl_hi, side = s_hi, status = "at upper bound"))
    for (i in seq_len(steps)) {
        u <- (u_lo + u_hi) / 2
        s <- side(set_rl(params, sp, u2rl(u)), sp, F_cur)
        if (abs(s) < tol) return(list(rl = u2rl(u), side = s, status = "converged"))
        if (s < 0) u_lo <- u else u_hi <- u
    }
    u <- (u_lo + u_hi) / 2
    list(rl = u2rl(u), side = side(set_rl(params, sp, u2rl(u)), sp, F_cur),
         status = "bisected")
}

The sweep itself. Changing the reproduction level of one species shifts the yield curves of the others, so we sweep twice. In this model the second sweep does not simply reproduce the first — hake moves from 0.36 to 0.14, haddock from 0.87 to 0.82 — so two passes should be read as a truncated iteration rather than as a converged answer. This takes roughly half an hour, which is why it is not run here.

Show code
params <- psr

# The target for each species: its FMSY where the data give one. Plaice has
# none, so it falls back to the F the model says it currently experiences.
# With effort = 1 the fully-selected F equals the catchability, and we want the
# *fitted* catchabilities from the model, not the starting values in `gp`.
gpf <- gear_params(params) |> filter(gear == "commercial")
Ftarget <- setNames(species_params(params)$FMSY, species_params(params)$species)
Ftarget[is.na(Ftarget)] <- setNames(gpf$catchability, gpf$species)[is.na(Ftarget)]

res <- list()
for (sweep in 1:2) {
    for (sp in names(Ftarget)) {
        r <- tune(params, sp, Ftarget[[sp]])
        params <- set_rl(params, sp, r$rl)
        res[[sp]] <- r
    }
}
do.call(rbind, lapply(res, as.data.frame))

The result of the sweeps:

Species \(r_l\) side status
Herring 0.379 −0.013 bisected
Cod 0.010 +0.042 at lower bound
Megrim 0.901 +0.011 converged
Haddock 0.823 −0.011 converged
Whiting 0.010 +0.082 at lower bound
Hake 0.142 −0.001 converged
Blue whiting 0.079 −0.005 converged
Plaice 0.357 −0.015 converged
Sole 0.823 −0.014 converged

Seven of the nine converge. Cod and Whiting are still reported as sitting at the lower bound, but the bound now means something quite different from what it meant before stages 3 and 7. Previously both hit rl_lo = 0.01 with side values of +0.16 and +0.26 — the bound was binding and the peak was still far above the target. Now they hit the same bound with residuals of +0.04 and +0.08, i.e. the peak is essentially where we want it and the bisection simply has no reason to move off the floor. That is the whole return on raising whiting’s feeding level and weakening cod’s cannibalism.

The floor itself is not innocent, though: a reproduction level of 0.01 means recruitment is very nearly proportional to spawning stock, which for cod and whiting is an assertion of almost no density dependence in reproduction, made because it is what the yield-peak criterion demands rather than because anything supports it.

Show code
t(vapply(names(F_target), function(sp) peak(params, sp, F_target[[sp]]), numeric(2)))

Where the peaks end up:

Species \(F_\text{peak}\) \(F_\text{peak}/F_\text{target}\)
Herring 0.2509 0.96
Cod 0.2693 0.93
Megrim 0.2815 1.04
Haddock 0.3476 0.98
Whiting 0.3977 1.06
Hake 0.2375 0.99
Blue whiting 0.3179 0.99
Plaice 0.1605 1.06
Sole 0.2568 0.95

The curves themselves are worth looking at, because the ratio in the table says nothing about how sharply the peak is defined:

Yield curve for Herring, peaking just below its target.

Yield curve for Cod, peaking just below its target.

Yield curve for Megrim, peaking just above its target.

Yield curve for Haddock, peaking just below its target.

Yield curve for Whiting, peaking just above its target.

Yield curve for Hake, peaking essentially on its target.

Yield curve for Blue whiting, peaking essentially on its target.

Yield curve for Plaice, peaking just above its target.

Yield curve for Sole, peaking just below its target.

Figure 1: Yield against fishing mortality for each species in the final model. The dashed line marks the target: \(F_{MSY}\), or for Plaice the fitted current \(F\).

These were produced by the peak() helper during the recorded sweep and are stored in vignettes/figures/, since regenerating them costs eleven projections per species.

All nine now sit within 7% of their target. The curves show why that tolerance is the right order of magnitude to care about: every one of them is flat near its maximum, so a 5% error in the location of the peak costs a fraction of a percent in yield. The criterion pins the reproduction level much less tightly than the tabulated ratios suggest.

Without stages 3 and 7 cod and whiting were the two species whose peaks could not be brought down to their \(F_{MSY}\) by any reproduction level, and raising whiting’s feeding level and weakening cod’s cannibalism is what brought them to 0.93 and 1.06. Without those two changes both would still be pinned at the reproduction floor with their peaks 16% and 26% too high.

The resulting model

Show code
params <- setBevertonHolt(psr, reproduction_level = c(
    Herring        = 0.379, Cod     = 0.010, Megrim = 0.901,
    Haddock        = 0.823, Whiting = 0.010, Hake   = 0.142,
    `Blue whiting` = 0.079, Plaice  = 0.357, Sole   = 0.823))

The final model is the model psr built above — which now includes the cannibalism reallocation of Section 9 — plus the reproduction levels from Section 10. Exactly this object, rebuilt by running the stages above, is saved as inst/params_allometric_final_Richard_and_Jess.rds, so every figure and table below can be reproduced without re-running the build. Its companion for the von Bertalanffy model of vignettes/Richard_and_Jess_vB.qmd is inst/params_vB_final_Richard_and_Jess.rds. See Section 12 for the older files that this one supersedes.

Show code
data.frame(species = species_params(params)$species,
           reproduction_level = round(getReproductionLevel(params), 3)) |>
    kable(row.names = FALSE, caption = "Reproduction levels of the final model.")
Reproduction levels of the final model.
species reproduction_level
Herring 0.379
Cod 0.010
Megrim 0.901
Haddock 0.823
Whiting 0.010
Hake 0.142
Blue whiting 0.079
Plaice 0.357
Sole 0.823

Biomass and yield

Show code
Figure 2: Modelled versus observed biomass.
Show code
Figure 3: Modelled versus observed yield.

These are the two quantities the calibration targeted directly, so agreement here is a check that nothing went wrong rather than a test of the model.

The fit to the size distributions

This is the quantity the whole procedure is built around, so it is the fit worth looking at hardest. The red curve is the model’s predicted catch size distribution, the blue curve the observed one, and the grey curve the modelled abundance, which shows how much of the shape of the catch is selectivity and how much is the underlying size structure.

Show code
for (s in species_params(params)$species) {
    for (g in c("commercial", "survey")) {
        print(plotYieldVsSize(params, species = s, gear = g,
                              catch = catch, x_var = "Length"))
    }
}
Figure 4: Observed and modelled size distributions, commercial gear (left) and survey gear (right).
Figure 5: Observed and modelled size distributions, commercial gear (left) and survey gear (right).
Figure 6: Observed and modelled size distributions, commercial gear (left) and survey gear (right).
Figure 7: Observed and modelled size distributions, commercial gear (left) and survey gear (right).
Figure 8: Observed and modelled size distributions, commercial gear (left) and survey gear (right).
Figure 9: Observed and modelled size distributions, commercial gear (left) and survey gear (right).
Figure 10: Observed and modelled size distributions, commercial gear (left) and survey gear (right).
Figure 11: Observed and modelled size distributions, commercial gear (left) and survey gear (right).
Figure 12: Observed and modelled size distributions, commercial gear (left) and survey gear (right).
Figure 13: Observed and modelled size distributions, commercial gear (left) and survey gear (right).
Figure 14: Observed and modelled size distributions, commercial gear (left) and survey gear (right).
Figure 15: Observed and modelled size distributions, commercial gear (left) and survey gear (right).
Figure 16: Observed and modelled size distributions, commercial gear (left) and survey gear (right).
Figure 17: Observed and modelled size distributions, commercial gear (left) and survey gear (right).
Figure 18: Observed and modelled size distributions, commercial gear (left) and survey gear (right).
Figure 19: Observed and modelled size distributions, commercial gear (left) and survey gear (right).
Figure 20: Observed and modelled size distributions, commercial gear (left) and survey gear (right).
Figure 21: Observed and modelled size distributions, commercial gear (left) and survey gear (right).

The observed curves are noisy because they are raw 1 cm bins; what matters is whether the model reproduces the position and width of the distribution, not the bin-to-bin wiggles. Note how the survey and commercial distributions for the same species differ — the survey sees the smaller fish — and that a single underlying size spectrum has to explain both through two different selectivity curves. That is what makes fitting both gears simultaneously informative about the spectrum rather than just about the gears.

With all eighteen panels shown it helps to know which to look at hardest. Scoring each by the excess multinomial negative log likelihood per fish — the fitted misfit above the best any model could do on those raw bins, so that 0 is a perfect fit and the number is comparable across species — gives:

worst middling best
commercial Herring 0.191, Cod 0.134 Hake 0.116, Megrim 0.108, Plaice 0.100 Whiting 0.012, Haddock 0.016, Sole 0.033
survey Blue whiting 0.954, Plaice 0.410 Hake 0.130, Haddock 0.123, Cod 0.090 Sole 0.022, Whiting 0.031, Megrim 0.049

Three panels are worth dwelling on.

Blue whiting’s survey panel is by far the worst fit in the model, at 0.954 — an order of magnitude worse than the median and on the species with the largest sample in the data set, so it is not noise. The observed distribution is a sharp hump at about 17 cm that has largely died away by 25 cm, and the model produces a curve that keeps rising through the observed mode and then decays far too slowly. The reason is structural: the survey gear has a sigmoid_length selectivity, which increases monotonically with size, so the only way for the modelled catch to fall away above 17 cm is for the abundance itself to fall away that steeply. It cannot, and the fit compromises by putting the rise in the wrong place. Plaice (0.410) is the same story more mildly, and Megrim’s residual 0.049 is a weaker version again.

That is worth naming because it is not a failure of the growth model: the companion von Bertalanffy vignette shows the same three species misbehaving in the same way, and fixes them by giving those three survey gears a dome-shaped double_sigmoid_length selectivity, which drops Blue whiting’s survey misfit from 0.954 to 0.096 and the mean over all species and gears from 0.196 to 0.060. Since the survey gear has catchability \(10^{-12}\) and yield_weight = 0, that is a change to the observation model alone and would work here unchanged. The cost is that the survey then constrains those species’ mortality less tightly, because a fall-off that the spectrum was being forced to explain is handed to the selectivity instead.

Herring is the worst commercial fit (0.191). Its observed commercial distribution is a narrow spike at 26 cm on a species whose asymptotic length is only about 30 cm, and a rising sigmoid on a smooth spectrum cannot make a peak that sharp. Herring is also the species whose \(F_{MSY}\) target is the most extreme extrapolation (Section 12), so it is the weakest link on two independent counts.

Cod fits badly for a quite different reason — small numbers. Its observed distribution is visibly the noisiest in the set because it rests on about 1900 fish against a quarter of a million for Blue whiting, so most of its 0.134 is irreducible scatter rather than model error.

Size spectra

Show code
plotlySpectra(params, power = 2, ylim = c(1e-7, NA))
Figure 22: Biomass density in log size, by species.

Plotting with power = 2 shows biomass density per log size interval, so a flat line means equal biomass in every size octave. This is the quantity in which the Sheldon spectrum is roughly flat, and it is the most informative way to look for species that are implausibly abundant at some size.

Fishing mortality

Show code
plotlyFMort(params, size_axis = "l", llim = c(18, NA))
Figure 23: Fishing mortality as a function of size.

The shapes here are the fitted selectivity curves of the commercial gear multiplied by the fitted catchabilities; the survey gear contributes nothing visible because its catchability is \(10^{-12}\).

Growth

Show code
plotGrowthCurves(params, species_panel = TRUE)
Figure 24: Modelled growth curves against the von Bertalanffy curves.

Growth was never fitted directly: it emerged from the encounter rates, which were pinned by requiring each species to reach w_mat at age_mat, and then reshaped by the feeding level and the interactions. So the comparison with the von Bertalanffy curves is a genuine test.

Diet

Show code
plotDiet(params)
Figure 25: Diet composition of all species as a function of predator size.

The diet composition changes with predator size even though the diet matrix that was matched is a single size-averaged number per predator–prey pair: the size structure of the diet comes out of the predation kernel and the abundances, not out of the data. So the transitions in these panels are a prediction rather than an input, and they are the part of the diet the Ecopath data does not pin down.

The dominant impression is also correct and worth stating plainly: this is a model in which the fish mostly do not eat each other. Green (resource) and grey (external) fill almost every panel, because the other column of the diet matrix is large — most of what these nine species eat is not one of the nine. Named prey appears only in the largest sizes of a few predators: Blue whiting for Megrim, Hake and Cod, Herring for Whiting, and small contributions of Hake and Plaice to Cod. Cod is the most connected predator, with 17.8% of its consumption coming from modelled species, and Whiting next at 10.1%.

Every panel is smooth, which is worth noting only because the companion von Bertalanffy vignette’s is not: there, the two species with a negative t0 receive a juvenile growth subsidy that is switched off abruptly at w_mat, and their diet composition steps discontinuously as a result. newAllometricParams() gives every species a single power-law encounter rate over its whole size range, so nothing of that kind happens here.

Death

Show code
plotlyDeath(params)
Figure 26: Sources of mortality for all species as a function of size.

This is the most diagnostic figure in the document, because it shows how much of the model’s mortality the modelled food web actually accounts for, and where. Averaged over each species’ biomass:

Show code
m2 <- getPredMort(params); m0 <- ext_mort(params); fm <- getFMort(params)
tot <- m2 + m0 + fm
N <- initialN(params)
wt <- N * matrix(dw(params) * w(params), nrow = nrow(N), ncol = ncol(N),
                 byrow = TRUE)
wmean <- function(x) rowSums(x * wt) / rowSums(wt)
data.frame(species = species_params(params)$species,
           external = round(wmean(m0 / tot), 2),
           predation = round(wmean(m2 / tot), 2),
           fishing = round(wmean(fm / tot), 2),
           `peak predation share` = round(apply(m2 / tot, 1, max), 2),
           `at w (g)` = signif(w(params)[apply(m2 / tot, 1, which.max)], 2),
           check.names = FALSE) |>
    kable(row.names = FALSE,
          caption = "Mortality by source, weighted by biomass, and the size at which predation matters most.")
Table 1: Mortality by source, weighted by biomass, and the size at which predation matters most.
species external predation fishing peak predation share at w (g)
Herring 0.78 0.22 0.00 0.96 7.2
Cod 0.39 0.01 0.60 0.12 70.0
Megrim 0.76 0.06 0.18 0.30 18.0
Haddock 0.73 0.00 0.26 0.01 65.0
Whiting 0.76 0.06 0.18 0.48 9.3
Hake 0.64 0.06 0.30 0.95 9.3
Blue whiting 0.96 0.03 0.01 0.17 13.0
Plaice 0.34 0.12 0.54 0.50 65.0
Sole 0.55 0.07 0.38 0.22 10.0

External mortality is the largest single source for every species. It runs from 34% (Plaice) to 96% (Blue whiting) of the biomass-weighted total, and at larval sizes it is essentially 100% for all nine. That is not so much a modelling choice as the arithmetic of the diet matrix: predation mortality can only come from the nine modelled predators, and Figure 25 has just shown how small a part of anyone’s diet they are.

This matters well beyond bookkeeping, and it is what makes stages 7 and 8 hard. External mortality is a fixed rate — it cannot fall when a species is fished down. So the compensatory mechanisms that hold a yield curve up, chiefly the release of juveniles from predation, are acting on the minority of the mortality budget, and the reproduction level has to do most of the work. It is also the general form of the argument made for cod in Section 9.

Predation is a hump over juveniles, not a background. For every species the coloured band peaks between about 7 and 70 g and then collapses, because mizer’s predation kernel means a predator eats prey one or two orders of magnitude lighter than itself, so the sizes exposed to the modelled predators are the small ones. The peaks are dramatic — 96% of Herring’s mortality at 7 g is predation, and 95% of Hake’s at 9 g — but they are confined to a size range that carries almost no biomass and no yield. That is why the biomass-weighted column and the peak column differ by up to a factor of thirty, and it is the biomass-weighted one that governs how a species responds to fishing.

Two entries in the figure carry a lot of the model’s behaviour. Half of Plaice’s mortality at 65 g is predation by Cod, which is the largest single interaction in the model and makes Plaice the second most predation-limited species overall (12%). And the blue band across the top of Cod’s own panel is the cannibalism of Section 9, still supplying up to 12% of Cod’s mortality after being weakened to \(\lambda = 0.1875\) — a reminder that what was reallocated was five sixths of a term that was doing real work.

Fishing repeats the extrapolation caveat in visual form. Red reaches 82% of Cod’s mortality at large sizes and 55–86% for Megrim, Haddock, Whiting, Hake, Plaice and Sole, but peaks at only 3% for Herring and 4% for Blue whiting. Those two are essentially unfished in this model, and they are precisely the two whose \(F_{MSY}\) targets sit 70 and 27 times above their fitted \(F\) (Section 12). The figure shows how far outside its calibrated state the model is being asked to speak for them.

Reproductive efficiency

Show code
sp <- species_params(params)
repro_efficiency <- sp$erepro * getRDD(params) / getRDI(params)
df <- data.frame(Species = factor(sp$species, levels = sp$species),
                 value = repro_efficiency)
ggplot(df, aes(x = Species, y = value)) +
    geom_col() + geom_hline(yintercept = 1, color = "red") +
    scale_y_log10(name = "Reproductive efficiency") +
    theme(text = element_text(size = 12)) +
    theme(axis.text.x = element_text(angle = 90, hjust = 1, vjust = 0.5))
Figure 27: Proportion of investment into reproduction that is converted into larval biomass.

The quantity plotted is \(\texttt{erepro} \times \mathrm{RDD}/\mathrm{RDI}\), and since mizer’s Beverton–Holt gives \(\mathrm{RDD}/\mathrm{RDI} = 1 - r_l\) exactly, each bar is

\[\text{realised efficiency} = \texttt{erepro}\,(1 - r_l).\]

That makes the figure a compact summary of the two things the calibration chose for reproduction. erepro is whatever value makes the fitted spectrum self-replacing given the fitted mortality — a residual of stages 1 and 2, not an observation — and \(1 - r_l\) is the density-dependent survival that Section 10 laid on top of it.

Show code
data.frame(species = sp$species,
           erepro = signif(sp$erepro, 3),
           `1 - r_l` = round(getRDD(params) / getRDI(params), 3),
           realised = signif(repro_efficiency, 3),
           check.names = FALSE) |>
    kable(row.names = FALSE, caption = "The two factors behind each bar.")
Table 2: The two factors behind each bar.
species erepro 1 - r_l realised
Herring 2.93e-02 0.621 1.82e-02
Cod 9.82e-05 0.990 9.72e-05
Megrim 4.03e-02 0.099 3.99e-03
Haddock 1.97e-02 0.177 3.49e-03
Whiting 2.25e-03 0.990 2.23e-03
Hake 5.70e-03 0.858 4.89e-03
Blue whiting 1.86e-03 0.921 1.72e-03
Plaice 1.83e-03 0.643 1.18e-03
Sole 6.98e-03 0.177 1.24e-03

The red line is not approached. The tallest bar is Herring’s at 0.018, a factor of 55 below 1, and the shortest is Cod’s at \(9.7\times10^{-5}\). So nowhere in the steady state is the model demanding more larval biomass than the spawning stock can physically produce, which is the check the red line exists to perform.

The spread is about two and a half orders of magnitude, and most of it is fisheries-realistic. Cod at \(10^{-4}\) is a large, long-lived, heavily fished species putting an enormous amount of energy into reproduction for very few survivors, which is what egg-to-recruit survival looks like for a cod stock. Herring at the other end is small, short-lived and effectively unfished here, so much less of its investment is wasted.

The bars should not be read as reproductive biology alone, though. Megrim and Haddock have the two highest raw erepro values (0.040 and 0.020) but sit in the middle of the realised ranking, because Section 10 gave them reproduction levels of 0.901 and 0.823 and so discounted them tenfold and sixfold. Cod and Whiting, at the reproduction floor, have bars that are essentially their raw erepro. For the four species with a high reproduction level, most of the bar height is the density dependence that the yield-peak criterion demanded rather than anything about their eggs — and Section 12 records how weakly that criterion pins it down.

Caveats and open questions

The production numbers in stage 4 are tuning knobs, not observations. The values 0.8, 0.1 and 0.8 for Herring, Cod and Hake were chosen so that the diet matrix could be imposed without demanding negative external mortality. They do real work in the model — they set the total mortality of three species — and they deserve to be replaced by something better founded.

The \(F_{MSY}\) targets are a long way from the fitted fishing mortalities:

Species \(F\) fitted \(F_{MSY}\) ratio
Herring 0.0037 0.260 69.5
Blue whiting 0.0120 0.320 26.7
Megrim 0.0842 0.270 3.2
Haddock 0.1590 0.353 2.2
Whiting 0.2000 0.375 1.9
Sole 0.1830 0.271 1.5
Hake 0.3690 0.240 0.65
Cod 0.6650 0.290 0.44

For Herring and Blue whiting the criterion asks where the yield peak sits at some 25 to 70 times the fishing mortality the model was calibrated at. Nothing in the size distributions constrains the model that far from its fitted state, so their reproduction levels are set by an extrapolation, not by data.

Cannibalism is reallocated, not explained away. Stage 7 moves five sixths of cod’s cannibalism into anonymous external mortality because it is what keeps cod’s yield peak above \(F_{MSY}\). The Ecopath diet matrix does report cod cannibalism, so this is a decision to trust the \(F_{MSY}\) estimate over that diet entry, taken because mizer offers no way to keep a predator’s diet while softening its effect on the prey — no foraging arena, no refuge for juveniles. A model with a saturating cannibalism functional response would not need the fudge.

The tuned \(\lambda\) and \(f_0\) are conditional on the reproduction levels, and vice versa. Whiting’s feeding level and cod’s cannibalism multiplier were each bisected against the yield-peak criterion holding the other species’ reproduction levels fixed, and the stage 8 sweep then moves those. The two should really be iterated to convergence together. In the recorded run the second sweep left whiting’s side value at +0.08 rather than the +0.01 it had after the first, so this is not merely theoretical.

The old interaction matrix was not used. An alternative to deriving interactions from the diet matrix would be to reuse the interaction matrix from the earlier Celtic Sea model:

inter <- interaction_matrix(celtic_params)
species <- species_params(p)$species
pi <- makeInteracting(p, interaction = inter[species, species])

This was tried and set aside in favour of matching the diet matrix.