Skip to content

Commit be3b7d3

Browse files
committed
_
1 parent 8279b2c commit be3b7d3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

GeneticAlgorithm.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,11 @@ public function crossOver() {
8686
for($m=0; $m<4 ; $m++) {
8787
$random[$m]=mt_rand() / mt_getrandmax();
8888
if($random[$m] < $this->crossover_rate) {
89-
$this->parents[$m] = $this->chromosome[$m];
89+
// $this->parents[$m] = $this->chromosome[$m];
90+
$ids = $m;
9091
}
9192
}
93+
$cuts =
9294
$this->iteration += 1;
9395
}
9496
}

0 commit comments

Comments
 (0)