16.01.2013 Views

An Introduction to Genetic Algorithms - Boente

An Introduction to Genetic Algorithms - Boente

An Introduction to Genetic Algorithms - Boente

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 3: <strong>Genetic</strong> <strong>Algorithms</strong> in Scientific Models<br />

Like many of the other models we have looked at, Echo is meant <strong>to</strong> be as simple as possible while still<br />

capturing essential aspects of ecological systems. It is not meant <strong>to</strong> model any particular ecosystem (although<br />

more detailed versions might someday be used <strong>to</strong> do so); it is meant <strong>to</strong> capture general properties common <strong>to</strong><br />

all ecosystems. It is intended <strong>to</strong> be a platform for controlled experiments that can reveal how changes in the<br />

model and in its parameters affect phenomena such as the relative abundance of different species, the<br />

development and stability of food webs, conditions for and times <strong>to</strong> extinction, and the evolution of symbiotic<br />

communities of organisms.<br />

Echo's world—a two−dimensional lattice of sites—contains several different types of "resources," represented<br />

in the model by letters of the alphabet. These can be thought of as potential sources of energy for the<br />

organisms. Different types of resources appear in varying amounts at different sites.<br />

The world is populated by "agents," similar in some ways <strong>to</strong> the agents in the ERL model. Each agent has a<br />

genotype and a phenotype. The genotype encodes a set of rules that govern the types and quantities of<br />

resources the agent needs <strong>to</strong> live and reproduce, the types and quantities of resources the agent can take up<br />

from the environment, how the agent will interact with other agents, and some physical characteristics of the<br />

agent that are visible <strong>to</strong> other agents. The phenotype is the agent's resulting behavior and physical appearance<br />

(the latter is represented as a bit pattern). As in the ERL model, each agent has an internal energy s<strong>to</strong>re where<br />

it hoards the resources it takes from the environment and from other agents. <strong>An</strong> agent uses up its s<strong>to</strong>red energy<br />

when it moves, when it interacts with other agents, and even when it is simply sitting still (there is a<br />

"metabolic tax" for just existing). <strong>An</strong> agent can reproduce when it has enough energy s<strong>to</strong>red up <strong>to</strong> create a<br />

copy of its genome. If its energy s<strong>to</strong>re goes below a certain threshold, the agent dies, and its remaining<br />

resources are returned <strong>to</strong> the site at which it lived.<br />

At each time step, agents living at the same site encounter one another at random. There are three different<br />

types of interactions they can have:combat, trade, and mating. (<strong>An</strong> Echo wag once remarked that these are the<br />

three elements of a good marriage.) When two agents meet, they decide which type of interaction <strong>to</strong> have on<br />

the basis of their own internal rules and the outward physical appearance of the other agent. If they engage in<br />

combat, the outcome is decided by the rules encoded in the genomes of the agents. The loser dies, and all its<br />

s<strong>to</strong>red resources are added <strong>to</strong> the winner's s<strong>to</strong>re.<br />

If the two agents are less warlike and more commercial, they can agree <strong>to</strong> trade. <strong>An</strong> agent's decision <strong>to</strong> trade is<br />

again made on the basis of its internal rules and the other agent's external appearance. Agents trade any s<strong>to</strong>red<br />

resources in excess of what they need <strong>to</strong> reproduce. In Echo an agent has the possibility <strong>to</strong> evolve<br />

deception—it might look on the outside as though it has something good <strong>to</strong> trade whereas it actually has<br />

nothing. This can result in other agents' getting "fleeced" unless they evolve the capacity (via internal rules) <strong>to</strong><br />

recognize cheaters.<br />

Finally, for more amorous agents, mating is a possibility. The decision <strong>to</strong> mate is, like combat and trade,<br />

based on an agent's internal rules and the external appearance of the potential mate. If two agents decide <strong>to</strong><br />

mate, their chromosomes are combined via two−point crossover <strong>to</strong> form two offspring, which then replace<br />

their parents at the given site. (After reproducing, the parents die.)<br />

If an agent lives through a time step without gaining any resources, it gives up its current site and moves on <strong>to</strong><br />

another nearby site (picked at random), hoping for greener pastures.<br />

The three types of interactions are meant <strong>to</strong> be idealized versions of the basic types of interactions between<br />

organisms that occur in nature. They are more extensive than the types of interactions in any of the case<br />

studies we have looked at so far. The possibilities for complex interactions, the spatial aspects of the system,<br />

and the separation between genotype and phenotype give Echo the potential <strong>to</strong> capture some very interesting<br />

79

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!