Skip to content

Commit d67946a

Browse files
committed
final
1 parent c6739f2 commit d67946a

File tree

3 files changed

+1
-2
lines changed

3 files changed

+1
-2
lines changed

.idea/~$vcs.xml

-162 Bytes
Binary file not shown.

GeneticAlgorithm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class GeneticAlgorithm
2323
public $parents = array();
2424
public $max_fitness = array();
2525

26-
public $crossover_rate = 0.99;
26+
public $crossover_rate = 0.5;
2727
public $mutation_rate = 0.1;
2828
public $population = 200;
2929
public $iteration = 0;

index.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,3 @@
1414
$ga = new GeneticAlgorithm();
1515
echo "<br>";
1616
$result = $ga->maxFitness();
17-
echo count($result);

0 commit comments

Comments
 (0)