From 8fe6fee4592988e5655d87b1c8eab974b58f4e91 Mon Sep 17 00:00:00 2001 From: linyiqun <675250079@qq.com> Date: Mon, 27 Apr 2015 22:21:59 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=97=E6=B3=95=E5=9C=BA=E6=99=AF=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 算法场景测试类 --- Others/DataMining_ACO/Client.java | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Others/DataMining_ACO/Client.java diff --git a/Others/DataMining_ACO/Client.java b/Others/DataMining_ACO/Client.java new file mode 100644 index 0000000..c335ec0 --- /dev/null +++ b/Others/DataMining_ACO/Client.java @@ -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(); + } +}