Skip to content

Commit 3a654c5

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 8661150 commit 3a654c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

genetic_algorithm/genetic_algorithm_optimization.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import numpy as np
22
from typing import Callable, List, Tuple
33

4+
45
class GeneticAlgorithmOptimizer:
56
def __init__(
67
self,
@@ -137,6 +138,7 @@ def optimize(self) -> Tuple[np.ndarray, float]:
137138

138139
return best_solution, best_fitness_value
139140

141+
140142
if __name__ == "__main__":
141143
# Define the function to optimize
142144
def objective_function(x: float, y: float) -> float:

0 commit comments

Comments
 (0)