📄 main.cpp
字号:
/*
ANT-CYCLE ALGORITHM FOR TSP
File: main.c
Author: ehui928
Purpose: main function
Date: 2007-01-18
*/
//433.436055
//428.730955
//goal=423.245
//426.777745 - 12350269
//424.8693
#include <stdio.h>
#include "acs.h"
int main(void)
{
double length;
int i=0;
Acs as;
as.read_data("Oliver30.tsp");
as.initAll();
printf("Now , try to find the best tour...\n");
length = as.find_best_tour();
printf("Shortest Tour Length is : %f\n", length);
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -