Genetic Algorithms in CoffeeScript
janmonschke.com
Genetic Algorithms in CoffeeScript
1–10 of 48 posts
Re: Genetic Algorithms in CoffeeScript
#2Direct link to the code, which is nice and clear to read (Genome / Population):
https://github.com/janmonschke/Genetic-Algorithms/tree/gh-pa...
Re: Genetic Algorithms in CoffeeScript
#3Can't help this example could have been illustrated much more clearly in something other then CoffeeScript.
Re: Genetic Algorithms in CoffeeScript
#4Suggestion: TSP is a combinatorial optimization problem and isn't well suited to GAs. You would be much better off using a method meant for combinatorial optimization: notably ant colony optimization.
Re: Genetic Algorithms in CoffeeScript
#5Can't help this example could have been illustrated much more clearly in something other then CoffeeScript.
Out of all the languages to choose from it just had to be coffescript...
Re: Genetic Algorithms in CoffeeScript
#6Re: Genetic Algorithms in CoffeeScript
#7Suggestion: TSP is a combinatorial optimization problem and isn't well suited to GAs. You would be much better off using a method meant for combinatorial optimization: notably ant colony optimization.
Thx for the hint :) The task originated from a task I had to do at university in Algorithms class as an introduction to GAs and I liked the simplicity of it.
Re: Genetic Algorithms in CoffeeScript
#8Re: Genetic Algorithms in CoffeeScript
#9Earlier quoted context omitted.
Out of all the languages to choose from it just had to be coffescript...
It's my main language for almost two years now ;)
I'm not saying that it being your main language is bad, it's just the syntax is absolutely terrible to read and understand for those of us on C-style languages. If the point was to teach others, the vast majority of your audience is not going to be reading coffeescript and learning much.
Re: Genetic Algorithms in CoffeeScript
#10Suggestion: TSP is a combinatorial optimization problem and isn't well suited to GAs. You would be much better off using a method meant for combinatorial optimization: notably ant colony optimization.
If you don't mind expanding a little, I'd be interested to know why they're not suited to combinatorial optimization, and what they are in fact more suited to?