I am trying to model the mosquito lifecycle and got stuck in the part where female mosquitoes have to lay eggs with different numbers each time. say at the age of 17, 20, and 23 with 200–250, 150–200, and 100–150. The maximum number of eggs for each mosquito throughout its life cycle is 500.
I used state chart and in the reproduce state, I put this code
** for (int i=0; i<200; ++i){
main.add_mosquitoes();
};
**
it is adding agents and later I am getting the error after some time "the model has reached the maximum number of dynamically created agents." I am using the PLE version. Help please
The free PLE version limits the total number of agents you can have.
You can either:
Or upgrade, of course :)