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.
2 parents 4a213fa + be3b7d3 commit fff2f1dCopy full SHA for fff2f1d
GeneticAlgorithm.php
@@ -87,9 +87,11 @@ public function crossOver() {
87
for($m=0; $m<4 ; $m++) {
88
$random[$m]=mt_rand() / mt_getrandmax();
89
if($random[$m] < $this->crossover_rate) {
90
- $this->parents[$m] = $this->chromosome[$m];
+ // $this->parents[$m] = $this->chromosome[$m];
91
+ $ids = $m;
92
}
93
94
+ $cuts =
95
$this->iteration += 1;
96
97
0 commit comments