Evolutionary.jl icon indicating copy to clipboard operation
Evolutionary.jl copied to clipboard

Function with binary and real inputs

Open Thiago-NovaesB opened this issue 2 years ago • 1 comments

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.

Thiago-NovaesB avatar Mar 31 '23 16:03 Thiago-NovaesB

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.

wildart avatar May 27 '23 23:05 wildart