Skip to content

Commit e0cf53e

Browse files
author
linyiqun
committed
场景测试类添加迭代次数变量
场景测试类添加迭代次数变量
1 parent 9e16a98 commit e0cf53e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Others/DataMining_ACO/Client.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ public static void main(String[] args){
1111
String filePath = "C:\\Users\\lyq\\Desktop\\icon\\input.txt";
1212
//蚂蚁数量
1313
int antNum;
14+
//蚁群算法迭代次数
15+
int loopCount;
1416
//控制参数
1517
double alpha;
1618
double beita;
@@ -22,8 +24,9 @@ public static void main(String[] args){
2224
beita = 1;
2325
p = 0.5;
2426
Q = 5;
27+
loopCount = 5;
2528

2629
ACOTool tool = new ACOTool(filePath, antNum, alpha, beita, p, Q);
27-
tool.antStartSearching();
30+
tool.antStartSearching(loopCount);
2831
}
2932
}

0 commit comments

Comments
 (0)