Moses::MetaPopulation
Inherits Reference < Object
The metapopulation maintains the best candidates found across all demes and is responsible for spawning new demes for exploration
Constructors
new(params : MosesParams, scoring_function : ScoringFunction)
SourceInstance methods
best_candidates(count : Int32 = 10) : Array(Candidate)
Get the best candidates from the metapopulation
best_score
Sourcebest_score=(best_score : CompositeScore | Nil)
Sourcecandidates
Sourcecandidates=(candidates : Array(Candidate))
Sourcedeme_expander
Sourcedeme_expander=(deme_expander : DemeExpander)
Sourcegenerations
Sourcegenerations=(generations : Int32)
Sourcemax_size
Sourcemax_size=(max_size : Int32)
Sourcerun(scoring_func : ScoringFunction, max_evals : Int32) : Array(Candidate)
Main evolutionary loop
scoring_function
Sourcescoring_function=(scoring_function : ScoringFunction)
Sourcestagnation_count
Sourcestagnation_count=(stagnation_count : Int32)
Sourcetotal_evals
Sourcetotal_evals=(total_evals : Int32)
Source