Closed engintoklu closed 11 months ago
Merging #87 (5b0db91) into master (9d31d59) will decrease coverage by
0.04%
. The diff coverage is50.00%
.
@@ Coverage Diff @@
## master #87 +/- ##
==========================================
- Coverage 77.83% 77.80% -0.04%
==========================================
Files 49 49
Lines 7332 7334 +2
==========================================
- Hits 5707 5706 -1
- Misses 1625 1628 +3
Files Changed | Coverage Δ | |
---|---|---|
src/evotorch/algorithms/ga.py | 66.66% <50.00%> (-0.19%) |
:arrow_down: |
While initializing
SteadyStateGA
, if theoperators
argument was not given (or was given as an empty list) and ifre_evaluate
was given as True (which is the default),SteadyStateGA
was making the wrong default assumption that the parent solutions do not have to be evaluated before the children. This wrong assumption caused the tournament selection phases of the cross-over operators to fail, as they encountered unevaluated parents.This pull request fixes this wrong assumption. When
operators
is empty (which means that the operators are to be added later viause(...)
method), andre_evaluate
is True, the default assumption ofSteadyStateGA
will now be that the parents need to be evaluated first.