Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
PasaOpasen committed Apr 13, 2024
1 parent e0363a5 commit 9213a1b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion geneticalgorithm2/geneticalgorithm2.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ def __init__(
For maximization u can multiply the function by -1 (for instance): the absolute
value of the output would be the actual objective function
- If u want to use set_function only and maybe u dont have usual function,
just set the function to something like lambda x: 0 but set function_timeout=None too
for more details and examples of implementation please visit:
https://github.com/PasaOpasen/geneticalgorithm2
Expand Down Expand Up @@ -664,7 +667,7 @@ def total_middle_callback():
self.set_function = set_function or GeneticAlgorithm2.default_set_function(self.f)

#region Initial population, duplicates filter, revolutionary

pop_coef, initializer_func = population_initializer

# population creator by random or with oppositions
Expand Down

0 comments on commit 9213a1b

Please sign in to comment.