1
|
|
package net.bmahe.genetics4j.core.selection; |
2
|
|
|
3
|
|
import java.util.ArrayList; |
4
|
|
import java.util.Comparator; |
5
|
|
import java.util.List; |
6
|
|
import java.util.random.RandomGenerator; |
7
|
|
import java.util.stream.Collectors; |
8
|
|
|
9
|
|
import org.apache.commons.lang3.Validate; |
10
|
|
import org.apache.logging.log4j.LogManager; |
11
|
|
import org.apache.logging.log4j.Logger; |
12
|
|
|
13
|
|
import net.bmahe.genetics4j.core.Genotype; |
14
|
|
import net.bmahe.genetics4j.core.Individual; |
15
|
|
import net.bmahe.genetics4j.core.Population; |
16
|
|
import net.bmahe.genetics4j.core.spec.AbstractEAConfiguration; |
17
|
|
import net.bmahe.genetics4j.core.spec.AbstractEAExecutionContext; |
18
|
|
import net.bmahe.genetics4j.core.spec.selection.MultiTournaments; |
19
|
|
import net.bmahe.genetics4j.core.spec.selection.SelectionPolicy; |
20
|
|
import net.bmahe.genetics4j.core.spec.selection.Tournament; |
21
|
|
|
22
|
|
public class MultiTournamentsSelectionPolicyHandler<T extends Comparable<T>> implements SelectionPolicyHandler<T> { |
23
|
|
final static public Logger logger = LogManager.getLogger(MultiTournamentsSelectionPolicyHandler.class); |
24
|
|
|
25
|
|
private final RandomGenerator randomGenerator; |
26
|
|
|
27
|
|
private List<Individual<T>> pickRandomCandidates(final RandomGenerator randomGenerator, |
28
|
|
final List<Genotype> population, final List<T> fitnessScore, final int numCandidates) { |
29
|
|
Validate.notNull(randomGenerator); |
30
|
|
Validate.notNull(population); |
31
|
|
Validate.notNull(fitnessScore); |
32
|
|
Validate.isTrue(fitnessScore.size() > 0); |
33
|
|
Validate.isTrue(numCandidates > 0); |
34
|
|
|
35
|
4
1. pickRandomCandidates : removed call to java/util/List::size → SURVIVED
2. pickRandomCandidates : Substituted 0 with 1 → SURVIVED
3. pickRandomCandidates : replaced return value with Collections.emptyList for net/bmahe/genetics4j/core/selection/MultiTournamentsSelectionPolicyHandler::pickRandomCandidates → KILLED
4. pickRandomCandidates : removed call to java/util/random/RandomGenerator::ints → KILLED
|
return randomGenerator.ints(0, fitnessScore.size()) |
36
|
1
1. pickRandomCandidates : removed call to java/util/stream/IntStream::boxed → KILLED
|
.boxed() |
37
|
2
1. pickRandomCandidates : replaced call to java/util/stream/Stream::limit with receiver → SURVIVED
2. pickRandomCandidates : removed call to java/util/stream/Stream::limit → KILLED
|
.limit(numCandidates) |
38
|
8
1. lambda$pickRandomCandidates$0 : replaced return value with null for net/bmahe/genetics4j/core/selection/MultiTournamentsSelectionPolicyHandler::lambda$pickRandomCandidates$0 → KILLED
2. pickRandomCandidates : removed call to java/util/stream/Stream::map → KILLED
3. lambda$pickRandomCandidates$0 : removed call to java/lang/Integer::intValue → KILLED
4. lambda$pickRandomCandidates$0 : removed call to java/util/List::get → KILLED
5. pickRandomCandidates : replaced call to java/util/stream/Stream::map with receiver → KILLED
6. lambda$pickRandomCandidates$0 : removed call to java/util/List::get → KILLED
7. lambda$pickRandomCandidates$0 : removed call to net/bmahe/genetics4j/core/Individual::of → KILLED
8. lambda$pickRandomCandidates$0 : removed call to java/lang/Integer::intValue → KILLED
|
.map(i -> Individual.of(population.get(i), fitnessScore.get(i))) |
39
|
2
1. pickRandomCandidates : removed call to java/util/stream/Stream::collect → KILLED
2. pickRandomCandidates : removed call to java/util/stream/Collectors::toList → KILLED
|
.collect(Collectors.toList()); |
40
|
|
} |
41
|
|
|
42
|
|
private Individual<T> runTournament(final Tournament<T> tournament, final List<Genotype> population, |
43
|
|
final List<T> fitnessScore, final List<Individual<T>> candidates) { |
44
|
|
Validate.notNull(tournament); |
45
|
|
|
46
|
1
1. runTournament : removed call to net/bmahe/genetics4j/core/spec/selection/Tournament::comparator → KILLED
|
final Comparator<Individual<T>> comparator = tournament.comparator(); |
47
|
|
|
48
|
2
1. runTournament : replaced return value with null for net/bmahe/genetics4j/core/selection/MultiTournamentsSelectionPolicyHandler::runTournament → KILLED
2. runTournament : removed call to java/util/List::stream → KILLED
|
return candidates.stream() |
49
|
1
1. runTournament : removed call to java/util/stream/Stream::max → KILLED
|
.max(comparator) |
50
|
1
1. runTournament : removed call to java/util/Optional::get → KILLED
|
.get(); |
51
|
|
} |
52
|
|
|
53
|
|
private Individual<T> runTournament(final RandomGenerator randomGenerator, final List<Tournament<T>> tournaments, |
54
|
|
final List<Genotype> population, final List<T> fitnessScore, final int tournamentIndex) { |
55
|
|
Validate.notNull(tournaments); |
56
|
|
Validate.notNull(population); |
57
|
|
Validate.notNull(fitnessScore); |
58
|
|
Validate.isTrue(tournamentIndex < tournaments.size()); |
59
|
|
Validate.isTrue(tournamentIndex >= 0); |
60
|
|
|
61
|
1
1. runTournament : removed call to java/util/List::get → KILLED
|
final Tournament<T> tournament = tournaments.get(tournamentIndex); |
62
|
1
1. runTournament : removed call to net/bmahe/genetics4j/core/spec/selection/Tournament::numCandidates → KILLED
|
final int numCandidates = tournament.numCandidates(); |
63
|
|
|
64
|
|
List<Individual<T>> candidates; |
65
|
3
1. runTournament : negated conditional → KILLED
2. runTournament : removed conditional - replaced equality check with true → KILLED
3. runTournament : removed conditional - replaced equality check with false → KILLED
|
if (tournamentIndex == 0) { |
66
|
2
1. runTournament : removed call to net/bmahe/genetics4j/core/selection/MultiTournamentsSelectionPolicyHandler::pickRandomCandidates → KILLED
2. runTournament : replaced call to net/bmahe/genetics4j/core/selection/MultiTournamentsSelectionPolicyHandler::pickRandomCandidates with argument → KILLED
|
candidates = pickRandomCandidates(randomGenerator, population, fitnessScore, numCandidates); |
67
|
|
} else { |
68
|
1
1. runTournament : removed call to java/util/ArrayList::<init> → KILLED
|
candidates = new ArrayList<>(); |
69
|
|
|
70
|
5
1. runTournament : removed conditional - replaced comparison check with false → KILLED
2. runTournament : changed conditional boundary → KILLED
3. runTournament : Substituted 0 with 1 → KILLED
4. runTournament : negated conditional → KILLED
5. runTournament : removed conditional - replaced comparison check with true → KILLED
|
for (int i = 0; i < numCandidates; i++) { |
71
|
3
1. runTournament : Replaced integer subtraction with addition → KILLED
2. runTournament : Substituted 1 with 0 → KILLED
3. runTournament : removed call to net/bmahe/genetics4j/core/selection/MultiTournamentsSelectionPolicyHandler::runTournament → KILLED
|
final Individual<T> candidate = runTournament(randomGenerator, |
72
|
|
tournaments, |
73
|
|
population, |
74
|
|
fitnessScore, |
75
|
|
tournamentIndex - 1); |
76
|
1
1. runTournament : removed call to java/util/List::add → KILLED
|
candidates.add(candidate); |
77
|
|
} |
78
|
|
} |
79
|
|
|
80
|
2
1. runTournament : replaced return value with null for net/bmahe/genetics4j/core/selection/MultiTournamentsSelectionPolicyHandler::runTournament → KILLED
2. runTournament : removed call to net/bmahe/genetics4j/core/selection/MultiTournamentsSelectionPolicyHandler::runTournament → KILLED
|
return runTournament(tournament, population, fitnessScore, candidates); |
81
|
|
|
82
|
|
} |
83
|
|
|
84
|
|
public MultiTournamentsSelectionPolicyHandler(final RandomGenerator _randomGenerator) { |
85
|
|
Validate.notNull(_randomGenerator); |
86
|
|
|
87
|
1
1. <init> : Removed assignment to member variable randomGenerator → KILLED
|
this.randomGenerator = _randomGenerator; |
88
|
|
} |
89
|
|
|
90
|
|
@Override |
91
|
|
public boolean canHandle(final SelectionPolicy selectionPolicy) { |
92
|
|
Validate.notNull(selectionPolicy); |
93
|
2
1. canHandle : replaced boolean return with true for net/bmahe/genetics4j/core/selection/MultiTournamentsSelectionPolicyHandler::canHandle → KILLED
2. canHandle : replaced boolean return with false for net/bmahe/genetics4j/core/selection/MultiTournamentsSelectionPolicyHandler::canHandle → KILLED
|
return selectionPolicy instanceof MultiTournaments; |
94
|
|
} |
95
|
|
|
96
|
|
@Override |
97
|
|
public Selector<T> resolve(final AbstractEAExecutionContext<T> eaExecutionContext, |
98
|
|
final AbstractEAConfiguration<T> eaConfiguration, |
99
|
|
final SelectionPolicyHandlerResolver<T> selectionPolicyHandlerResolver, |
100
|
|
final SelectionPolicy selectionPolicy) { |
101
|
|
Validate.notNull(selectionPolicy); |
102
|
|
Validate.isInstanceOf(MultiTournaments.class, selectionPolicy); |
103
|
|
|
104
|
4
1. resolve : removed call to net/bmahe/genetics4j/core/selection/MultiTournamentsSelectionPolicyHandler$1::<init> → KILLED
2. resolve : replaced return value with null for net/bmahe/genetics4j/core/selection/MultiTournamentsSelectionPolicyHandler::resolve → KILLED
3. <init> : Removed assignment to member variable this$0 → KILLED
4. <init> : Removed assignment to member variable val$selectionPolicy → KILLED
|
return new Selector<T>() { |
105
|
|
|
106
|
|
@Override |
107
|
|
public Population<T> select(final AbstractEAConfiguration<T> eaConfiguration, final int numIndividuals, |
108
|
|
final List<Genotype> population, final List<T> fitnessScore) { |
109
|
|
Validate.notNull(eaConfiguration); |
110
|
|
Validate.notNull(population); |
111
|
|
Validate.notNull(fitnessScore); |
112
|
|
Validate.isTrue(numIndividuals > 0); |
113
|
|
Validate.isTrue(population.size() == fitnessScore.size()); |
114
|
|
|
115
|
|
@SuppressWarnings("unchecked") |
116
|
|
final MultiTournaments<T> multiTournaments = (MultiTournaments<T>) selectionPolicy; |
117
|
1
1. select : removed call to net/bmahe/genetics4j/core/spec/selection/MultiTournaments::tournaments → KILLED
|
final List<Tournament<T>> tournaments = multiTournaments.tournaments(); |
118
|
|
|
119
|
|
logger.debug("Selecting {} individuals", numIndividuals); |
120
|
1
1. select : removed call to net/bmahe/genetics4j/core/Population::<init> → KILLED
|
final Population<T> selectedIndividuals = new Population<>(); |
121
|
5
1. select : removed call to net/bmahe/genetics4j/core/Population::size → KILLED
2. select : removed conditional - replaced comparison check with true → KILLED
3. select : negated conditional → KILLED
4. select : removed conditional - replaced comparison check with false → KILLED
5. select : changed conditional boundary → KILLED
|
while (selectedIndividuals.size() < numIndividuals) { |
122
|
1
1. select : removed call to net/bmahe/genetics4j/core/selection/MultiTournamentsSelectionPolicyHandler::runTournament → KILLED
|
final Individual<T> selectedIndividual = runTournament(randomGenerator, |
123
|
|
tournaments, |
124
|
|
population, |
125
|
|
fitnessScore, |
126
|
3
1. select : Replaced integer subtraction with addition → KILLED
2. select : removed call to java/util/List::size → KILLED
3. select : Substituted 1 with 0 → KILLED
|
tournaments.size() - 1); |
127
|
1
1. select : removed call to net/bmahe/genetics4j/core/Population::add → KILLED
|
selectedIndividuals.add(selectedIndividual); |
128
|
|
} |
129
|
|
|
130
|
1
1. select : replaced return value with null for net/bmahe/genetics4j/core/selection/MultiTournamentsSelectionPolicyHandler$1::select → KILLED
|
return selectedIndividuals; |
131
|
|
} |
132
|
|
}; |
133
|
|
} |
134
|
|
} |
| | Mutations |
35 |
|
1.1 Location : pickRandomCandidates Killed by : none removed call to java/util/List::size → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()]
2.2 Location : pickRandomCandidates Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] replaced return value with Collections.emptyList for net/bmahe/genetics4j/core/selection/MultiTournamentsSelectionPolicyHandler::pickRandomCandidates → KILLED
3.3 Location : pickRandomCandidates Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] removed call to java/util/random/RandomGenerator::ints → KILLED
4.4 Location : pickRandomCandidates Killed by : none Substituted 0 with 1 → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()]
|
36 |
|
1.1 Location : pickRandomCandidates Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] removed call to java/util/stream/IntStream::boxed → KILLED
|
37 |
|
1.1 Location : pickRandomCandidates Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] removed call to java/util/stream/Stream::limit → KILLED
2.2 Location : pickRandomCandidates Killed by : none replaced call to java/util/stream/Stream::limit with receiver → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()]
|
38 |
|
1.1 Location : lambda$pickRandomCandidates$0 Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] replaced return value with null for net/bmahe/genetics4j/core/selection/MultiTournamentsSelectionPolicyHandler::lambda$pickRandomCandidates$0 → KILLED
2.2 Location : pickRandomCandidates Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] removed call to java/util/stream/Stream::map → KILLED
3.3 Location : lambda$pickRandomCandidates$0 Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] removed call to java/lang/Integer::intValue → KILLED
4.4 Location : lambda$pickRandomCandidates$0 Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] removed call to java/util/List::get → KILLED
5.5 Location : pickRandomCandidates Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] replaced call to java/util/stream/Stream::map with receiver → KILLED
6.6 Location : lambda$pickRandomCandidates$0 Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] removed call to java/util/List::get → KILLED
7.7 Location : lambda$pickRandomCandidates$0 Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] removed call to net/bmahe/genetics4j/core/Individual::of → KILLED
8.8 Location : lambda$pickRandomCandidates$0 Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] removed call to java/lang/Integer::intValue → KILLED
|
39 |
|
1.1 Location : pickRandomCandidates Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] removed call to java/util/stream/Stream::collect → KILLED
2.2 Location : pickRandomCandidates Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] removed call to java/util/stream/Collectors::toList → KILLED
|
46 |
|
1.1 Location : runTournament Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] removed call to net/bmahe/genetics4j/core/spec/selection/Tournament::comparator → KILLED
|
48 |
|
1.1 Location : runTournament Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] replaced return value with null for net/bmahe/genetics4j/core/selection/MultiTournamentsSelectionPolicyHandler::runTournament → KILLED
2.2 Location : runTournament Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] removed call to java/util/List::stream → KILLED
|
49 |
|
1.1 Location : runTournament Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] removed call to java/util/stream/Stream::max → KILLED
|
50 |
|
1.1 Location : runTournament Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] removed call to java/util/Optional::get → KILLED
|
61 |
|
1.1 Location : runTournament Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] removed call to java/util/List::get → KILLED
|
62 |
|
1.1 Location : runTournament Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] removed call to net/bmahe/genetics4j/core/spec/selection/Tournament::numCandidates → KILLED
|
65 |
|
1.1 Location : runTournament Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] negated conditional → KILLED
2.2 Location : runTournament Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] removed conditional - replaced equality check with true → KILLED
3.3 Location : runTournament Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] removed conditional - replaced equality check with false → KILLED
|
66 |
|
1.1 Location : runTournament Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] removed call to net/bmahe/genetics4j/core/selection/MultiTournamentsSelectionPolicyHandler::pickRandomCandidates → KILLED
2.2 Location : runTournament Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] replaced call to net/bmahe/genetics4j/core/selection/MultiTournamentsSelectionPolicyHandler::pickRandomCandidates with argument → KILLED
|
68 |
|
1.1 Location : runTournament Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] removed call to java/util/ArrayList::<init> → KILLED
|
70 |
|
1.1 Location : runTournament Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] removed conditional - replaced comparison check with false → KILLED
2.2 Location : runTournament Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] changed conditional boundary → KILLED
3.3 Location : runTournament Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] Substituted 0 with 1 → KILLED
4.4 Location : runTournament Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] negated conditional → KILLED
5.5 Location : runTournament Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] removed conditional - replaced comparison check with true → KILLED
|
71 |
|
1.1 Location : runTournament Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] Replaced integer subtraction with addition → KILLED
2.2 Location : runTournament Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] Substituted 1 with 0 → KILLED
3.3 Location : runTournament Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] removed call to net/bmahe/genetics4j/core/selection/MultiTournamentsSelectionPolicyHandler::runTournament → KILLED
|
76 |
|
1.1 Location : runTournament Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] removed call to java/util/List::add → KILLED
|
80 |
|
1.1 Location : runTournament Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] replaced return value with null for net/bmahe/genetics4j/core/selection/MultiTournamentsSelectionPolicyHandler::runTournament → KILLED
2.2 Location : runTournament Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] removed call to net/bmahe/genetics4j/core/selection/MultiTournamentsSelectionPolicyHandler::runTournament → KILLED
|
87 |
|
1.1 Location : <init> Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] Removed assignment to member variable randomGenerator → KILLED
|
93 |
|
1.1 Location : canHandle Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:canHandle()] replaced boolean return with true for net/bmahe/genetics4j/core/selection/MultiTournamentsSelectionPolicyHandler::canHandle → KILLED
2.2 Location : canHandle Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:canHandle()] replaced boolean return with false for net/bmahe/genetics4j/core/selection/MultiTournamentsSelectionPolicyHandler::canHandle → KILLED
|
104 |
|
1.1 Location : resolve Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] removed call to net/bmahe/genetics4j/core/selection/MultiTournamentsSelectionPolicyHandler$1::<init> → KILLED
2.2 Location : resolve Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] replaced return value with null for net/bmahe/genetics4j/core/selection/MultiTournamentsSelectionPolicyHandler::resolve → KILLED
3.3 Location : <init> Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] Removed assignment to member variable this$0 → KILLED
4.4 Location : <init> Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] Removed assignment to member variable val$selectionPolicy → KILLED
|
117 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] removed call to net/bmahe/genetics4j/core/spec/selection/MultiTournaments::tournaments → KILLED
|
120 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] removed call to net/bmahe/genetics4j/core/Population::<init> → KILLED
|
121 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] removed call to net/bmahe/genetics4j/core/Population::size → KILLED
2.2 Location : select Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] removed conditional - replaced comparison check with true → KILLED
3.3 Location : select Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] negated conditional → KILLED
4.4 Location : select Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] removed conditional - replaced comparison check with false → KILLED
5.5 Location : select Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] changed conditional boundary → KILLED
|
122 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] removed call to net/bmahe/genetics4j/core/selection/MultiTournamentsSelectionPolicyHandler::runTournament → KILLED
|
126 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] Replaced integer subtraction with addition → KILLED
2.2 Location : select Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] removed call to java/util/List::size → KILLED
3.3 Location : select Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] Substituted 1 with 0 → KILLED
|
127 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] removed call to net/bmahe/genetics4j/core/Population::add → KILLED
|
130 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.MultiTournamentsSelectionPolicyHandlerTest]/[method:selectMaxThenMin()] replaced return value with null for net/bmahe/genetics4j/core/selection/MultiTournamentsSelectionPolicyHandler$1::select → KILLED
|