Skip to content

Commit

Permalink
fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobbossek committed Mar 17, 2015
1 parent 855b3d4 commit 3deb0e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inst/examples/1plus1_GA_example.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ control = ecr.control(
survival.strategy = "plus",
n.params = n.params,
generator = makeBinaryGenerator(),
mutator = list(makeBitFlipMutator()),
mutator = makeBitFlipMutator(),
recombinator = makeCrossoverRecombinator(),
# see the literature on 1+1 GA for this parameter recommendation
mutator.control = list(mutator.flip.prob = 1 / n.params),
Expand Down
2 changes: 1 addition & 1 deletion inst/examples/tspmeta_example.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ control = ecr.control(
elite.size = 1L,
n.params = tspmeta:::number_of_cities(inst),
generator = makePermutationGenerator(),
mutator = list(makeSwapMutator()),
mutator = makeSwapMutator(),
recombinator = makeNullRecombinator(),
stopping.conditions = list(makeMaximumIterationsStoppingCondition(max.iter = 200L))
)
Expand Down

0 comments on commit 3deb0e4

Please sign in to comment.