Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
mcychan authored Aug 2, 2023
1 parent 6a45a75 commit 8655f1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GaSchedule.Algorithm/Rqiea.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private void Observe(List<T> population) {
}

int start = i * _chromlen;
if(population[i].Fitness < chromosome.Fitness || Configuration.Rand(100) <= _catastrophe) {
if(population[i].Fitness <= 0 || Configuration.Rand(100) <= _catastrophe) {
var positions = CopyOfRange(_P, start, start + _chromlen);
var chromosome = _prototype.MakeEmptyFromPrototype(null);
chromosome.UpdatePositions(positions);
Expand Down

0 comments on commit 8655f1e

Please sign in to comment.