question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug in NSGA-II in jMetal 5.8+: getting solutions from population during reproduction

See original GitHub issue

I was reading the code of NSGA-II and found out that, during reproduction, the solutions are taken sequentially from the population itself instead of the mating pool. See line 122:

https://github.com/jMetal/jMetal/blob/831d62d0bbf384e1770efc1bb6eef69ce0ce75b9/jmetal-algorithm/src/main/java/org/uma/jmetal/algorithm/multiobjective/nsgaii/NSGAII.java#L113-L125

I believe it is a bug, because the mating pool is the one containing the selected parents from the selection phase. Moreover, the indexes are taken from the mating pool, which is another indication that the reproduction is using the wrong list.

If it is indeed a bug (I might be wrong), the fix is straightforward: matingPool.get(i+j) instead of population.get(i+j) in line 122.

This code is the same for versions 5.7 and 5.9 too.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ajnebrocommented, Jun 17, 2020

Thanks for reporting the bug and the pull request to fix it.

0reactions
GiovaniGuizzocommented, Jul 28, 2020

I guess since the fix from my pull request was merged into the 5.10 release, this issue can be closed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Release 6.0-SNAPSHOT - jMetal project documentation
The last step is to run NSGA-II, get the result and store the found solutions: AlgorithmRunner algorithmRunner = new AlgorithmRunner.
Read more >
ARJA: Automated Repair of Java Programs via Multi-Objective ...
Abstract—Automated program repair is the problem of automatically fixing bugs in programs in order to significantly reduce the.
Read more >
Supporting Evolution and Maintenance of android Apps - CORE
This dissertation presents a set of empirical studies, as well as solutions for some of the key challenges when evolving and maintaining Android...
Read more >
14 Configuring Software Product Lines by Combining Many ...
Next, offspring solutions are obtained by using crossover and mutation operators. Finally, through the environmental selection procedure, the population for the ...
Read more >
Multi-objective Ensemble Generation for Software Defect ...
population, respectively. At the end of the generation, the fittest solutions survive and become parents in the subsequent generation. When a given stopping ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found