Skip to content

Commit 11876c9

Browse files
committed
Update genetic_algorithm_optimization.py
1 parent 85fc983 commit 11876c9

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

genetic_algorithm/genetic_algorithm_optimization.py

+1-11
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,7 @@ def __init__(
1111
crossover_prob=0.9,
1212
mutation_prob=0.01,
1313
):
14-
"""
15-
Initialize the Genetic Algorithm optimizer.
16-
17-
:param func: The function to optimize.
18-
:param bounds: List of tuples defining the lower and upper bounds
19-
for each variable.
20-
:param population_size: Number of individuals in the population.
21-
:param generations: Number of generations to evolve.
22-
:param crossover_prob: Probability of crossover.
23-
:param mutation_prob: Probability of mutation.
24-
"""
14+
2515
self.func = func
2616
self.bounds = np.array(bounds)
2717
self.population_size = population_size

0 commit comments

Comments
 (0)