how to make TSP genetic algorthm in unity 2d?
You can use GeneticSharp (GitHub - giacomelli/GeneticSharp: GeneticSharp is a fast, extensible, multi-platform and multithreading C# Genetic Algorithm library that simplifies the development of applications using Genetic Algorithms (GAs).)

Take a look on this tutorial TSP with GeneticSharp and Unity3D.