File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ Breaking Changes:
9
9
* Changed population initialization and evolvable creation workflow for more consistency.
10
10
* Simplified error handling in favor of more single ` Evolvable::Error ` type with more informative messages.
11
11
* Changed ` Population#new_evolvables ` to only accept a ` count ` parameter, removing the ` evolvables ` parameter.
12
+ * Changed default ` size ` parameter in ` Population#initialize ` from 40 to 0.
12
13
13
14
New Features:
14
15
* Added gene clusters for organizing related genes through the ` cluster ` parameter in gene definitions.
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ def self.load(data)
68
68
# @param evolvable_type [Class] Required. The class of evolvables to create
69
69
# @param id [String, nil] Optional identifier, not used by Evolvable internally
70
70
# @param name [String, nil] Optional name, not used by Evolvable internally
71
- # @param size [Integer] The number of instances in the population (default: 40 )
71
+ # @param size [Integer] The number of instances in the population (default: 0 )
72
72
# @param evolutions_count [Integer] The number of evolutions completed (default: 0)
73
73
# @param gene_space [Evolvable::GeneSpace, nil] The gene space for initializing evolvables
74
74
# @param parent_evolvables [Array<Evolvable>] Parent evolvables for breeding the next generation
@@ -83,7 +83,7 @@ def self.load(data)
83
83
def initialize ( evolvable_type :,
84
84
id : nil ,
85
85
name : nil ,
86
- size : 40 ,
86
+ size : 0 ,
87
87
evolutions_count : 0 ,
88
88
gene_space : nil ,
89
89
parent_evolvables : [ ] ,
You can’t perform that action at this time.
0 commit comments