⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.ant

📁 标准的GP源代码,由Andy Singleton维护
💻 ANT
字号:
*************************************************************************GPDATA Version 3 release Easter 1997 W.B.Langdon for the ArtificialAnt problem $Revision: 1.5 $. This updates GPQUICKA simple Genetic Programming system in C++Version 2, released 2/12/94************************************************************************* Copyright Andy Singleton, 1993,1994 This code is released for non-commercial use only For questions or upgrades contact:    Andy Singleton    Creation Mechanics, Inc.    PO Box 248, Peterborough, NH 03458    Internet: p00396@psilink.com    Compuserve: 73313,757    Phone: (603) 563-7757 Further documentation appears in the associated Byte Magazine article "Genetic Programming with C++", February, 1994The sample problem ANT will attempt to evolve an artificial antwhich can traverse the trail of food.  The ant moves across a 32x32 grid,and it can sense food immediately ahead, move forward, or turn.  As theproblem runs, it will display the best ant by the amount of food found.After the ant finds all of the food (89 pieces on the Santa Fe trail), orafter 25,000 generates, the problem terminates and prints the path of thebest ant to file "RESULT.TXT".  This is a replication of the problemdescribed by John Koza in "A-Life II" and "Genetic Programming".*************************************************************************Instructions*************************************************************************Two versions of the ant problem are supplied. The original antprobfrom Andy Singleton and one integrated into the GPxxx framework.  TheGPxxx framework is designed for batch runs but gives much greatercontrol of run parameters.  (The configuration macro WITHIN_GP must bedefined to compile in the code to produce GPant). GPant is currentlydefined so that runs continue until pGenerationLimit is reached. Tostop on producing a solution change max fitness from 90 to 89. If theconfiguration macro KOZA_ANT is defined, GPxxx uses a torriodal gridand is more in keeping with that used in Koza's GP1 book.To Make antprob	Create a symbolic link from antprob.h to prob.h 	(eg ln -s antprob.h prob.h)	If gcc is available, make using antprob.make	If running on an alpha, make using antprob.make.alpha To Make GPant:	Create a symbolic link from ant.h to prob.h (eg ln -s ant.h prob.h)	Either use default for KOZA_ANT or edit prob.h so as not to define it.	If gcc is available, make with either ant.make 	Eg make -f ant.make	If running on an alpha, make with either ant.make.alphaTo RUN antprob:	antprob can be run as it standsTo run GPant:	copy either ant.ini or ant.koza.ini to gp.ini Create an	empty file called gp.test Then run GPant	GPant takes optionals command line arguments, these allow the	user to override the paramter settings in gp.ini Eg		GPant pPopSeed:100	Evolved solutions can be loaded and their execution traced by	creating a file gp.load containing the program. Three examples	from GP are provide in files  		gp.load.ant.avoider		gp.load.ant.quilter		gp.load.ant.solution

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -