Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorial performance #16

Open
L0g1k opened this issue Apr 21, 2014 · 0 comments
Open

Tutorial performance #16

L0g1k opened this issue Apr 21, 2014 · 0 comments

Comments

@L0g1k
Copy link

L0g1k commented Apr 21, 2014

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())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant