Forums > MaxMSP

Genetic Algorithm or Toolset in Max MSP

December 16, 2012 | 10:55 pm

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.


December 17, 2012 | 6:29 pm

have a look on Bill Vorn work


December 19, 2012 | 12:40 am

Thanks! In my search I also found this: http://www.maxobjects.com/?v=objects&id_objet=3076&requested=crossover&operateur=AND&id_plateforme=0&id_format=0&PHPSESSID=7a4690e924fac7808fa10828827935c1

It seems to have everything I need.


December 22, 2012 | 5:35 pm

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


December 25, 2012 | 10:51 pm

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.


December 26, 2012 | 3:22 am

I would be interested too!


December 26, 2012 | 4:34 am

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.


December 26, 2012 | 8:14 pm

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.

– Pasted Max Patch, click to expand. –


ak
December 26, 2012 | 10:48 pm

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

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

– Pasted Max Patch, click to expand. –

December 26, 2012 | 11:01 pm

Attachments:
  1. mutation.maxpat

December 26, 2012 | 11:08 pm

Attachments:
  1. crossover.maxpat


ak
December 26, 2012 | 11:17 pm

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


December 26, 2012 | 11:24 pm

Here’s the abstractions in a zip file.


April 4, 2013 | 8:30 am

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


Viewing 14 posts - 1 through 14 (of 14 total)