Closed gustavdelius closed 6 years ago
Additional differences are:
Are we going to define Rmax like they do in the trait based model ?
I'm trying to decide how to setup the size specifications. In addition to eta=w_mat/w_inf, I think we should include eta_egg=w_egg/w_inf. We also need to coerce the inputs to lie on grid points I guess.
Regarding Rmax, I would introduce an extra argument, say Rfac, and then for each species set Rmax to be larger than the actual number of eggs by a factor of Rfac. I would set the default to something large, like Rfac=10.
Do we need to include the line params@srr <- function(rdi, species_params) {return(rdi)} ?
Have got code that runs something presumably close to stable. But there are issues such as:
I agree with your points. Point (4) I think should go into its own issue. Will you create one? Can you explain your question regarding plot(sim) in point (2)? Is that also a proposal to improve the plots? In that case, another issue please.
In gen_solve_mod_multipliers_chosen.R (in chi_den_sol_2 branch) I Put specific abundance multipliers into general solver which uses fake background and plankton. Now the output looks a lot more like stable_community.R, with some small issues with curling up at the RHS. So gen_solve_mod_multipliers_chosen.R can maybe be used as an alternative way to find the steady state when we setup the scale free model.
If we have time it would be nice to develop this code into a tools for finding steady states of general heterogeneous systems. In particular, we could include a tool that manipulates the background death/resource artficially in order to create a system at steady state (basically the above). The user could also have the option of using more realistic the background death/resource present in the pure background system we wish to emulate. In this case the output cannot be guaranteed to be an exact steady state. One may add steps (optimizing by varying the abundance multipliers, and background species parameters), in order to make the artificial background resource and background death look as similar to the the background death/resource present in the pure background system we wish to emulate. Doing this can improve the accuracy of the candidate steady state that is the output.
Remaining tasks are (1) Define Rfac=10 and Rmax = Rfac*getRDI(params,params@initial_n,params@initial_n_pp). The trouble is, when we run the resulting system, it will use RDD, and so it wont be at steady state. I will think about this more. Other issues: (2) Sort out defaults in help, and clean code. (3) Polish code.
Create a new function that sets up the model with equally spaced species that are scaling copies of each other. So the function is very similar to set_trait_model with four main differences: