Skip to content

Commit

Permalink
improve the example model of ODE
Browse files Browse the repository at this point in the history
  • Loading branch information
hqnghi88 committed Sep 24, 2020
1 parent 0c6a2e2 commit 337d714
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -87,7 +87,7 @@ species animal{


equation dynamics simultaneously: [animal]{
diff(pop,t) = r*pop * (1 - pop/k + sum(positive_species collect(interaction_coef[each]*each.pop/k)) - sum(negative_species collect(interaction_coef[each]*each.pop/k)));
diff(pop,t) = r*pop * (1 - pop/k + sum((positive_species where (!dead(each))) collect(interaction_coef[each]*each.pop/k)) - sum((negative_species where (!dead(each))) collect(interaction_coef[each]*each.pop/k)));
}


Expand Down

0 comments on commit 337d714

Please sign in to comment.