GA Music fitness: a practical guide
I am working on a simple GA in order to create a simple melody and I
now facing the problem of the fitness assignment. I have been searching
the groups but noboody seems to give a clear answer. Supposing that the
problem is well defined and you know what is a "good melody" and what
is a "bad melody" how will the fitness assignment take place? For
instance, let's take the chromosomes:
1 2 3 2 2 5 6 7 2
2 2 2 3 3 2 1 4 6
2 1 4 2 6 3 5 4 7 (the numbers represent notes)
If good melodies are the "5 6 7" and "3 3" what fitness will I have to
give to the corresponding chromosomes in order to make them survive
through evolution? If I give them just a true-false fitness,
1 2 3 2 2 5 6 7 2 true
2 2 2 3 3 2 1 4 6 true
2 1 4 2 6 3 5 4 7 false
then the motif "3 3" will appear more often because it has smaller
length.Is there an equation that gives the rate of surviving according
to the length?Goldberg's investigation is only for binary
representation where many things are completely different.
Thanks!
.