net.openai.ai.ga.environment
Interface Environment
- All Known Implementing Classes:
- AbstractEnvironment
- public interface Environment
The Environment is the encapsulation of the problem that the population
will try to solve. It is provided as an interface so as to allow maximum
flexibility for the type of implementation an Environment can be. The
Environment is passed along to every Cell in the Population. The Population
and the World groups are completely ignorant of what is in the Environment
(except for the methods included in this interface). Therefore, the Cells
(the possible solutions) are fitted to the Environment (the problem) and
must know how to communicate with it.
- Since:
- JDK1.3
- Version:
- %I%, %G%
- Author:
- Jared Grubb
reactToPopulation
public void reactToPopulation(Population pop)
- Tells the
Environment
to react to the given
Population
. This allows for evolution of the problem model
according to what its population is. This method is called by a
World
during each Iteration and may also be used as an
age counter. For many programs, this function may be stubbed {} in
cases when the problem does not need to evolve.
- Parameters:
pop
- the Population
that works on it
Copyright - 2001 OpenAI Labs. All Rights Reserved.