//GEP算法过程privatevoidGEPMethod(){/*根据原始数据获取初始种群*/string[]aInitialPopulation=InitialPopulation();/*染色体解码*/string[]aChromDecoding=ChromDecoding(aInitialPopulation);/*适应度评估*/string[]aFitEvaluation=FitEvaluation(aChromDecoding);/*判断是否满足进化条件:如果是输出最优个体;否则选择复制执行下一步*/if(JudgingBest(aFitEvaluation,textBox6.Text)){string[]aResult=GetBest(aFitEvaluation,textBox6.Text);}else{/*选择复制*/string[]aSelecReplication=SelecReplication(aFitEvaluation);/*变异算子*/string[]aMutOperator=MutOperator(aSelecReplication);/*插串算子*/string[]aInterOperator=InterOperator(aMutOperator);/*基因变换*/string[]aGeneTransform=GeneTransform(aInterOperator);/*基因重组*/string[]aGeneRecom=GeneRecom(aGeneTransform);/*下一代染色体*/string[]aNextGeneChrom=NextGeneChrom(aGeneRecom);}}