You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/strategy.rs
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,7 @@
52
52
//! .with_target_fitness_score(0) // (E,H) ending condition if 0 times true in the best chromosome
53
53
//! .with_valid_fitness_score(1) // (E,H) block ending conditions until at most a 1 times true in the best chromosome
54
54
//! .with_max_stale_generations(100) // (E,H) stop searching if there is no improvement in fitness score for 100 generations
55
+
//! .with_max_generations(1_000_000) // (E,H) optional, stop searching after 1M generations
55
56
//! .with_max_chromosome_age(10) // (E) kill chromosomes after 10 generations
56
57
//! .with_reporter(StrategyReporterSimple::new(usize::MAX)) // (E,H,P) optional builder step, report on new best chromsomes only
57
58
//! .with_replace_on_equal_fitness(true) // (E,H,P) optional, defaults to false, maybe useful to avoid repeatedly seeding with the same best chromosomes after mass extinction events
Copy file name to clipboardExpand all lines: src/strategy/evolve.rs
+20-3Lines changed: 20 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,7 @@ pub enum EvolveVariant {
52
52
/// * target_fitness_score: when the ultimate goal in terms of fitness score is known and reached
53
53
/// * max_stale_generations: when the ultimate goal in terms of fitness score is unknown and one depends on some convergion
54
54
/// threshold, or one wants a duration limitation next to the target_fitness_score
55
+
/// * max_generations: when the ultimate goal in terms of fitness score is unknown and there is a effort constraint
55
56
///
56
57
/// General Hyper-parameters:
57
58
/// * `replacement_rate` (selection): the target fraction of the population which exists of
@@ -156,7 +157,8 @@ pub enum EvolveVariant {
156
157
/// .with_target_population_size(100) // evolve with 100 chromosomes
157
158
/// .with_target_fitness_score(0) // ending condition if 0 times true in the best chromosome
158
159
/// .with_valid_fitness_score(10) // block ending conditions until at most a 10 times true in the best chromosome
159
-
/// .with_max_stale_generations(1000) // stop searching if there is no improvement in fitness score for 1000 generations
160
+
/// .with_max_stale_generations(1000) // stop searching if there is no improvement in fitness score for 1000 generations (per scaled_range)
161
+
/// .with_max_generations(1_000_000) // optional, stop searching after 1M generations
160
162
/// .with_max_chromosome_age(10) // kill chromosomes after 10 generations
161
163
/// .with_reporter(EvolveReporterSimple::new(100)) // optional builder step, report every 100 generations
162
164
/// .with_replace_on_equal_fitness(true) // optional, defaults to false, maybe useful to avoid repeatedly seeding with the same best chromosomes after mass extinction events
0 commit comments