On Thu, Mar 5, 2009 at 8:11 PM, Matt Moriarity <matt.moriar...@gmail.com> wrote:
>
> what about memoizing the fitness function? call fitness on your
> structs, and if it's memoized, it will return the cached value as long
> as the struct is the same value. if it's changed, then it will
> recompute. somebody correct me if this doesn't account for something,
> but it sounds like the right approach.

Most individuals (except a select few picked through elitism) die
every generation. The memoized cache would grow huge and full of
obsolete individuals.

The mutation constructing function seems obvious in hindsight. I feel
stupid now.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to