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

Add Repeat operator adapter #18

Merged
merged 1 commit into from
Jan 1, 2025
Merged

Conversation

dbalcomb
Copy link
Contributor

@dbalcomb dbalcomb commented Jan 1, 2025

This adds a new Repeat operator adapter that implements Selector, Mutator, Recombinator and Evolver.

There are a number of situations where it would be beneficial to repeat an operator without having to specify it again. This includes selecting multiple random individuals, and applying a random mutation from a set of mutators a fixed number of times.

This change introduces the Repeat operator adapter with implementations of Selector, Mutator, Recombinator and Evolver. This also includes repeat utility methods on the operator traits to easily adapt an existing operator.

@dbalcomb dbalcomb added change: feature A new feature package: brace-ec Affects the `brace-ec` package labels Jan 1, 2025
@dbalcomb dbalcomb merged commit fe69083 into main Jan 1, 2025
5 checks passed
@dbalcomb dbalcomb deleted the feature/add-repeat-operator branch January 1, 2025 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change: feature A new feature package: brace-ec Affects the `brace-ec` package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant