ciren / cilib

Typesafe, purely functional Computational Intelligence
https://cilib.net
Apache License 2.0
124 stars 101 forks source link

Fitness functions should determine fitness viability #303

Closed gpampara closed 5 years ago

gpampara commented 6 years ago

This is a complete oversight: the provided function to the Eval constructors should contain the logic to determine if a fitness value is "good" or "bad". This necessitates that the fitness function return the type of fitness (which the quantification represents) instead of a plain raw value. Doing so will allow for proper comparisons to occur, based on the logic within the quantification function itself. Currently, all results are seemingly "feasible" which, is not the desired behaviour.