public BasicEA(final Population thePopulation,
final ScoreFunction theScoreFunction) {
this.population = thePopulation;
this.scoreFunction = theScoreFunction;
this.selection = new TournamentSelection(this, 4);
// set the score compare method
if (theScoreFunction.shouldMinimize()) {
this.selectionComparator = new MinimizeAdjustedScoreComp();
this.bestComparator = new MinimizeScoreComp();