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

[Bug] GSimpleGA and Selectors.GTournamentSelector #62

Open
cristianocca opened this issue Apr 3, 2015 · 0 comments
Open

[Bug] GSimpleGA and Selectors.GTournamentSelector #62

cristianocca opened this issue Apr 3, 2015 · 0 comments

Comments

@cristianocca
Copy link

Having the following:

ga = GSimpleGA.GSimpleGA(genome)
ga.selector.set(Selectors.GTournamentSelector)

There 'tournamentPool' is not working.

I have added it on both, the genome:
genome = G1DList.G1DList(N)
genome.setParams(rangemin=0,
rangemax=2,
tournamentPool = 5
)

And ga.setParams(tournamentPool = 5)

However when GTournamentSelector tries to get that param, it can't find anywhere. I have debugged the code and it is quite messy, the same get/set operations are in GenomeBase, GPopulation, and GSimpleGA, some params are fetched from one class, some from others, you don't really know where to set each one of them.

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