-
-
Save vfilimonov/4e368a7a6235ae2aff8e9c47a569e974 to your computer and use it in GitHub Desktop.
Issue with keep_efficient(pts)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
df = [] | |
SS = np.arange(0, 4.0001, 1) | |
for s1 in SS: | |
for s2 in SS: | |
x = 2*(s1 + s2 + 0.1 * s1 * s2) | |
p1, p2 = x - s1**2, x - s2**2 | |
df.append([p1, p2]) | |
vals = np.array(df) | |
res = keep_efficient(vals) | |
res2 = vals[is_pareto_efficient(-vals)] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment