From ca9f059a4295db6269728b0b747036f995c777a9 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 8 Aug 2019 09:59:41 -0700 Subject: Added more features to the simulation. --- src/explicitsimulation.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/explicitsimulation.cpp') 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() return uMaxFitness; } +Genetic::PhenotypeId Genetic::ExplicitSimulation::getMaxFitnessId() const +{ + return uMaxFitness; +} + +Genetic::Phenotype *Genetic::ExplicitSimulation::getMaxFitnessPhenotype() const +{ + return xPop.getPhenotype( uMaxFitness ); +} + void Genetic::ExplicitSimulation::updateFitness() { mFitness.lock(); -- cgit v1.2.3