Redesigned GA template and TSP test