diff --git a/OsmSharp/Math/TSP/EdgeAssemblyGenetic/EdgeAssemblyCrossOverSolver.cs b/OsmSharp/Math/TSP/EdgeAssemblyGenetic/EdgeAssemblyCrossOverSolver.cs index 6742b5fa..5f979ab6 100644 --- a/OsmSharp/Math/TSP/EdgeAssemblyGenetic/EdgeAssemblyCrossOverSolver.cs +++ b/OsmSharp/Math/TSP/EdgeAssemblyGenetic/EdgeAssemblyCrossOverSolver.cs @@ -205,7 +205,8 @@ protected override IRoute DoSolve(OsmSharp.Math.TSP.Problems.IProblem problem) List result = new List(best.Genomes); result.Insert(0, 0); //return new SimpleAsymmetricRoute(result, true); - return DynamicAsymmetricRoute.CreateFrom(result); + // Parameter problem.Symmetric inserted otherwise Tour is still round + return DynamicAsymmetricRoute.CreateFrom(result, problem.Symmetric); } ///