1
|
|
package net.bmahe.genetics4j.core.selection; |
2
|
|
|
3
|
|
import java.util.Comparator; |
4
|
|
import java.util.List; |
5
|
|
import java.util.random.RandomGenerator; |
6
|
|
|
7
|
|
import org.apache.commons.lang3.Validate; |
8
|
|
|
9
|
|
import net.bmahe.genetics4j.core.Genotype; |
10
|
|
import net.bmahe.genetics4j.core.Population; |
11
|
|
import net.bmahe.genetics4j.core.spec.AbstractEAConfiguration; |
12
|
|
import net.bmahe.genetics4j.core.spec.AbstractEAExecutionContext; |
13
|
|
import net.bmahe.genetics4j.core.spec.selection.RouletteWheel; |
14
|
|
import net.bmahe.genetics4j.core.spec.selection.SelectionPolicy; |
15
|
|
|
16
|
|
public class RouletteWheelSelectionPolicyHandler<T extends Number & Comparable<T>> |
17
|
|
implements SelectionPolicyHandler<T> |
18
|
|
{ |
19
|
|
|
20
|
|
private final RandomGenerator randomGenerator; |
21
|
|
|
22
|
|
public RouletteWheelSelectionPolicyHandler(final RandomGenerator _randomGenerator) { |
23
|
|
Validate.notNull(_randomGenerator); |
24
|
|
|
25
|
1
1. <init> : Removed assignment to member variable randomGenerator → KILLED
|
this.randomGenerator = _randomGenerator; |
26
|
|
} |
27
|
|
|
28
|
|
@Override |
29
|
|
public boolean canHandle(final SelectionPolicy selectionPolicy) { |
30
|
|
Validate.notNull(selectionPolicy); |
31
|
2
1. canHandle : replaced boolean return with false for net/bmahe/genetics4j/core/selection/RouletteWheelSelectionPolicyHandler::canHandle → KILLED
2. canHandle : replaced boolean return with true for net/bmahe/genetics4j/core/selection/RouletteWheelSelectionPolicyHandler::canHandle → KILLED
|
return selectionPolicy instanceof RouletteWheel; |
32
|
|
} |
33
|
|
|
34
|
|
@Override |
35
|
|
public Selector<T> resolve(AbstractEAExecutionContext<T> eaExecutionContext, |
36
|
|
AbstractEAConfiguration<T> eaConfiguration, SelectionPolicyHandlerResolver<T> selectionPolicyHandlerResolver, |
37
|
|
SelectionPolicy selectionPolicy) { |
38
|
|
Validate.notNull(selectionPolicy); |
39
|
|
Validate.isInstanceOf(RouletteWheel.class, selectionPolicy); |
40
|
|
|
41
|
3
1. <init> : Removed assignment to member variable this$0 → KILLED
2. resolve : replaced return value with null for net/bmahe/genetics4j/core/selection/RouletteWheelSelectionPolicyHandler::resolve → KILLED
3. resolve : removed call to net/bmahe/genetics4j/core/selection/RouletteWheelSelectionPolicyHandler$1::<init> → KILLED
|
return new Selector<T>() { |
42
|
|
|
43
|
|
@Override |
44
|
|
public Population<T> select(final AbstractEAConfiguration<T> eaConfiguration, final int numIndividuals, |
45
|
|
final List<Genotype> population, final List<T> fitnessScore) { |
46
|
|
Validate.notNull(eaConfiguration); |
47
|
|
Validate.notNull(population); |
48
|
|
Validate.notNull(fitnessScore); |
49
|
|
Validate.isTrue(numIndividuals > 0); |
50
|
|
Validate.isTrue(population.size() == fitnessScore.size()); |
51
|
|
|
52
|
1
1. select : removed call to net/bmahe/genetics4j/core/Population::<init> → KILLED
|
final Population<T> selectedIndividuals = new Population<>(); |
53
|
|
|
54
|
1
1. select : removed call to java/util/List::stream → KILLED
|
final double minFitness = fitnessScore.stream() |
55
|
5
1. lambda$select$0 : removed call to java/lang/Number::doubleValue → SURVIVED
2. select : replaced call to java/util/stream/Stream::map with receiver → SURVIVED
3. lambda$select$0 : replaced Double return value with 0 for net/bmahe/genetics4j/core/selection/RouletteWheelSelectionPolicyHandler$1::lambda$select$0 → SURVIVED
4. lambda$select$0 : removed call to java/lang/Double::valueOf → KILLED
5. select : removed call to java/util/stream/Stream::map → KILLED
|
.map(Number::doubleValue) |
56
|
2
1. select : removed call to java/util/stream/Stream::min → KILLED
2. select : removed call to java/util/Comparator::naturalOrder → KILLED
|
.min(Comparator.naturalOrder()) |
57
|
2
1. select : removed call to java/lang/Double::doubleValue → SURVIVED
2. select : removed call to java/util/Optional::orElseThrow → KILLED
|
.orElseThrow(); |
58
|
1
1. select : removed call to java/util/List::stream → KILLED
|
final double maxFitness = fitnessScore.stream() |
59
|
5
1. select : replaced call to java/util/stream/Stream::map with receiver → SURVIVED
2. select : removed call to java/util/stream/Stream::map → KILLED
3. lambda$select$1 : removed call to java/lang/Double::valueOf → KILLED
4. lambda$select$1 : replaced Double return value with 0 for net/bmahe/genetics4j/core/selection/RouletteWheelSelectionPolicyHandler$1::lambda$select$1 → KILLED
5. lambda$select$1 : removed call to java/lang/Number::doubleValue → KILLED
|
.map(Number::doubleValue) |
60
|
2
1. select : removed call to java/util/stream/Stream::max → KILLED
2. select : removed call to java/util/Comparator::naturalOrder → KILLED
|
.max(Comparator.naturalOrder()) |
61
|
2
1. select : removed call to java/lang/Double::doubleValue → KILLED
2. select : removed call to java/util/Optional::orElseThrow → KILLED
|
.orElseThrow(); |
62
|
1
1. select : Replaced double addition with subtraction → KILLED
|
final double reversedBase = minFitness + maxFitness; // Used as a base when minimizing |
63
|
|
|
64
|
1
1. select : Substituted 0.0 with 1.0 → SURVIVED
|
double sumFitness = 0.0; |
65
|
1
1. select : removed call to java/util/List::size → KILLED
|
final double[] probabilities = new double[population.size()]; |
66
|
|
|
67
|
6
1. select : removed conditional - replaced comparison check with false → KILLED
2. select : changed conditional boundary → KILLED
3. select : negated conditional → KILLED
4. select : removed call to java/util/List::size → KILLED
5. select : removed conditional - replaced comparison check with true → KILLED
6. select : Substituted 0 with 1 → KILLED
|
for (int i = 0; i < population.size(); i++) { |
68
|
6
1. select : removed call to java/lang/MatchException::<init> → NO_COVERAGE
2. select : removed call to net/bmahe/genetics4j/core/spec/Optimization::ordinal → KILLED
3. select : RemoveSwitch 1 (case value 2) → KILLED
4. select : RemoveSwitch 0 (case value 1) → KILLED
5. select : removed call to net/bmahe/genetics4j/core/spec/AbstractEAConfiguration::optimization → KILLED
6. select : Changed switch default to be first case → KILLED
|
final double score = switch (eaConfiguration.optimization()) { |
69
|
1
1. select : removed call to java/util/List::get → KILLED
|
case MAXIMIZE -> fitnessScore.get(i) |
70
|
1
1. select : removed call to java/lang/Number::doubleValue → KILLED
|
.doubleValue(); |
71
|
1
1. select : removed call to java/util/List::get → KILLED
|
case MINIMIZE -> reversedBase - fitnessScore.get(i) |
72
|
2
1. select : removed call to java/lang/Number::doubleValue → KILLED
2. select : Replaced double subtraction with addition → KILLED
|
.doubleValue(); |
73
|
|
}; |
74
|
|
|
75
|
1
1. select : Replaced double addition with subtraction → KILLED
|
sumFitness += score; |
76
|
|
probabilities[i] = sumFitness; |
77
|
|
} |
78
|
|
|
79
|
5
1. select : removed conditional - replaced comparison check with true → TIMED_OUT
2. select : negated conditional → KILLED
3. select : Substituted 0 with 1 → KILLED
4. select : changed conditional boundary → KILLED
5. select : removed conditional - replaced comparison check with false → KILLED
|
for (int i = 0; i < numIndividuals; i++) { |
80
|
2
1. select : Replaced double multiplication with division → KILLED
2. select : removed call to java/util/random/RandomGenerator::nextDouble → KILLED
|
final double targetScore = randomGenerator.nextDouble() * sumFitness; |
81
|
|
|
82
|
1
1. select : Substituted 0 with 1 → KILLED
|
int index = 0; |
83
|
4
1. select : removed conditional - replaced comparison check with true → KILLED
2. select : removed conditional - replaced comparison check with false → KILLED
3. select : negated conditional → KILLED
4. select : changed conditional boundary → KILLED
|
while (probabilities[index] < targetScore) { |
84
|
2
1. select : Removed increment 1 → TIMED_OUT
2. select : Changed increment from 1 to -1 → KILLED
|
index++; |
85
|
|
} |
86
|
|
|
87
|
3
1. select : removed call to java/util/List::get → KILLED
2. select : removed call to java/util/List::get → KILLED
3. select : removed call to net/bmahe/genetics4j/core/Population::add → KILLED
|
selectedIndividuals.add(population.get(index), fitnessScore.get(index)); |
88
|
|
} |
89
|
|
|
90
|
1
1. select : replaced return value with null for net/bmahe/genetics4j/core/selection/RouletteWheelSelectionPolicyHandler$1::select → KILLED
|
return selectedIndividuals; |
91
|
|
} |
92
|
|
}; |
93
|
|
} |
94
|
|
} |
| | Mutations |
25 |
|
1.1 Location : <init> Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] Removed assignment to member variable randomGenerator → KILLED
|
31 |
|
1.1 Location : canHandle Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:canHandle()] replaced boolean return with false for net/bmahe/genetics4j/core/selection/RouletteWheelSelectionPolicyHandler::canHandle → KILLED
2.2 Location : canHandle Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:canHandle()] replaced boolean return with true for net/bmahe/genetics4j/core/selection/RouletteWheelSelectionPolicyHandler::canHandle → KILLED
|
41 |
|
1.1 Location : <init> Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] Removed assignment to member variable this$0 → KILLED
2.2 Location : resolve Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] replaced return value with null for net/bmahe/genetics4j/core/selection/RouletteWheelSelectionPolicyHandler::resolve → KILLED
3.3 Location : resolve Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] removed call to net/bmahe/genetics4j/core/selection/RouletteWheelSelectionPolicyHandler$1::<init> → KILLED
|
52 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] removed call to net/bmahe/genetics4j/core/Population::<init> → KILLED
|
54 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] removed call to java/util/List::stream → KILLED
|
55 |
|
1.1 Location : lambda$select$0 Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] removed call to java/lang/Double::valueOf → KILLED
2.2 Location : lambda$select$0 Killed by : none removed call to java/lang/Number::doubleValue → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
- net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMinimizing()]
3.3 Location : select Killed by : none replaced call to java/util/stream/Stream::map with receiver → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
- net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMinimizing()]
4.4 Location : lambda$select$0 Killed by : none replaced Double return value with 0 for net/bmahe/genetics4j/core/selection/RouletteWheelSelectionPolicyHandler$1::lambda$select$0 → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
- net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMinimizing()]
5.5 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] removed call to java/util/stream/Stream::map → KILLED
|
56 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] removed call to java/util/stream/Stream::min → KILLED
2.2 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] removed call to java/util/Comparator::naturalOrder → KILLED
|
57 |
|
1.1 Location : select Killed by : none removed call to java/lang/Double::doubleValue → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
- net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMinimizing()]
2.2 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] removed call to java/util/Optional::orElseThrow → KILLED
|
58 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] removed call to java/util/List::stream → KILLED
|
59 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] removed call to java/util/stream/Stream::map → KILLED
2.2 Location : lambda$select$1 Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] removed call to java/lang/Double::valueOf → KILLED
3.3 Location : lambda$select$1 Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMinimizing()] replaced Double return value with 0 for net/bmahe/genetics4j/core/selection/RouletteWheelSelectionPolicyHandler$1::lambda$select$1 → KILLED
4.4 Location : select Killed by : none replaced call to java/util/stream/Stream::map with receiver → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
- net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMinimizing()]
5.5 Location : lambda$select$1 Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMinimizing()] removed call to java/lang/Number::doubleValue → KILLED
|
60 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] removed call to java/util/stream/Stream::max → KILLED
2.2 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] removed call to java/util/Comparator::naturalOrder → KILLED
|
61 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMinimizing()] removed call to java/lang/Double::doubleValue → KILLED
2.2 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] removed call to java/util/Optional::orElseThrow → KILLED
|
62 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMinimizing()] Replaced double addition with subtraction → KILLED
|
64 |
|
1.1 Location : select Killed by : none Substituted 0.0 with 1.0 → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
- net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMinimizing()]
|
65 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] removed call to java/util/List::size → KILLED
|
67 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] removed conditional - replaced comparison check with false → KILLED
2.2 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] changed conditional boundary → KILLED
3.3 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] negated conditional → KILLED
4.4 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] removed call to java/util/List::size → KILLED
5.5 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] removed conditional - replaced comparison check with true → KILLED
6.6 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMinimizing()] Substituted 0 with 1 → KILLED
|
68 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] removed call to net/bmahe/genetics4j/core/spec/Optimization::ordinal → KILLED
2.2 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMinimizing()] RemoveSwitch 1 (case value 2) → KILLED
3.3 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] RemoveSwitch 0 (case value 1) → KILLED
4.4 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] removed call to net/bmahe/genetics4j/core/spec/AbstractEAConfiguration::optimization → KILLED
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.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] Changed switch default to be first case → KILLED
|
69 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] removed call to java/util/List::get → KILLED
|
70 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] removed call to java/lang/Number::doubleValue → KILLED
|
71 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMinimizing()] removed call to java/util/List::get → KILLED
|
72 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMinimizing()] removed call to java/lang/Number::doubleValue → KILLED
2.2 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMinimizing()] Replaced double subtraction with addition → KILLED
|
75 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] Replaced double addition with subtraction → KILLED
|
79 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] negated conditional → KILLED
2.2 Location : select Killed by : none removed conditional - replaced comparison check with true → TIMED_OUT
3.3 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] Substituted 0 with 1 → KILLED
4.4 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] changed conditional boundary → KILLED
5.5 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] removed conditional - replaced comparison check with false → KILLED
|
80 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] Replaced double multiplication with division → KILLED
2.2 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] removed call to java/util/random/RandomGenerator::nextDouble → KILLED
|
82 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMinimizing()] Substituted 0 with 1 → KILLED
|
83 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] removed conditional - replaced comparison check with true → KILLED
2.2 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] removed conditional - replaced comparison check with false → KILLED
3.3 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] negated conditional → KILLED
4.4 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] changed conditional boundary → KILLED
|
84 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] Changed increment from 1 to -1 → KILLED
2.2 Location : select Killed by : none Removed increment 1 → TIMED_OUT
|
87 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] removed call to java/util/List::get → KILLED
2.2 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] removed call to java/util/List::get → KILLED
3.3 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] removed call to net/bmahe/genetics4j/core/Population::add → KILLED
|
90 |
|
1.1 Location : select Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()] replaced return value with null for net/bmahe/genetics4j/core/selection/RouletteWheelSelectionPolicyHandler$1::select → KILLED
|