[Quantproject-developers] QuantProject/b1_ADT/Optimizing/Genetic Genome.cs, 1.10, 1.11
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2006-07-30 14:00:32
|
Update of /cvsroot/quantproject/QuantProject/b1_ADT/Optimizing/Genetic In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv17615/b1_ADT/Optimizing/Genetic Modified Files: Genome.cs Log Message: - now, an exception is thrown if Fitness is required, but Fitness is not a number (in such a case, probably it is requested before it is computed) Index: Genome.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b1_ADT/Optimizing/Genetic/Genome.cs,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** Genome.cs 8 Nov 2005 18:32:25 -0000 1.10 --- Genome.cs 30 Jul 2006 14:00:28 -0000 1.11 *************** *** 63,67 **** public double Fitness { ! get{return this.fitness;} set{this.fitness = value;} } --- 63,73 ---- public double Fitness { ! get ! { ! if ( double.IsNaN( this.fitness ) ) ! throw new Exception( ! "The fitness for this genome is not a number!" ); ! return this.fitness; ! } set{this.fitness = value;} } |