Akiira / Comp-524-program

A genetic algorithm to create test suites that cover every branch of a program
2 stars 0 forks source link

Current Fitness Prop Select breaks if fitness is negative #9

Closed ambarket closed 9 years ago

ambarket commented 9 years ago

Just playing around with the fitness function, found this. Not sure what our plans are for fitness and if we'll need or want negative values.

Akiira commented 9 years ago

Well it depends on how we punish repeated coverage. I was thinking everytime an edge is covered mutliple times we only give it a fraction of the base reward for each time it is covered more then once. We could even keep lowering that fraction as it covered it more times. In this case it would never get negative fitness.