We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8279b2c commit be3b7d3Copy full SHA for be3b7d3
GeneticAlgorithm.php
@@ -86,9 +86,11 @@ public function crossOver() {
86
for($m=0; $m<4 ; $m++) {
87
$random[$m]=mt_rand() / mt_getrandmax();
88
if($random[$m] < $this->crossover_rate) {
89
- $this->parents[$m] = $this->chromosome[$m];
+ // $this->parents[$m] = $this->chromosome[$m];
90
+ $ids = $m;
91
}
92
93
+ $cuts =
94
$this->iteration += 1;
95
96
0 commit comments