You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the end, I would like to use the above matrix as input for a customized Travelling Salesman Problem (R: Customizing the Travelling Salesman Problem) - e.g. Try to find the optimal path when you are forced to start at "city 4" and the third city should be "city 5":
GA | iter = 1 | Mean = NaN | Best = -Inf
GA | iter = 2 | Mean = NaN | Best = -Inf
Error in if (object@run >= run) break :
missing value where TRUE/FALSE needed
In addition: Warning messages:
1: In max(fitness) : no non-missing arguments to max; returning -Inf
2: In max(Fitness, na.rm = TRUE) :
no non-missing arguments to max; returning -Inf
3: In max(fitness) : no non-missing arguments to max; returning -Inf
4: In max(x, na.rm = TRUE) :
no non-missing arguments to max; returning -Inf
How can I fix this?
Thanks!
The text was updated successfully, but these errors were encountered:
Suppose I have 20 cities and the Longitude/Latitude for each of these cities :
I can also make a distance matrix for these cities that contains the distance between each pair of cities:
In the end, I would like to use the above matrix as input for a customized Travelling Salesman Problem (R: Customizing the Travelling Salesman Problem) - e.g. Try to find the optimal path when you are forced to start at "city 4" and the third city should be "city 5":
This results in the following error:
How can I fix this?
Thanks!
The text was updated successfully, but these errors were encountered: