Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ITMO-NSS-team
GEFEST
Commits
9e77160c
Commit
9e77160c
authored
2 years ago
by
quickjkee
Browse files
Options
Download
Email Patches
Plain Diff
bug fix
parent
4f1f42ee
spea2bug
bag_fixes
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gefest/tools/optimizers/GA/GA.py
+0
-3
gefest/tools/optimizers/GA/GA.py
with
0 additions
and
3 deletions
+0
-3
gefest/tools/optimizers/GA/GA.py
View file @
9e77160c
...
...
@@ -11,9 +11,6 @@ class GA(BaseGA):
self
.
init_populations
(
population
)
self
.
init_fitness
(
performance
)
best
=
sorted
(
self
.
_pop
,
key
=
lambda
x
:
x
.
fitness
)[
0
]
print
(
f
'
\n
Best fitness is
{
best
.
fitness
}
'
)
selected
=
self
.
tournament_selection
()
self
.
_pop
=
sorted
(
selected
,
key
=
lambda
x
:
x
.
fitness
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help