尝试使用TSP包接口使用concorde算法解决着名的TSP问题导致状态127。 我在concorde_path()中放置了concorde可执行文件的路径。 并运行concorde_help()命令,该命令导致状态127警告消息。 在运行solve_TSP函数时遇到以下错误
data("USCA312")
solve_TSP(USCA312, method = "concorde", control = list(clo = "-V"))
Used parameters:
clo = -V
precision = 6
exe = C:/Users/gourav.trivedi/Downloads/concorde
verbose = TRUE
Warning in tsp_concorde(x_, control = control) :
Concorde can only handle distances < 2^31. Reducing precision for Concorde to 3
Error in tsp_concorde(x_, control = control) :
Problems with reading Concorde's output.
Is concorde properly installed?
For details see ? Concorde
In addition: Warning message:
running command '"C:/Users/gourav.trivedi/Downloads/concorde" -x -V -o file38087a417c0e.sol file38087a417c0e.dat' had status 127
答案 0 :(得分:0)
我没有Windows(它在Linux上运行正常),但您需要检查:
1)协和广告适用于您的系统。它需要Cygwin(见http://www.math.uwaterloo.ca/tsp/concorde/downloads/downloads.htm)。尝试从命令行界面执行示例。
2)路径正确。
希望这有帮助。