Hello, I am experimenting with Genetic Algorithms and it has been working very well. The trouble I have run into is making a good fitness function for my porblem. I have a “target” that is a part. I have built a little obstacle course for the indiviuals to go through, each indivual has a table that contains the “birth” os.clock() of when it was created. I am currently evaluating the fitness of each individual by taking the negative of the distance between the target and the individuals parts adding how long they had survived.
Here is the obstacle course:
The furthest point reached was on gen 79 and they could not get past that.
Here is the rbx file:
backy.rbxl (29.7 KB)
I was hoping someone could help me through this. I know the fitness func is based on the problem but I cant work it out. Thanks!
Fitness is worked out on line 131. It’s all one script in Serverscriptservice
Thansk
