Last change
on this file since 1305 was
193,
checked in by Maciej Komosinski, 11 years ago
|
Set svn:eol-style native for all textual files
|
-
Property svn:eol-style set to
native
|
File size:
636 bytes
|
Line | |
---|
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.