Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
simulating_photosynthesis [2008-10-06 09:49] – davegriffiths | simulating_photosynthesis [2008-10-06 10:00] – davegriffiths | ||
---|---|---|---|
Line 1: | Line 1: | ||
===Making plants grow towards light=== | ===Making plants grow towards light=== | ||
+ | |||
+ | Using lindenmayer systems and genetic algorithms to simulate plant growth. | ||
{{http:// | {{http:// | ||
{{http:// | {{http:// | ||
{{http:// | {{http:// | ||
+ | |||
+ | Plants are given a " | ||
+ | * How much do they face the light? | ||
+ | * Are they too close to other leaves? | ||
+ | * Are they in shadow from another leaf? | ||
+ | * Are they below the ground? | ||
+ | * Also - the fitness drops as the plant description (a linenmayer system string) gets too long. | ||
+ | |||
+ | Using this measurement, | ||
< | < | ||
<embed src=" | <embed src=" | ||
</ | </ | ||
+ | |||
+ | The simplest strategy is to " | ||
{{http:// | {{http:// | ||
+ | |||
+ | The result of a long run with many thousands of generations. | ||
+ | |||
{{http:// | {{http:// | ||
+ | |||
+ | You can also evolve from a starting point - in this case a simple tree is modified to create a bigger and more suitable one for the environment. | ||
+ | |||
+ | Code: http:// | ||
+ | |||
+ | < | ||
+ | <embed src=" | ||
+ | </ |