[Quantproject-developers] QuantProject/b1_ADT/Optimizing/Genetic GeneticOptimizer.cs,1.9,1.10
Brought to you by:
glauco_1
|
From: Marco M. <mi...@us...> - 2005-08-03 23:08:42
|
Update of /cvsroot/quantproject/QuantProject/b1_ADT/Optimizing/Genetic In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15585/b1_ADT/Optimizing/Genetic Modified Files: GeneticOptimizer.cs Log Message: Calculation of fitness and assigning of meaning now are not called for genomes that have been cloned and not changed by mutation process. Index: GeneticOptimizer.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b1_ADT/Optimizing/Genetic/GeneticOptimizer.cs,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** GeneticOptimizer.cs 31 Jul 2005 20:03:31 -0000 1.9 --- GeneticOptimizer.cs 3 Aug 2005 23:08:33 -0000 1.10 *************** *** 481,485 **** foreach(Genome g in populationOfGenomes) { ! if(g != null) this.genomeManager.Mutate(g, this.MutationRate); } --- 481,485 ---- foreach(Genome g in populationOfGenomes) { ! //if(g != null) this.genomeManager.Mutate(g, this.MutationRate); } *************** *** 491,495 **** foreach(Genome g in populationOfGenomes) { ! if(g != null) { g.CalculateFitness(); --- 491,498 ---- foreach(Genome g in populationOfGenomes) { ! if(!g.HasBeenCloned || g.HasBeenChanged) ! //if it has been cloned and it has not been changed, ! //it's useless ! //to calculate again fitness and meaning { g.CalculateFitness(); |