From d9f848ff1ea968163c2fa38aa75de94bc5210914 Mon Sep 17 00:00:00 2001
From: Franck Dary <franck.dary@etu.univ-amu.fr>
Date: Fri, 18 Jan 2019 10:10:41 +0100
Subject: [PATCH] Increased GeneticAlgorithm load speed, but all its MLP must
 have the same topology

---
 neural_network/src/GeneticAlgorithm.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/neural_network/src/GeneticAlgorithm.cpp b/neural_network/src/GeneticAlgorithm.cpp
index 16d1131..7468235 100644
--- a/neural_network/src/GeneticAlgorithm.cpp
+++ b/neural_network/src/GeneticAlgorithm.cpp
@@ -170,7 +170,7 @@ void GeneticAlgorithm::load(const std::string & filename)
 
   for (int i = 0; i < nbElems; i++)
   {
-    generation[i]->mlp.loadStruct(model, filename, i);
+    generation[i]->mlp.loadStruct(model, filename, 0);
     generation[i]->mlp.loadParameters(model, filename);
   }
 }
-- 
GitLab