Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8fe6fee

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

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

‎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)

AltStyle によって変換されたページ (->オリジナル) /