|
1
|
|
package net.bmahe.genetics4j.moo.nsga2.impl; |
|
2
|
|
|
|
3
|
|
import java.util.Collection; |
|
4
|
|
import java.util.Comparator; |
|
5
|
|
import java.util.List; |
|
6
|
|
import java.util.Objects; |
|
7
|
|
import java.util.Set; |
|
8
|
|
import java.util.TreeSet; |
|
9
|
|
import java.util.function.Function; |
|
10
|
|
import java.util.stream.Collectors; |
|
11
|
|
|
|
12
|
|
import org.apache.commons.lang3.Validate; |
|
13
|
|
import org.apache.logging.log4j.LogManager; |
|
14
|
|
import org.apache.logging.log4j.Logger; |
|
15
|
|
|
|
16
|
|
import net.bmahe.genetics4j.core.Genotype; |
|
17
|
|
import net.bmahe.genetics4j.core.Population; |
|
18
|
|
import net.bmahe.genetics4j.core.selection.Selector; |
|
19
|
|
import net.bmahe.genetics4j.core.spec.AbstractEAConfiguration; |
|
20
|
|
import net.bmahe.genetics4j.moo.ObjectiveDistance; |
|
21
|
|
import net.bmahe.genetics4j.moo.ParetoUtils; |
|
22
|
|
import net.bmahe.genetics4j.moo.nsga2.spec.NSGA2Selection; |
|
23
|
|
|
|
24
|
|
public class NSGA2Selector<T extends Comparable<T>> implements Selector<T> { |
|
25
|
|
final static public Logger logger = LogManager.getLogger(NSGA2Selector.class); |
|
26
|
|
|
|
27
|
|
private final NSGA2Selection<T> nsga2Selection; |
|
28
|
|
|
|
29
|
|
public NSGA2Selector(final NSGA2Selection<T> _nsga2Selection) { |
|
30
|
|
Objects.requireNonNull(_nsga2Selection); |
|
31
|
|
|
|
32
|
1
1. <init> : Removed assignment to member variable nsga2Selection → KILLED
|
this.nsga2Selection = _nsga2Selection; |
|
33
|
|
} |
|
34
|
|
|
|
35
|
|
@Override |
|
36
|
|
public Population<T> select(final AbstractEAConfiguration<T> eaConfiguration, final long generation, |
|
37
|
|
final int numIndividuals, final List<Genotype> population, final List<T> fitnessScore) { |
|
38
|
|
Objects.requireNonNull(eaConfiguration); |
|
39
|
|
Objects.requireNonNull(population); |
|
40
|
|
Objects.requireNonNull(fitnessScore); |
|
41
|
|
Validate.isTrue(generation >= 0); |
|
42
|
|
Validate.isTrue(numIndividuals > 0); |
|
43
|
|
Validate.isTrue(population.size() == fitnessScore.size()); |
|
44
|
|
|
|
45
|
|
logger.debug("Incoming population size is {}", population.size()); |
|
46
|
|
|
|
47
|
1
1. select : removed call to net/bmahe/genetics4j/core/Population::<init> → KILLED
|
final Population<T> individuals = new Population<>(); |
|
48
|
1
1. select : removed call to net/bmahe/genetics4j/moo/nsga2/spec/NSGA2Selection::deduplicate → KILLED
|
if (nsga2Selection.deduplicate() |
|
49
|
4
1. select : removed call to java/util/Optional::isPresent → SURVIVED
2. select : removed conditional - replaced equality check with false → SURVIVED
3. select : negated conditional → KILLED
4. select : removed conditional - replaced equality check with true → KILLED
|
.isPresent()) { |
|
50
|
1
1. select : removed call to net/bmahe/genetics4j/moo/nsga2/spec/NSGA2Selection::deduplicate → NO_COVERAGE
|
final Comparator<Genotype> individualDeduplicator = nsga2Selection.deduplicate() |
|
51
|
1
1. select : removed call to java/util/Optional::get → NO_COVERAGE
|
.get(); |
|
52
|
1
1. select : removed call to java/util/TreeSet::<init> → NO_COVERAGE
|
final Set<Genotype> seenGenotype = new TreeSet<>(individualDeduplicator); |
|
53
|
|
|
|
54
|
6
1. select : Substituted 0 with 1 → NO_COVERAGE
2. select : changed conditional boundary → NO_COVERAGE
3. select : removed conditional - replaced comparison check with false → NO_COVERAGE
4. select : removed call to java/util/List::size → NO_COVERAGE
5. select : removed conditional - replaced comparison check with true → NO_COVERAGE
6. select : negated conditional → NO_COVERAGE
|
for (int i = 0; i < population.size(); i++) { |
|
55
|
1
1. select : removed call to java/util/List::get → NO_COVERAGE
|
final Genotype genotype = population.get(i); |
|
56
|
1
1. select : removed call to java/util/List::get → NO_COVERAGE
|
final T fitness = fitnessScore.get(i); |
|
57
|
|
|
|
58
|
4
1. select : removed conditional - replaced equality check with true → NO_COVERAGE
2. select : removed conditional - replaced equality check with false → NO_COVERAGE
3. select : removed call to java/util/Set::add → NO_COVERAGE
4. select : negated conditional → NO_COVERAGE
|
if (seenGenotype.add(genotype)) { |
|
59
|
1
1. select : removed call to net/bmahe/genetics4j/core/Population::add → NO_COVERAGE
|
individuals.add(genotype, fitness); |
|
60
|
|
} |
|
61
|
|
} |
|
62
|
|
|
|
63
|
|
} else { |
|
64
|
6
1. select : changed conditional boundary → KILLED
2. select : negated conditional → KILLED
3. select : Substituted 0 with 1 → KILLED
4. select : removed conditional - replaced comparison check with true → KILLED
5. select : removed call to java/util/List::size → KILLED
6. select : removed conditional - replaced comparison check with false → KILLED
|
for (int i = 0; i < population.size(); i++) { |
|
65
|
1
1. select : removed call to java/util/List::get → KILLED
|
final Genotype genotype = population.get(i); |
|
66
|
1
1. select : removed call to java/util/List::get → KILLED
|
final T fitness = fitnessScore.get(i); |
|
67
|
|
|
|
68
|
1
1. select : removed call to net/bmahe/genetics4j/core/Population::add → KILLED
|
individuals.add(genotype, fitness); |
|
69
|
|
} |
|
70
|
|
} |
|
71
|
|
|
|
72
|
|
logger.debug("Selecting {} individuals from a population of {}", numIndividuals, individuals.size()); |
|
73
|
|
|
|
74
|
1
1. select : removed call to net/bmahe/genetics4j/moo/nsga2/spec/NSGA2Selection::numberObjectives → KILLED
|
final int numberObjectives = nsga2Selection.numberObjectives(); |
|
75
|
|
|
|
76
|
6
1. select : removed call to java/lang/MatchException::<init> → NO_COVERAGE
2. select : RemoveSwitch 1 (case value 2) → SURVIVED
3. select : removed call to net/bmahe/genetics4j/core/spec/AbstractEAConfiguration::optimization → KILLED
4. select : removed call to net/bmahe/genetics4j/core/spec/Optimization::ordinal → KILLED
5. select : Changed switch default to be first case → KILLED
6. select : RemoveSwitch 0 (case value 1) → KILLED
|
final Comparator<T> dominance = switch (eaConfiguration.optimization()) { |
|
77
|
1
1. select : removed call to net/bmahe/genetics4j/moo/nsga2/spec/NSGA2Selection::dominance → KILLED
|
case MAXIMIZE -> nsga2Selection.dominance(); |
|
78
|
1
1. select : removed call to net/bmahe/genetics4j/moo/nsga2/spec/NSGA2Selection::dominance → NO_COVERAGE
|
case MINIMIZE -> nsga2Selection.dominance() |
|
79
|
2
1. select : removed call to java/util/Comparator::reversed → NO_COVERAGE
2. select : replaced call to java/util/Comparator::reversed with receiver → NO_COVERAGE
|
.reversed(); |
|
80
|
|
}; |
|
81
|
|
|
|
82
|
6
1. select : RemoveSwitch 1 (case value 2) → SURVIVED
2. select : removed call to net/bmahe/genetics4j/core/spec/Optimization::ordinal → SURVIVED
3. select : removed call to java/lang/MatchException::<init> → NO_COVERAGE
4. select : removed call to net/bmahe/genetics4j/core/spec/AbstractEAConfiguration::optimization → KILLED
5. select : RemoveSwitch 0 (case value 1) → KILLED
6. select : Changed switch default to be first case → KILLED
|
final Function<Integer, Comparator<T>> objectiveComparator = switch (eaConfiguration.optimization()) { |
|
83
|
1
1. select : removed call to net/bmahe/genetics4j/moo/nsga2/spec/NSGA2Selection::objectiveComparator → KILLED
|
case MAXIMIZE -> nsga2Selection.objectiveComparator(); |
|
84
|
1
1. lambda$select$0 : removed call to net/bmahe/genetics4j/moo/nsga2/spec/NSGA2Selection::objectiveComparator → NO_COVERAGE
|
case MINIMIZE -> (m) -> nsga2Selection.objectiveComparator() |
|
85
|
3
1. lambda$select$0 : replaced call to java/util/function/Function::apply with argument → NO_COVERAGE
2. lambda$select$0 : removed call to java/util/function/Function::apply → NO_COVERAGE
3. lambda$select$0 : replaced return value with null for net/bmahe/genetics4j/moo/nsga2/impl/NSGA2Selector::lambda$select$0 → NO_COVERAGE
|
.apply(m) |
|
86
|
2
1. lambda$select$0 : replaced call to java/util/Comparator::reversed with receiver → NO_COVERAGE
2. lambda$select$0 : removed call to java/util/Comparator::reversed → NO_COVERAGE
|
.reversed(); |
|
87
|
|
}; |
|
88
|
|
|
|
89
|
1
1. select : removed call to net/bmahe/genetics4j/moo/nsga2/spec/NSGA2Selection::distance → KILLED
|
final ObjectiveDistance<T> objectiveDistance = nsga2Selection.distance(); |
|
90
|
|
|
|
91
|
|
logger.debug("Ranking population"); |
|
92
|
2
1. select : removed call to net/bmahe/genetics4j/moo/ParetoUtils::rankedPopulation → KILLED
2. select : replaced call to net/bmahe/genetics4j/moo/ParetoUtils::rankedPopulation with argument → KILLED
|
final List<Set<Integer>> rankedPopulation = ParetoUtils.rankedPopulation(dominance, |
|
93
|
1
1. select : removed call to net/bmahe/genetics4j/core/Population::getAllFitnesses → KILLED
|
individuals.getAllFitnesses()); |
|
94
|
|
|
|
95
|
|
logger.debug("Computing crowding distance assignment"); |
|
96
|
1
1. select : removed call to net/bmahe/genetics4j/moo/nsga2/impl/NSGA2Utils::crowdingDistanceAssignment → SURVIVED
|
double[] crowdingDistanceAssignment = NSGA2Utils.crowdingDistanceAssignment(numberObjectives, |
|
97
|
1
1. select : removed call to net/bmahe/genetics4j/core/Population::getAllFitnesses → KILLED
|
individuals.getAllFitnesses(), |
|
98
|
|
objectiveComparator, |
|
99
|
|
objectiveDistance); |
|
100
|
|
|
|
101
|
|
logger.debug("Selecting individuals"); |
|
102
|
1
1. select : removed call to net/bmahe/genetics4j/core/Population::<init> → KILLED
|
final Population<T> selectedIndividuals = new Population<>(); |
|
103
|
1
1. select : Substituted 0 with 1 → KILLED
|
int currentFrontIndex = 0; |
|
104
|
10
1. select : changed conditional boundary → SURVIVED
2. select : removed conditional - replaced comparison check with true → SURVIVED
3. select : removed call to net/bmahe/genetics4j/core/Population::size → SURVIVED
4. select : changed conditional boundary → SURVIVED
5. select : removed conditional - replaced comparison check with true → SURVIVED
6. select : removed conditional - replaced comparison check with false → KILLED
7. select : removed conditional - replaced comparison check with false → KILLED
8. select : removed call to java/util/List::size → KILLED
9. select : negated conditional → KILLED
10. select : negated conditional → KILLED
|
while (selectedIndividuals.size() < numIndividuals && currentFrontIndex < rankedPopulation.size() |
|
105
|
1
1. select : removed call to java/util/List::get → KILLED
|
&& rankedPopulation.get(currentFrontIndex) |
|
106
|
5
1. select : removed conditional - replaced comparison check with true → SURVIVED
2. select : changed conditional boundary → SURVIVED
3. select : negated conditional → KILLED
4. select : removed call to java/util/Set::size → KILLED
5. select : removed conditional - replaced comparison check with false → KILLED
|
.size() > 0) { |
|
107
|
|
|
|
108
|
1
1. select : removed call to java/util/List::get → KILLED
|
final Set<Integer> currentFront = rankedPopulation.get(currentFrontIndex); |
|
109
|
|
|
|
110
|
|
Collection<Integer> bestIndividuals = currentFront; |
|
111
|
7
1. select : removed conditional - replaced comparison check with false → SURVIVED
2. select : removed call to java/util/Set::size → SURVIVED
3. select : removed conditional - replaced comparison check with true → SURVIVED
4. select : negated conditional → SURVIVED
5. select : changed conditional boundary → SURVIVED
6. select : removed call to net/bmahe/genetics4j/core/Population::size → SURVIVED
7. select : Replaced integer subtraction with addition → SURVIVED
|
if (currentFront.size() > numIndividuals - selectedIndividuals.size()) { |
|
112
|
|
|
|
113
|
1
1. select : removed call to java/util/Set::stream → NO_COVERAGE
|
bestIndividuals = currentFront.stream() |
|
114
|
6
1. lambda$select$1 : removed call to java/lang/Double::compare → NO_COVERAGE
2. lambda$select$1 : removed call to java/lang/Integer::intValue → NO_COVERAGE
3. select : removed call to java/util/stream/Stream::sorted → NO_COVERAGE
4. lambda$select$1 : replaced int return with 0 for net/bmahe/genetics4j/moo/nsga2/impl/NSGA2Selector::lambda$select$1 → NO_COVERAGE
5. lambda$select$1 : removed call to java/lang/Integer::intValue → NO_COVERAGE
6. select : replaced call to java/util/stream/Stream::sorted with receiver → NO_COVERAGE
|
.sorted((a, b) -> Double.compare(crowdingDistanceAssignment[b], crowdingDistanceAssignment[a])) |
|
115
|
4
1. select : removed call to java/util/stream/Stream::limit → NO_COVERAGE
2. select : removed call to net/bmahe/genetics4j/core/Population::size → NO_COVERAGE
3. select : replaced call to java/util/stream/Stream::limit with receiver → NO_COVERAGE
4. select : Replaced integer subtraction with addition → NO_COVERAGE
|
.limit(numIndividuals - selectedIndividuals.size()) |
|
116
|
2
1. select : removed call to java/util/stream/Collectors::toList → NO_COVERAGE
2. select : removed call to java/util/stream/Stream::collect → NO_COVERAGE
|
.collect(Collectors.toList()); |
|
117
|
|
} |
|
118
|
|
|
|
119
|
|
for (final Integer individualIndex : bestIndividuals) { |
|
120
|
|
if (logger.isTraceEnabled()) { |
|
121
|
|
logger.trace("Adding individual with index {}, fitness {}, rank {}, crowding distance {}", |
|
122
|
|
individualIndex, |
|
123
|
2
1. select : removed call to java/lang/Integer::intValue → NO_COVERAGE
2. select : removed call to net/bmahe/genetics4j/core/Population::getFitness → NO_COVERAGE
|
individuals.getFitness(individualIndex), |
|
124
|
1
1. select : removed call to java/lang/Integer::valueOf → NO_COVERAGE
|
currentFrontIndex, |
|
125
|
2
1. select : removed call to java/lang/Double::valueOf → NO_COVERAGE
2. select : removed call to java/lang/Integer::intValue → NO_COVERAGE
|
crowdingDistanceAssignment[individualIndex]); |
|
126
|
|
} |
|
127
|
|
|
|
128
|
5
1. select : removed call to java/lang/Integer::intValue → SURVIVED
2. select : removed call to net/bmahe/genetics4j/core/Population::getGenotype → KILLED
3. select : removed call to java/lang/Integer::intValue → KILLED
4. select : removed call to net/bmahe/genetics4j/core/Population::add → KILLED
5. select : removed call to net/bmahe/genetics4j/core/Population::getFitness → KILLED
|
selectedIndividuals.add(individuals.getGenotype(individualIndex), individuals.getFitness(individualIndex)); |
|
129
|
|
} |
|
130
|
|
|
|
131
|
|
logger.trace("Selected {} individuals from rank {}", bestIndividuals.size(), currentFrontIndex); |
|
132
|
2
1. select : Removed increment 1 → KILLED
2. select : Changed increment from 1 to -1 → KILLED
|
currentFrontIndex++; |
|
133
|
|
} |
|
134
|
|
|
|
135
|
1
1. select : replaced return value with null for net/bmahe/genetics4j/moo/nsga2/impl/NSGA2Selector::select → KILLED
|
return selectedIndividuals; |
|
136
|
|
} |
|
137
|
|
} |
| | Mutations |
| 32 |
|
1.1 Location : <init> Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] Removed assignment to member variable nsga2Selection → KILLED
|
| 47 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] removed call to net/bmahe/genetics4j/core/Population::<init> → KILLED
|
| 48 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] removed call to net/bmahe/genetics4j/moo/nsga2/spec/NSGA2Selection::deduplicate → KILLED
|
| 49 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] negated conditional → KILLED
2.2 Location : select Killed by : none removed call to java/util/Optional::isPresent → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()]
3.3 Location : select Killed by : none removed conditional - replaced equality check with false → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()]
4.4 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] removed conditional - replaced equality check with true → KILLED
|
| 50 |
|
1.1 Location : select Killed by : none removed call to net/bmahe/genetics4j/moo/nsga2/spec/NSGA2Selection::deduplicate → NO_COVERAGE
|
| 51 |
|
1.1 Location : select Killed by : none removed call to java/util/Optional::get → NO_COVERAGE
|
| 52 |
|
1.1 Location : select Killed by : none removed call to java/util/TreeSet::<init> → NO_COVERAGE
|
| 54 |
|
1.1 Location : select Killed by : none Substituted 0 with 1 → NO_COVERAGE
2.2 Location : select Killed by : none changed conditional boundary → NO_COVERAGE
3.3 Location : select Killed by : none removed conditional - replaced comparison check with false → NO_COVERAGE
4.4 Location : select Killed by : none removed call to java/util/List::size → NO_COVERAGE
5.5 Location : select Killed by : none removed conditional - replaced comparison check with true → NO_COVERAGE
6.6 Location : select Killed by : none negated conditional → NO_COVERAGE
|
| 55 |
|
1.1 Location : select Killed by : none removed call to java/util/List::get → NO_COVERAGE
|
| 56 |
|
1.1 Location : select Killed by : none removed call to java/util/List::get → NO_COVERAGE
|
| 58 |
|
1.1 Location : select Killed by : none removed conditional - replaced equality check with true → NO_COVERAGE
2.2 Location : select Killed by : none removed conditional - replaced equality check with false → NO_COVERAGE
3.3 Location : select Killed by : none removed call to java/util/Set::add → NO_COVERAGE
4.4 Location : select Killed by : none negated conditional → NO_COVERAGE
|
| 59 |
|
1.1 Location : select Killed by : none removed call to net/bmahe/genetics4j/core/Population::add → NO_COVERAGE
|
| 64 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] changed conditional boundary → KILLED
2.2 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] negated conditional → KILLED
3.3 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] Substituted 0 with 1 → KILLED
4.4 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] removed conditional - replaced comparison check with true → KILLED
5.5 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] removed call to java/util/List::size → KILLED
6.6 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] removed conditional - replaced comparison check with false → KILLED
|
| 65 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] removed call to java/util/List::get → KILLED
|
| 66 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] removed call to java/util/List::get → KILLED
|
| 68 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] removed call to net/bmahe/genetics4j/core/Population::add → KILLED
|
| 74 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] removed call to net/bmahe/genetics4j/moo/nsga2/spec/NSGA2Selection::numberObjectives → KILLED
|
| 76 |
|
1.1 Location : select Killed by : none removed call to java/lang/MatchException::<init> → NO_COVERAGE
2.2 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] removed call to net/bmahe/genetics4j/core/spec/AbstractEAConfiguration::optimization → KILLED
3.3 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] removed call to net/bmahe/genetics4j/core/spec/Optimization::ordinal → KILLED
4.4 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] Changed switch default to be first case → KILLED
5.5 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] RemoveSwitch 0 (case value 1) → KILLED
6.6 Location : select Killed by : none RemoveSwitch 1 (case value 2) → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()]
|
| 77 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] removed call to net/bmahe/genetics4j/moo/nsga2/spec/NSGA2Selection::dominance → KILLED
|
| 78 |
|
1.1 Location : select Killed by : none removed call to net/bmahe/genetics4j/moo/nsga2/spec/NSGA2Selection::dominance → NO_COVERAGE
|
| 79 |
|
1.1 Location : select Killed by : none removed call to java/util/Comparator::reversed → NO_COVERAGE
2.2 Location : select Killed by : none replaced call to java/util/Comparator::reversed with receiver → NO_COVERAGE
|
| 82 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] removed call to net/bmahe/genetics4j/core/spec/AbstractEAConfiguration::optimization → KILLED
2.2 Location : select Killed by : none RemoveSwitch 1 (case value 2) → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()]
3.3 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] RemoveSwitch 0 (case value 1) → KILLED
4.4 Location : select Killed by : none removed call to net/bmahe/genetics4j/core/spec/Optimization::ordinal → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()]
5.5 Location : select Killed by : none removed call to java/lang/MatchException::<init> → NO_COVERAGE
6.6 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] Changed switch default to be first case → KILLED
|
| 83 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] removed call to net/bmahe/genetics4j/moo/nsga2/spec/NSGA2Selection::objectiveComparator → KILLED
|
| 84 |
|
1.1 Location : lambda$select$0 Killed by : none removed call to net/bmahe/genetics4j/moo/nsga2/spec/NSGA2Selection::objectiveComparator → NO_COVERAGE
|
| 85 |
|
1.1 Location : lambda$select$0 Killed by : none replaced call to java/util/function/Function::apply with argument → NO_COVERAGE
2.2 Location : lambda$select$0 Killed by : none removed call to java/util/function/Function::apply → NO_COVERAGE
3.3 Location : lambda$select$0 Killed by : none replaced return value with null for net/bmahe/genetics4j/moo/nsga2/impl/NSGA2Selector::lambda$select$0 → NO_COVERAGE
|
| 86 |
|
1.1 Location : lambda$select$0 Killed by : none replaced call to java/util/Comparator::reversed with receiver → NO_COVERAGE
2.2 Location : lambda$select$0 Killed by : none removed call to java/util/Comparator::reversed → NO_COVERAGE
|
| 89 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] removed call to net/bmahe/genetics4j/moo/nsga2/spec/NSGA2Selection::distance → KILLED
|
| 92 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] removed call to net/bmahe/genetics4j/moo/ParetoUtils::rankedPopulation → KILLED
2.2 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] replaced call to net/bmahe/genetics4j/moo/ParetoUtils::rankedPopulation with argument → KILLED
|
| 93 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] removed call to net/bmahe/genetics4j/core/Population::getAllFitnesses → KILLED
|
| 96 |
|
1.1 Location : select Killed by : none removed call to net/bmahe/genetics4j/moo/nsga2/impl/NSGA2Utils::crowdingDistanceAssignment → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()]
|
| 97 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] removed call to net/bmahe/genetics4j/core/Population::getAllFitnesses → KILLED
|
| 102 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] removed call to net/bmahe/genetics4j/core/Population::<init> → KILLED
|
| 103 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] Substituted 0 with 1 → KILLED
|
| 104 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] removed conditional - replaced comparison check with false → KILLED
2.2 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] removed conditional - replaced comparison check with false → KILLED
3.3 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] removed call to java/util/List::size → KILLED
4.4 Location : select Killed by : none changed conditional boundary → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()]
5.5 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] negated conditional → KILLED
6.6 Location : select Killed by : none removed conditional - replaced comparison check with true → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()]
7.7 Location : select Killed by : none removed call to net/bmahe/genetics4j/core/Population::size → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()]
8.8 Location : select Killed by : none changed conditional boundary → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()]
9.9 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] negated conditional → KILLED
10.10 Location : select Killed by : none removed conditional - replaced comparison check with true → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()]
|
| 105 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] removed call to java/util/List::get → KILLED
|
| 106 |
|
1.1 Location : select Killed by : none removed conditional - replaced comparison check with true → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()]
2.2 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] negated conditional → KILLED
3.3 Location : select Killed by : none changed conditional boundary → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()]
4.4 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] removed call to java/util/Set::size → KILLED
5.5 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] removed conditional - replaced comparison check with false → KILLED
|
| 108 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] removed call to java/util/List::get → KILLED
|
| 111 |
|
1.1 Location : select Killed by : none removed conditional - replaced comparison check with false → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()]
2.2 Location : select Killed by : none removed call to java/util/Set::size → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()]
3.3 Location : select Killed by : none removed conditional - replaced comparison check with true → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()]
4.4 Location : select Killed by : none negated conditional → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()]
5.5 Location : select Killed by : none changed conditional boundary → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()]
6.6 Location : select Killed by : none removed call to net/bmahe/genetics4j/core/Population::size → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()]
7.7 Location : select Killed by : none Replaced integer subtraction with addition → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()]
|
| 113 |
|
1.1 Location : select Killed by : none removed call to java/util/Set::stream → NO_COVERAGE
|
| 114 |
|
1.1 Location : lambda$select$1 Killed by : none removed call to java/lang/Double::compare → NO_COVERAGE
2.2 Location : lambda$select$1 Killed by : none removed call to java/lang/Integer::intValue → NO_COVERAGE
3.3 Location : select Killed by : none removed call to java/util/stream/Stream::sorted → NO_COVERAGE
4.4 Location : lambda$select$1 Killed by : none replaced int return with 0 for net/bmahe/genetics4j/moo/nsga2/impl/NSGA2Selector::lambda$select$1 → NO_COVERAGE
5.5 Location : lambda$select$1 Killed by : none removed call to java/lang/Integer::intValue → NO_COVERAGE
6.6 Location : select Killed by : none replaced call to java/util/stream/Stream::sorted with receiver → NO_COVERAGE
|
| 115 |
|
1.1 Location : select Killed by : none removed call to java/util/stream/Stream::limit → NO_COVERAGE
2.2 Location : select Killed by : none removed call to net/bmahe/genetics4j/core/Population::size → NO_COVERAGE
3.3 Location : select Killed by : none replaced call to java/util/stream/Stream::limit with receiver → NO_COVERAGE
4.4 Location : select Killed by : none Replaced integer subtraction with addition → NO_COVERAGE
|
| 116 |
|
1.1 Location : select Killed by : none removed call to java/util/stream/Collectors::toList → NO_COVERAGE
2.2 Location : select Killed by : none removed call to java/util/stream/Stream::collect → NO_COVERAGE
|
| 123 |
|
1.1 Location : select Killed by : none removed call to java/lang/Integer::intValue → NO_COVERAGE
2.2 Location : select Killed by : none removed call to net/bmahe/genetics4j/core/Population::getFitness → NO_COVERAGE
|
| 124 |
|
1.1 Location : select Killed by : none removed call to java/lang/Integer::valueOf → NO_COVERAGE
|
| 125 |
|
1.1 Location : select Killed by : none removed call to java/lang/Double::valueOf → NO_COVERAGE
2.2 Location : select Killed by : none removed call to java/lang/Integer::intValue → NO_COVERAGE
|
| 128 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] removed call to net/bmahe/genetics4j/core/Population::getGenotype → KILLED
2.2 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] removed call to java/lang/Integer::intValue → KILLED
3.3 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] removed call to net/bmahe/genetics4j/core/Population::add → KILLED
4.4 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] removed call to net/bmahe/genetics4j/core/Population::getFitness → KILLED
5.5 Location : select Killed by : none removed call to java/lang/Integer::intValue → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()]
|
| 132 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] Removed increment 1 → KILLED
2.2 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] Changed increment from 1 to -1 → KILLED
|
| 135 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] replaced return value with null for net/bmahe/genetics4j/moo/nsga2/impl/NSGA2Selector::select → KILLED
|