Skip to content

Commit

Permalink
算法场景测试类
Browse files Browse the repository at this point in the history
算法场景测试类
  • Loading branch information
linyiqun committed Apr 27, 2015
1 parent 44a415f commit 8fe6fee
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions Others/DataMining_ACO/Client.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package DataMining_ACO;

/**
* 蚁群算法测试类
* @author lyq
*
*/
public class Client {
public static void main(String[] args){
//测试数据
String filePath = "C:\\Users\\lyq\\Desktop\\icon\\input.txt";
//蚂蚁数量
int antNum;
//控制参数
double alpha;
double beita;
double p;
double Q;

antNum = 3;
alpha = 0.5;
beita = 1;
p = 0.5;
Q = 5;

ACOTool tool = new ACOTool(filePath, antNum, alpha, beita, p, Q);
tool.antStartSearching();
}
}

0 comments on commit 8fe6fee

Please sign in to comment.