Skip to content

FEATURE REQUEST: args to pass parameter to fitness function #71

Open
@qelloman

Description

@qelloman

First of all, thank you for the great repository.

The thing we need to improve about pygad is args for fitness function.
Currently, fitness function takes only two inputs: solution and solution index.
However, sometimes we also need to take extra inputs for the fitness function.

In the example of diff_evol from scipy, it has "args" to pass parameters.
https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.differential_evolution.html

If you think this is a good feature, I will try to implement this by myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions