| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 |
Calendar
Upcoming eventsCookbook |
Population LimitMy computer keeps crashing when I have too many agents. How do I limit how many agents there are? Solution:
There are two ways to limit your population. If you only want to limit a particular breed (or you have only one breed), you can use this code: ![]() This means that only if there are less than 500 plankton will they reproduce. ![]() The second way can be used to limit a population across breeds by setting a global counter that keeps track of all the agents in the world, and a global threshold that allows none of the agents to reproduce if the threshold is reached.
Submitted by talaya on 13. March 2008 - 11:21
|
User loginNavigation |