Skip to content

Commit efdb8df

Browse files
committed
Remove unused method + adding missing round-up procedure
1 parent 07abb51 commit efdb8df

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

pymoo/algorithms/moo/age.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ def _do(self, problem, pop, *args, n_survive=None, **kwargs):
141141
return pop[selected]
142142

143143
def survival_score(self, front, ideal_point):
144+
front = np.round(front, 12, out=front)
144145
m, n = front.shape
145146
crowd_dist = np.zeros(m)
146147

@@ -297,10 +298,4 @@ def normalize(front, extreme):
297298

298299
return front, normalization
299300

300-
301-
@jit(nopython=True, fastmath=True)
302-
def convergence_score(front, p):
303-
return -np.sum(front ** p, 1) ** (1 / p)
304-
305-
306301
parse_doc_string(AGEMOEA.__init__)

0 commit comments

Comments
 (0)