Skip to content

Instantly share code, notes, and snippets.

@vfilimonov
Created March 17, 2021 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vfilimonov/4e368a7a6235ae2aff8e9c47a569e974 to your computer and use it in GitHub Desktop.
Save vfilimonov/4e368a7a6235ae2aff8e9c47a569e974 to your computer and use it in GitHub Desktop.
Issue with keep_efficient(pts)
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