I wrote a program that solves the traveling salesman problem minimizing the travel distance. Now I'm triyng to create a weight function that takes distance and time and outputs a value I can use instead of the distance for the TSP. My idea is to let the user input a percentage (like 70%) and weight the distance and time somehow.
The problem is I've no idea how to compare distance in meters with time in seconds.