Finished Roulette Selection.
[genetic.git] / src / generation.h
index d36cd90e712374a61acf18a0bf9bd6828b16a4cf..39b9577bc4f7c855da8acdb0c2413de7dffe5721 100644 (file)
@@ -32,6 +32,11 @@ namespace genetic {
         vector<_Chromosome> get() const {
             return this->chromosomes;
         }
+
+        Generation& operator=(const Generation& generation){
+            this->chromosomes = generation.get();
+            return *this;
+        }
     };
 }