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

📄 ant.h

📁 标准的GP源代码,由Andy Singleton维护
💻 H
字号:
#ifndef ANT_LIB#define ANT_LIB true// ant.h   Include file for ant problem problem intergrated int gp.cc// W.B.Langdon cs.bham.ac.uk 7 February 1997// version "$Revision: 1.5 $"//Modifications (in reverse order)typedef float retval;#define GENERATIONAL true#define NUM_TREES 1#define WITHIN_GP true#define KOZA_ANT true#define TIMINGS true#define setmaxfit(xparams) (89+1)extern int energy;extern int CopyGrid();extern int Reset();#define Grid_Horizontal 32#define Grid_Vertical  32extern unsigned char Grid[Grid_Horizontal][Grid_Vertical];typedef float retval;//#define GENERATIONAL true//#define MULTREE#define NUM_TREES 1#define MAXTREEDEPTH 17#define NUM_OPERATIONS 1#define NUM_OTHERS 0#define num_pareto_components  1#define num_ellite_pareto      1typedef float scoretype;//the following not used.. but need to keep compier happy#define MAX_BREAKS         1#define NUM_TEST_SEQUENCES 1#define NUM_TEST_PHASES    1#define last_op  0retval random_value(int& seed); //seed > 0extern      float max_fitness;extern      int end_gens(); //see if need to move to the next test phase                             //return <> 0 if wish to save a bench pointextern      num_sol_found; //for save and restore to dumpfile#endif

⌨️ 快捷键说明

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