Index: ga/GARealGenome.C =================================================================== --- ga/GARealGenome.C +++ ga/GARealGenome.C @@ -161,7 +161,7 @@ if(nMut < 1.0){ // we have to do a flip test on each element nMut = 0; for(i=length; i>=0; i--){ - float value = child.gene(i); + double value = child.gene(i); if(GAFlipCoin(pmut)){ if(child.alleleset(i).type() == GAAllele::ENUMERATED || child.alleleset(i).type() == GAAllele::DISCRETIZED) @@ -171,7 +171,7 @@ value = GAMax(child.alleleset(i).lower(), value); value = GAMin(child.alleleset(i).upper(), value); } - child.gene(i, value); + child.gene(i, (float)value); nMut++; } } @@ -179,7 +179,7 @@ else{ // only mutate the ones we need to for(n=0; n RNMX) return RNMX; + if ((temp=(float)AM*iy) > RNMX) return RNMX; else return temp; }