Skip to content

Commit 8fe6fee

Browse files
author
linyiqun
committed
算法场景测试类
算法场景测试类
1 parent 44a415f commit 8fe6fee

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

Others/DataMining_ACO/Client.java

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
package DataMining_ACO;
2+
3+
/**
4+
* 蚁群算法测试类
5+
* @author lyq
6+
*
7+
*/
8+
public class Client {
9+
public static void main(String[] args){
10+
//测试数据
11+
String filePath = "C:\\Users\\lyq\\Desktop\\icon\\input.txt";
12+
//蚂蚁数量
13+
int antNum;
14+
//控制参数
15+
double alpha;
16+
double beita;
17+
double p;
18+
double Q;
19+
20+
antNum = 3;
21+
alpha = 0.5;
22+
beita = 1;
23+
p = 0.5;
24+
Q = 5;
25+
26+
ACOTool tool = new ACOTool(filePath, antNum, alpha, beita, p, Q);
27+
tool.antStartSearching();
28+
}
29+
}

0 commit comments

Comments
 (0)