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

Function with binary and real inputs #115

Open
Thiago-NovaesB opened this issue Mar 31, 2023 · 1 comment
Open

Function with binary and real inputs #115

Thiago-NovaesB opened this issue Mar 31, 2023 · 1 comment

Comments

@Thiago-NovaesB
Copy link

In the documentation it is possible to find examples of binary inputs, using BitVector and other examples with real inputs. Is it possible to mix the two things? Have binary and real inputs?

It would be interesting to add such an example in the documentation.

@wildart
Copy link
Owner

wildart commented May 27, 2023

Most of the test use real vectors for describing individuals. A binary input is used in knapsack test. This example uses a population of neural nets.

Yes, you can define your individual as an arbitrary composite type. However, with complex composite individual types, you'd need to write a customized mutation functions.

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

No branches or pull requests

2 participants