May harvesting

b_harvesting · tipbox.models.MayHarvesting

Usage

from tipbox.models import MayHarvesting

model = MayHarvesting()
result = model.make_trajectory(num_samples=1400, noise=1.0, seed=43)
biomass = result.trajectory[:, 0]

control = model.make_trajectory(num_samples=1400, noise=1.0, seed=43, null_simulation=True)
Biomass under increasing harvesting. Dashed lines mark the upper fold.

Biomass under increasing harvesting. Dashed lines mark the upper fold.

Equations and forcing

The biomass \(x\) follows logistic growth with saturating harvesting:

\[dx = \left[r x\left(1-\frac{x}{k}\right) - h(t)\frac{x^2}{s^2+x^2}\right]dt + \sigma\eta\,dW_t.\]

Here \(\eta\) is the noise argument. The initial harvesting rate is h_min. Over duration \(T\), it ramps to h_max by \(T/\text{param_end_multiplier}\) and then stays constant. The null ramp is capped at \(\max(h_{\min},2h_c-h_{\max})\).

For positive coefficients and \(s/k<1/\sqrt{27}\), the upper positive fold satisfies \(f(x,h)=0\) and \(\partial f/\partial x=0\):

\[x_c=\frac{k}{6}+\frac{k}{3}\cos\left[\frac13 \arccos\left(1-54(s/k)^2\right)\right],\qquad h_c=r\left(1-\frac{x_c}{k}\right)\frac{s^2+x_c^2}{x_c}.\]

critical_parameter computes this value unless h_bifurcation is explicitly set. The automatic marker requires the upper-fold regime above.

Euler–Maruyama updates are projected to nonnegative biomass. Forced initial states use the configured uniform interval; null initial states use the clipped Gaussian controlled by null_initial_mean and null_initial_std.

The drift and default coefficients follow Bury et al. (2021). TipBox uses a capped null ramp and sampled initial states without burn-in; that paper uses fixed null harvesting h=0.15 and a 100-time-unit burn-in. These are different benchmark protocols. Supply constant forcing and a separate warm-up when reproducing that protocol.

Parameters and defaults

Default critical parameter: 0.26043653.

Parameter

Default

Units

Meaning

r

1

1 / model time

Intrinsic population growth rate.

k

1

biomass

Biomass carrying capacity.

s

0.1

biomass

Harvesting saturation scale; the upper fold requires s/k < 1/sqrt(27).

h_min

0.15

biomass / model time

Starting harvesting rate.

h_max

0.27

biomass / model time

Forced ramp endpoint and cap.

h_bifurcation

automatic

biomass / model time

Optional fold marker. None computes the upper fold from r, k and s.

null_initial_mean

0.75

biomass

Mean of the clipped Gaussian null initial-state sampler.

null_initial_std

0.1

biomass

Standard deviation of the null initial-state sampler.

sigma

0.01

biomass / sqrt(model time)

Diffusion amplitude multiplied by noise and sqrt(dt) per step.

dt

0.01

model time

Default integration step.

t_start

0

model time

Simulation start time.

t_end

100

model time

End time when make_trajectory is called without num_samples; explicit num_samples sets the end time.

initial_state_min

0.5

state

Lower bound for the default uniform initial-state sampler.

initial_state_max

1

state

Upper bound for the default uniform initial-state sampler.

Reference: May (1977), Thresholds and breakpoints in ecosystems with a multiplicity of stable states; benchmark formulation follows Bury et al. (2021). The analytic expression above follows from differentiating the implemented equilibrium curve.