I'm working on a GA. My problem is as follows. I have a fitness function which takes a couple of values:
A - value which is huge, but less important for example 999999. (weight of importance 30% of the final result)
B - value couple times smaller but more important for example 50. (weight of importance 70% of final result)
I assume that both of these values strive to infinity. How to build a fitness function where I have something like:
long calculateFitness(A, weightOfA, B, weightOfB);
and the result will be any long number which will put B variable as much more important.