Genetic Algorithm or Toolset in Max MSP

DCaponi's icon

Has anyone run across an open genetic algorithm patch written in max? I've been trying to write one but may get further building on the work of others. Alternately, any good related libraries would be useful.

I found a post about this from a couple years ago, hoping some new things have popped up.

yopla's icon

have a look on Bill Vorn work

DCaponi's icon
nicnut's icon

Hey, thank you for posting about the gak object. I downloaded it and began messing around with the help file. I tried giving the gak object two lists of ones and zeros, twelve digits long, and I got totally unrelated lists as the "child" that seemed to have nothing to do with the parents.

Am I doing something wrong or missing something? It seems the child is completely unrelated to the parents. If I could figure out how this object works it would be really useful

thanks

tomprescott1989's icon

I'm currently working on a fairly substantial project in this area, when I first started I had a look at GAK and didn't really find it to be flexible enough so I've developed my own abstractions for population creation, mutation and crossover. I'm happy to share them if you're interested.

Anthony Palomba's icon

I would be interested too!

nicnut's icon

I'm interested too. I looked at the Bill Vorn objects, which are really cool, but I would love to see what other people are doing.

tomprescott1989's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Here's my Genetic Algorithm, I just pulled it out of my main patch and tried to arrange it in a way that's understandable/reusable, hopefully nothing went wrong in the process, let me know if you encounter any bugs or have any questions. The project I'm working on should be completed soon so I'll try to get that uploaded as well when it's done.

ak's icon

hello Tom, could you provide abstractions used in your patch?

Max Patch
Copy patch and select New From Clipboard in Max.

btw, here is a simpler "binary to int" implementation:

tomprescott1989's icon
ak's icon

thanks!
ps. imho it's better to zip all files and post one file (c74 forum prepends numbers to filenames)

tomprescott1989's icon

Here's the abstractions in a zip file.

4802.GeneticAlgorithmAbstractions.zip
zip
Ali-i-truc's icon

Hello

Torn, I am an architect , making my thesis project with max. Part of the project has to deal with a generative process. Your patch seem very interesting, but I can't make it work in max5, do I need Max 6?

Thank you