This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using CPLEX | |
using JuMP | |
using Test | |
# TSPLIB could be more clear on how to compute the distances. | |
function euclidean_distance(x1, y1, x2, y2) | |
round(√((x1 - x2)^2 + (y1 - y2)^2)) | |
end | |
function get_instance() |