Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PR] add args parameter for GA class #73

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

qelloman
Copy link

Related Issue

#71

Description

  • Previously, fitness_func takes only two arguments: solution and solution index. If extra parameters are required for the fitness_func, we are forced to use global parameters as shown in 'example.py', which is inconvenient.
  • Like scipy.optimize.differential_evolution, a new parameter, args, is added to GA class.
  • Tuple args is passed to fitness_func so it can use fixed parameters.
    => fitness_func(solution, solution_idx, args)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants