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

fix: inconsistences in individual comparison #386

Merged
merged 5 commits into from
May 27, 2023

Conversation

kkafar
Copy link
Collaborator

@kkafar kkafar commented May 27, 2023

Description

Currently there are few places in the code that try to achieve contradictory optimization targets: some operators treat "lesser" individuals as better, some treat "greater" ones as better.

This PR aims to clean things up and target only minimization ("lesser" individuals are "better").

Maximization can be achieved by implementing custom individual type with custom Ord trait implementation.

TODO: Implement MinIndividual & MaxIndividual types in the ecrs library, so both types of optimalization are available for user out of the box.

Linked issues

Important implementation details

@kkafar kkafar self-assigned this May 27, 2023
@kkafar kkafar merged commit eb3d7dd into main May 27, 2023
@kkafar kkafar deleted the @kkafar/debug-no-progression-in-jssp-example branch May 27, 2023 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant