10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a6fa14 commit 86c87b3Copy full SHA for 86c87b3
example.py
@@ -17,6 +17,9 @@
17
18
keep_parents = 1 # Number of parents to keep in the next population. -1 means keep all parents and 0 means keep nothing.
19
20
+init_range_low = -2
21
+init_range_high = 5
22
+
23
"""
24
Given the following function:
25
y = f(w1:w6) = w1x1 + w2x2 + w3x3 + w4x4 + w5x5 + 6wx6
@@ -44,6 +47,8 @@ def fitness_func(solution):
44
47
fitness_func=fitness_func,
45
48
mutation_percent_genes=mutation_percent_genes,
46
49
mutation_num_genes=mutation_num_genes,
50
+ init_range_low=init_range_low,
51
+ init_range_high=init_range_high,
52
parent_selection_type=parent_selection_type,
53
crossover_type=crossover_type,
54
mutation_type=mutation_type,
0 commit comments