-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
68caecd
commit fdf2325
Showing
10 changed files
with
95 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
Searching 69 files for "stoppingConditions" | ||
|
||
/Users/jboss/repositories/git/ecr/README.md: | ||
40 mutator = list(gaussMutator), | ||
41 mutator.control = list(mutator.gauss.sd = 0.005), | ||
42: stoppingConditions = list(makeMaximumIterationsStoppingCondition(max.iter = 50L)) | ||
43 ``` | ||
44 | ||
|
||
/Users/jboss/repositories/git/ecr/test_specific.R: | ||
26 recombinator = crossoverRecombinator, | ||
27 generator = makeBinaryGenerator(), | ||
28: stoppingConditions = list( | ||
29 makeMaximumTimeStoppingCondition(max.time = 1), | ||
30 makeMaximumIterationsStoppingCondition(max.iter = 100L) | ||
|
||
/Users/jboss/repositories/git/ecr/inst/examples/1plus1_GA_example.R: | ||
45 # see the literature on 1+1 GA for this parameter recommendation | ||
46 mutator.control = list(mutator.flip.prob = 1 / n.params), | ||
47: stoppingConditions = list(makeMaximumIterationsStoppingCondition(max.iter = 500L)) | ||
48 ) | ||
49 print(control) | ||
|
||
/Users/jboss/repositories/git/ecr/inst/examples/soobench_example.R: | ||
54 mutator.control = list(mutator.gauss.sd = 0.005), | ||
55 monitor = myMonitor, | ||
56: stoppingConditions = list(makeMaximumIterationsStoppingCondition(max.iter = 25L)) | ||
57 ) | ||
58 | ||
|
||
/Users/jboss/repositories/git/ecr/inst/examples/tspmeta_example.R: | ||
40 mutator = list(swapMutator), | ||
41 recombinator = nullRecombinator, | ||
42: stoppingConditions = list(makeMaximumIterationsStoppingCondition(max.iter = 200L)) | ||
43 ) | ||
44 print(control) | ||
|
||
/Users/jboss/repositories/git/ecr/R/ecr.R: | ||
86 opt.path = addBestToOptPath(opt.path, par.set, best, population$fitness, iter) | ||
87 | ||
88: stop.object = doTerminate(control$stoppingConditions) | ||
89 if (length(stop.object) > 0L) { | ||
90 break | ||
|
||
/Users/jboss/repositories/git/ecr/R/ecrControl.R: | ||
46 #' @param monitor [\code{function}]\cr | ||
47 #' Monitoring function. Default is \code{consoleMonitor}. | ||
48: #' @param stoppingConditions [\code{list}]\cr | ||
49 #' List of functions of type \code{ecr_stoppingCondition}. | ||
50 #' @return | ||
.. | ||
68 recombinator.control = list(), | ||
69 monitor = makeConsoleMonitor(), | ||
70: stoppingConditions = list()) { | ||
71 assertCount(population.size, positive = TRUE, na.ok = FALSE) | ||
72 assertCount(offspring.size, positive = TRUE, na.ok = FALSE) | ||
.. | ||
152 save.population.at = save.population.at, | ||
153 target.name = target.name, | ||
154: stoppingConditions = stoppingConditions, | ||
155 monitor = monitor), | ||
156 class = "ecr_control") | ||
|
||
/Users/jboss/repositories/git/ecr/tests/testthat/test_ecr.R: | ||
25 representation = "float", | ||
26 monitor = makeNullMonitor(), | ||
27: stoppingConditions = list(makeMaximumIterationsStoppingCondition(max.iter = max.iter)) | ||
28 ) | ||
29 } | ||
|
||
/Users/jboss/repositories/git/ecr/tests/testthat/test_stoppingConditions.R: | ||
23 | ||
24 # check for max time budget | ||
25: control$stoppingConditions = list(makeMaximumTimeStoppingCondition(max.time = 2)) | ||
26 expect_true(grepl("Time limit", ecr(obj.fn, control)$message)) | ||
27 | ||
28 # check for max iterations | ||
29: control$stoppingConditions = list(makeMaximumIterationsStoppingCondition(max.iter = 10L)) | ||
30 expect_true(grepl("iterations", ecr(obj.fn, control)$message)) | ||
31 }) | ||
|
||
13 matches across 9 files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters