Closed shambakey1 closed 6 years ago
Hi For the attached link, should the test be "best_is_one += 1" instead of "best_is_one = 1"? because the later test will just change (not increment) the "best_is_one" for each objective? The same question applies for the "best_is_two = 1" also.
Regards
https://github.com/jMetal/jMetalPy/blob/6df9fa2a3a15e556f2bc6e58377781251a741949/jmetal/util/comparator.py#L134
The test check is not correct, but not for the reason you point out. There is no need to increment the best_is_one variable.
best_is_one
I have just updated the repository.
Thank you
Hi For the attached link, should the test be "best_is_one += 1" instead of "best_is_one = 1"? because the later test will just change (not increment) the "best_is_one" for each objective? The same question applies for the "best_is_two = 1" also.
Regards
https://github.com/jMetal/jMetalPy/blob/6df9fa2a3a15e556f2bc6e58377781251a741949/jmetal/util/comparator.py#L134