diff options
Diffstat (limited to '')
-rw-r--r-- | src/explicitsimulation.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/explicitsimulation.cpp b/src/explicitsimulation.cpp index 95b721b..3e4edc3 100644 --- a/src/explicitsimulation.cpp +++ b/src/explicitsimulation.cpp | |||
@@ -140,6 +140,16 @@ Genetic::PhenotypeId Genetic::ExplicitSimulation::selectWeighted() | |||
140 | return uMaxFitness; | 140 | return uMaxFitness; |
141 | } | 141 | } |
142 | 142 | ||
143 | Genetic::PhenotypeId Genetic::ExplicitSimulation::getMaxFitnessId() const | ||
144 | { | ||
145 | return uMaxFitness; | ||
146 | } | ||
147 | |||
148 | Genetic::Phenotype *Genetic::ExplicitSimulation::getMaxFitnessPhenotype() const | ||
149 | { | ||
150 | return xPop.getPhenotype( uMaxFitness ); | ||
151 | } | ||
152 | |||
143 | void Genetic::ExplicitSimulation::updateFitness() | 153 | void Genetic::ExplicitSimulation::updateFitness() |
144 | { | 154 | { |
145 | mFitness.lock(); | 155 | mFitness.lock(); |