[Quantproject-developers] QuantProject/b1_ADT/Optimizing/Genetic GeneticOptimizer.cs, 1.24, 1.25
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2007-08-04 19:57:55
|
Update of /cvsroot/quantproject/QuantProject/b1_ADT/Optimizing/Genetic In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv15387/b1_ADT/Optimizing/Genetic Modified Files: GeneticOptimizer.cs Log Message: Added a (commented) line, to be used if you get an exception from the Sort method and you want to break to the right code line Index: GeneticOptimizer.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b1_ADT/Optimizing/Genetic/GeneticOptimizer.cs,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** GeneticOptimizer.cs 19 Jun 2007 19:18:38 -0000 1.24 --- GeneticOptimizer.cs 4 Aug 2007 19:57:47 -0000 1.25 *************** *** 297,300 **** --- 297,303 ---- private void sortCurrentGenerationAndFireNewGenerationEvent() { + // comment out the following line if you have an exception + // in the Sort method and you want to break to the proper line + // double fitness = ((Genome) this.currentGeneration[ 0 ]).Fitness; this.currentGeneration.Sort(this.genomeComparer); if(this.NewGeneration != null) |