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

📄 mapping.cc

📁 c++编写的并行拉马克遗传算法的程序。实现分析对接程序
💻 CC
字号:
/********************************************************************     These are the user defined functions that perform the     mapping between Genotype and Phenotype and its inverse				rsh 9/95********************************************************************/#include "support.h"extern FILE *logFile;//  This should be made more efficient.  As it is now, we (de facto) AlwaysEval!!!!Phenotype Individual::mapping(void){#ifdef DEBUG   (void)fprintf(logFile, "mapping.cc/Phenotype Individual::mapping(void)\n");#endif /* DEBUG */   phenotyp.write(*genotyp.vread(0), 0);   phenotyp.write(*genotyp.vread(1), 1);   phenotyp.write(*genotyp.vread(2), 2);   phenotyp.write(*genotyp.vread(3), 3);   phenotyp.write(*genotyp.vread(4), 4);   value(Normal_Eval);   return(phenotyp);}Genotype Individual::inverse_mapping(void){#ifdef DEBUG   (void)fprintf(logFile, "mapping.cc/Genotype Individual::inverse_mapping(void)\n");#endif /* DEBUG */   genotyp.write(*phenotyp.vread(0), 0);   genotyp.write(*phenotyp.vread(1), 1);   genotyp.write(*phenotyp.vread(2), 2);   genotyp.write(*phenotyp.vread(3), 3);   genotyp.write(*phenotyp.vread(4), 4);   return(genotyp);}

⌨️ 快捷键说明

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