watchmaker
watchmaker copied to clipboard
Tutorial performance
Regarding the page http://watchmaker.uncommons.org/manual/ch02s07.html (Using V0.7.1 from maven)
The Hello World example references "a brief pause" for computation and, later on, when an observer is attached there are only about 40 generations before a result is reached. However when I copy the code, it takes around 60 seconds @ 3.2GHz and generates 2M+ strings. Is this normal? I am trying to work out if I am doing anything wrong, but I am copying the code exactly, with no modifications.
I note that an increase of the population size to 1000 cuts the generations required to levels more like the example output, but the text does say that ten is definitely intentional.
PS. Minor note: On the same page - String result = engine.evolve(10, 0, new TargetFitness(11)); is a little out of date: the 0.7.1 requires a second argument to TargetFitness and there is a missing semi-colon after operators.add(new StringCrossover())