Last change
on this file since 107 was
44,
checked in by mszubert, 15 years ago
|
cecj, framsticks and games packages imported
|
File size:
636 bytes
|
Rev | Line | |
---|
[44] | 1 | package cecj.fitness; |
---|
| 2 | |
---|
| 3 | import java.util.List; |
---|
| 4 | |
---|
| 5 | import cecj.interaction.InteractionResult; |
---|
| 6 | |
---|
| 7 | import ec.EvolutionState; |
---|
| 8 | |
---|
| 9 | /** |
---|
| 10 | * A method of aggregating individuals' interactions results. |
---|
| 11 | * |
---|
| 12 | * @author Marcin Szubert |
---|
| 13 | * |
---|
| 14 | */ |
---|
| 15 | public interface FitnessAggregateMethod { |
---|
| 16 | |
---|
| 17 | public void prepareToAggregate(EvolutionState state, int subpop); |
---|
| 18 | |
---|
| 19 | public void addToAggregate(EvolutionState state, int subpop, |
---|
| 20 | List<List<InteractionResult>> subpopulationResults, int weight); |
---|
| 21 | |
---|
| 22 | /** |
---|
| 23 | * Assigns fitness to all individuals in the population according to their interaction outcomes. |
---|
| 24 | */ |
---|
| 25 | public void assignFitness(EvolutionState state, int subpop); |
---|
| 26 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.