generations of 50 individuals) of the same model that I got NaN's on before. As far as I can tell, it shouldn't be a division by zero problem, I'm solving the following formula: (a/10*b)-(c*d)-(e*f)-(g*h). I did save the text outcome of the run but I'm not sure which gene is what so I'm not sure how to recreate the exact situation... Is there something you want me to try?
BTW, what is a collision?
cheers,
wim
Genome[24], Fitness=-300.29, Genes [3% · 33% · 98% · 7%]
{
Record: Point Mutation at index 3: 0.0465 -> 0.0497
}
Genome[25], Fitness=NaN, Genes [3% · 33% · 98% · 9%]
{
Record: Genome was mutated to avoid collision…
she means to offset... we need to do a tower with 50 plane faces one above the other, but they need to be randomly moved in the xy plane in a range of 0 to 3 units...
ing for.
Do note that you switched SDKs and programming languages at the same time. I'm not at all certain some of the loops have been translated from VB to C# correctly.
Another thing to watch out for is the different division behaviour in VB and C#:
Dim A As Int32 = 50
Dim B As Int32 = 8
Print("A/B = {0}", A / B)
will yield "A/B = 6.25", whereas:
int A = 50;
int B = 8;
Print("A/B = {0}", A / B);
will yield "A/B = 6"
In C#, when you divide two integers, the result will be an integer. In VB, the result is a double.
--
David Rutten
david@mcneel.com
Poprad, Slovakia…
Added by David Rutten at 7:25am on September 4, 2010