Print

Print


Hi, Sean, 
I just try to use the multi-objective and have some query about the code 
below. About the betterThan function,  

for (int x=0;x<multifitness.length;x++)
                {
                if (multifitness[x] > other.multifitness[x]) abeatsb = 
true;
                if (multifitness[x] < other.multifitness[x]) return false;
                }
            }
Shall "if (multifitness[x] < other.multifitness[x]) return false;"
should be "if (multifitness[x] < other.multifitness[x]) abeatsb= false;"???
With the current code not all the criteria will go through. 

Thanks very much and looking forward to your answer.
Zheng