[Quantproject-developers] QuantProject/b1_ADT/Optimizing/Genetic Genome.cs,1.5,1.6
Brought to you by:
glauco_1
|
From: Marco M. <mi...@us...> - 2005-08-01 22:26:41
|
Update of /cvsroot/quantproject/QuantProject/b1_ADT/Optimizing/Genetic In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15811/b1_ADT/Optimizing/Genetic Modified Files: Genome.cs Log Message: Modified HasSomeDuplicateGenes method. Index: Genome.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b1_ADT/Optimizing/Genetic/Genome.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Genome.cs 13 Jul 2005 16:37:04 -0000 1.5 --- Genome.cs 1 Aug 2005 22:26:32 -0000 1.6 *************** *** 169,173 **** /// values in genes /// </summary> ! public bool HasSomeDuplicateGenes(int constToDiscoverDuplicateGenes) { bool returnValue = false; --- 169,173 ---- /// values in genes /// </summary> ! public bool HasSomeDuplicateGenes() { bool returnValue = false; *************** *** 176,183 **** for(int j = i + 1; j < this.size ; j++) { ! if(this.genes[i] == this.genes[j] || ! this.genes[i] + constToDiscoverDuplicateGenes == this.genes[j] || ! this.genes[i] == this.genes[j] + constToDiscoverDuplicateGenes) ! returnValue = true; } --- 176,180 ---- for(int j = i + 1; j < this.size ; j++) { ! if(this.genes[i] == this.genes[j]) returnValue = true; } *************** *** 185,188 **** --- 182,186 ---- return returnValue; } + } } |