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

feat: allow for various types of genes in chromosome #34

Merged
merged 10 commits into from
Nov 5, 2022

Conversation

kkafar
Copy link
Collaborator

@kkafar kkafar commented Nov 4, 2022

Description

This PR introduces parameterized gene type -> it is no longer fixed to f64. However it is still required that chromosome is of type Vec<GeneT>. I've tried to loose this restriction, but I encountered many problems with types and I eventually gave up (for now -- this is still something we should try to achieve).

Moreover this PR introduces ChromosomeWrapper<GeneT> type which allows user to add custom state to their individuals types.

I left some code commented out so that I don't have to refactor whole project each time I make some small type change.

Linked issues

Resolves #33

Important implementation details

@kkafar kkafar self-assigned this Nov 4, 2022
@kkafar kkafar merged commit 614eaab into master Nov 5, 2022
@kkafar kkafar deleted the @kkafar/ga-individual branch November 5, 2022 11: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.

[GA] Allow for different types of chromosomes in Individual
1 participant