R codes from Sentis, A., B. Haegeman and J. M. Montoya. "Stoichiometric constraints modulate the effects of temperature and nutrients on biomass distribution and community stability." 1. Place all R codes in your working directory 2. run the R code "generate starting values" to produce the starting values for the simulations 3. run the R code "Models" for the simulations with the RM and SRM models 4. Plot the results using the R code "Models". For more information see Sentis, A., B. Haegeman and J. M. Montoya. "Stoichiometric constraints modulate the effects of temperature and nutrients on biomass distribution and community stability." on Biorxiv.