feat: add crossTopTwo and crossTopThree multi-parent crossover operators#442
Closed
Yadelew-zemene wants to merge 2 commits into
Closed
feat: add crossTopTwo and crossTopThree multi-parent crossover operators#442Yadelew-zemene wants to merge 2 commits into
Yadelew-zemene wants to merge 2 commits into
Conversation
- added crossTopTwo (pairwise crossover) - added crossTopThree (3-simplex crossover) - added helper functions for merging instances pairwise and multi-level merging - added unit tests for loops and top-level functions - ensured limit constraints are respected
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Introduce multi-parent crossover operators to improve exploration in hill climbing:
crossTopTwo→ pairwise crossovercrossTopThree→ 3-simplex crossoverWhat’s included
crossTopTwowith pairwise instance mergingcrossTopThreewith triple-instance mergingKey idea
Instead of crossing a single parent with others, this introduces:
This enables richer interaction between high-quality candidates and improves diversity of generated instances.
Notes for reviewers
Recommended review order:
cross-top-two-helpers.mettacross-top-two.mettacross-top-three-helpers.mettacross-top-three.mettatest/cross-top-two-test.mettatest/cross-top-three-test.mettaTesting