-
-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix improvement calculation #222
Conversation
platypus/core.py
Outdated
@@ -987,9 +987,11 @@ def add(self, solution): | |||
else: | |||
self._contents = list(itertools.compress(self._contents, nondominated)) + [solution] | |||
|
|||
if dominated and not_same_box: | |||
if any(dominated) and all(not_same_box): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might also consider getting rid of the dominated check.
In the MOEA Framework, which is the precursor to this library, I actual split out two types of improvement:
/**
* The number of ε-box improvements that have occurred.
*/
private int numberOfImprovements;
/**
* The number of ε-box improvements dominating an existing solution
* that have occurred.
*/
private int numberOfDominatingImprovements;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think to keep the two libraries consistent, non-dominated solutions should count as improvements so long as they fall within a new epsilon-box.
Fixes #221