Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update predator preference during the simulation. #150

Open
ismael-lajaaiti opened this issue Mar 27, 2024 · 1 comment
Open

Update predator preference during the simulation. #150

ismael-lajaaiti opened this issue Mar 27, 2024 · 1 comment

Comments

@ismael-lajaaiti
Copy link
Collaborator

Ecological context

By default, we assume that a predator split their time equally between the number of its preys. Therefore, the predator preference for each of its prey is $\omega = \frac{1}{\mathrm{p}}$ where $p$ is the number of prey of the predator. The thing is that $p$ is not a constant, because species can go extinct $p$ is a function of time. To be more precise, we should then write $p(t)$. And the way we define predator preference currently is $\omega = \frac{1}{\mathrm{p(0)}}$, that is we use the number of prey at $t=0$ to define the preference. However, there is a number of argument to say that the predator preference should change when one of its prey goes extinct, therefore the preference would become $\omega(t) = \frac{1}{\mathrm{p(t)}}$.

Implementation

I see two ways of implementing this feature:

  1. Through a callback triggered on species extinction that would update the preference matrix.
  2. Re-define a preference matrix not as constant, but as a function of species biomasses. Thus, we remove the contribution of extinct species ($B=0$) to the preference.
@iago-lito
Copy link
Collaborator

iago-lito commented Mar 27, 2024

Interesting. I can also think of the following one 0:)

  1. Suggestion: remove extinct species from the simulation and restart solve() on every extinction. #80

If not the chosen solution, then having parameters values depend on the current number of live species is something to be considered when investigating #141. An ideal solution to #141 should make it easy to feature what you request here :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants