Skip to content

Commit b21d768

Browse files
authored
Add files via upload
1 parent 6500af4 commit b21d768

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

example.py

-5
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ def fitness_func(solution, solution_idx):
3030
sol_per_pop = 20 # Number of solutions in the population.
3131
num_genes = len(function_inputs)
3232

33-
init_range_low = -2
34-
init_range_high = 5
35-
3633
parent_selection_type = "sss" # Type of parent selection.
3734
keep_parents = -1 # Number of parents to keep in the next population. -1 means keep all parents and 0 means keep nothing.
3835

@@ -56,8 +53,6 @@ def callback_generation(ga_instance):
5653
fitness_func=fitness_function,
5754
sol_per_pop=sol_per_pop,
5855
num_genes=num_genes,
59-
init_range_low=init_range_low,
60-
init_range_high=init_range_high,
6156
parent_selection_type=parent_selection_type,
6257
keep_parents=keep_parents,
6358
crossover_type=crossover_type,

0 commit comments

Comments
 (0)