Comment 21 for bug 1348800

Revision history for this message
SirVer (sirver) wrote :

Thanks for the offer, but for now I think this is done.

In r7358 I pushed new parameters for the different tree types.

The approach I did was this: I extracted the probability tables from b18 that describe how well a certain tree grows on a certain terrain. Then I extracted the terrain parameters and tree parameters from trunk. I reimplemented our current model function in python and then used a genetic algorithm to tweak the tree parameters until the match between the model and the truth tables from b18 was best. There cannot be a 100% agreement of course, since our model is more constraint. But the trees now behave consistent - if two terrain have similar properties, all trees will behave similar on them too.

I pushed my code here https://github.com/SirVer/wl_tree_parameter_tuning/blob/master/optimize.py

I tested this and the forrester now always plants the correct trees for the different terrains and the growth behavior looks reasonable. Further play testing of the parameters is needed of course, but I believe this is about as good as b18 was.