We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85fc983 commit 11876c9Copy full SHA for 11876c9
genetic_algorithm/genetic_algorithm_optimization.py
@@ -11,17 +11,7 @@ def __init__(
11
crossover_prob=0.9,
12
mutation_prob=0.01,
13
):
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
+
25
self.func = func
26
self.bounds = np.array(bounds)
27
self.population_size = population_size
0 commit comments