Skip to content

Commit

Permalink
Fix a bug in the default stopping condition setter
Browse files Browse the repository at this point in the history
  • Loading branch information
pderakhshanfar committed Aug 30, 2019
1 parent b6bf1d6 commit 339eb45
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public class GuidedGeneticAlgorithm<T extends Chromosome> extends GeneticAlgorit

public GuidedGeneticAlgorithm(ChromosomeFactory<T> factory) {
super(factory);
this.stoppingConditions.clear();
this.crossoverFunction = new GuidedSinglePointCrossover();
((GuidedSinglePointCrossover)this.crossoverFunction).updatePublicCalls(((StackTraceChromosomeFactory) chromosomeFactory).getPublicCalls());
this.mutation = new GuidedMutation<>();
Expand Down

0 comments on commit 339eb45

Please sign in to comment.