Friday, April 20, 2007

Rabbit Graphs

Ran through several 2500 day simulations, They all look similar even after getting rid of the Genghis Horde maybe just a little less volatile.

The first one is of the Genghis Horde. The initial peak was shortened due to my noticing a few things wrong with the code.






The rest follow the same pattern, just less volatile. The initial spike does go higher due to the spreading out of the rabbits.







More of the same. This one looks like I had more rain falling for a short time span leading to a larger spike leading to a population of over 200 for a few days.










This on just shows that the range is similar to the second run. I'll do a few runs out to 5k days, but I don't expect to see much change.



I did change a few items. The scripts that I use to advance the days, I added some database maintenance scripts to improve performance. The first run took 8 hours. The second took 5 after I made manual interventions. The third and fourth runs took 2 hours each after adding the changes. Of course none of the code is optimized, and the database doesn't have any indexing.

The last big environmental change I need to add back is when an animal dies a part of it goes back into the land as vitality. This should boost the base line population, as well as cause an echo from the initial spike.

Two things I've noticed so far. One, grazers if left unchecked will devastate the land and have massive die off cycles where 50-60% of the populations dies off in a short space of time dues to starvation. Second, the map is mostly brown and yellow. The brown tiles represents bare ground no grass growing. Yellow means sparse amounts of grass. I'm sure if I was going to model environmental effect this would eventually turn into desert or a barren wasteland.

Over the next few weeks, I'm going to review the current code and replace the code with procedures. I've created a few procedures, but some of the code generated this week is directly into the main code loop. Then I'll look at encapsulating the procedures into objects. Once that is completed, I'll look at making the undying, non breeding, predator. I'm thinking Fox at this point.

Labels:

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home