GithubHelp home page GithubHelp logo

trophlab's Introduction

TrophLab

Simulate food webs to study macroecological patterns (between biophysical constraints and trophic structure).

Each new species chooses a position in the food web that correponds to the highest competitive advantage (in terms of total resource acquired). The competition model is based on maximizing resource allocation microstates (Zhang and Harte 2015; http://dx.doi.org/10.1016/j.tpb.2015.07.003). Please refer to this paper for the derivation and definitions of the key parameters, e.g. relative individual distinguishability.

In these simulations relative individual distinguishability is assumed to be positively related to the species resource requirement (assumed to be proportional to species mean metabolic rate) to account for the effect of lower reproduction success due to higher within-species variation. The linearity of this relationship is regulated by the dispersion parameter: when dispersion -> 0, relative individual distinguishability is linearly related to resource requirement; the bigger the dispersion, the more extreme (very small or very big) relative individual distinguishability is for any given resource requirement.

Generalization cost is assumed to be negatively related to relative individual distinguishability to account for the interpretation that species with higher within-species variation are better generalists. A similar dispersion parameter is used to regulate the linearity of this relationship.

Immigration sequence from the species pool can be specified as random, bigger species first or smaller species first. Invasion is successful when optimal abundance is bigger than 1. Species go extinct when abundance drops below 1.

For more detailed explanations of the underlying process and optimization algorithm, please refer to the pdf write-up:FWA_switch_cost.

trophlab's People

Contributors

jadeyu avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.