Skip to content

GeneticAlgorithm function fitness argument does not check number of inputs #23

@Dan-Christiansen

Description

@Dan-Christiansen

The number of elements in the fitness tuple is not checked during GeneticAlgorithm function execution.

Example: when performing single objective minimization, the function is expected to work like

GeneticAlgorithm(..., fitness=(min,), ...)

But it can also work as

GeneticAlgorithm(..., fitness=('min', 'min', 'min', ...), ...)

which would be more appropriate for multi-objective.

The function will still execute and return the single objective

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions