Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb21d768

Browse files
authored
Add files via upload
1 parent6500af4 commitb21d768

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

‎example.py

Lines changed: 0 additions & 5 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp