Skip to content

Conversation

@timwood0
Copy link

** THIS PR IS INCOMPLETE, SPECIFICALLY IN TEST COVERAGE. **

This PR is a draft implementation of the IVectorFitness concept we discussed in email. It has come out much like what I suggested, except the vector extension uses an abstract implementation of IFitness and a runtime type check instead of altering IFitness, for backward compatibility.

It is agnostic wrt vector processing (GPU) libraries the user may use.

I'm looking for questions & Feedback on this approach before I extend the tests.

One question: Do I need to worry about consumers of IFitness other than GeneticAlgorithm that might expect a VectorFitness to work polymorphically?

This also includes the change for issue #135. Thanks!

@timwood0
Copy link
Author

timwood0 commented Jun 24, 2025

Check failure from version incompatibility of Cake with .NET 6.0. GeneticSharp builds locally under .NET 8.0.

@timwood0
Copy link
Author

Hi Diego @giacomelli, draft PR here for vector fitness with questions when you can get to them.... thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant