diff --git a/pymoo/algorithms/moo/age.py b/pymoo/algorithms/moo/age.py index f24b76e2..582468e3 100644 --- a/pymoo/algorithms/moo/age.py +++ b/pymoo/algorithms/moo/age.py @@ -209,7 +209,7 @@ def compute_geometry(front, extreme, n): return p @staticmethod - @jit(fastmath=True) + @jit(nopython=True, fastmath=True) def pairwise_distances(front, p): m = np.shape(front)[0] distances = np.zeros((m, m)) @@ -219,7 +219,7 @@ def pairwise_distances(front, p): return distances @staticmethod - @jit(fastmath=True) + @jit(nopython=True, fastmath=True) def minkowski_distances(A, B, p): m1 = np.shape(A)[0] m2 = np.shape(B)[0] @@ -254,7 +254,7 @@ def find_corner_solutions(front): return indexes -@jit(fastmath=True) +@jit(nopython=True, fastmath=True) def point_2_line_distance(P, A, B): d = np.zeros(P.shape[0]) diff --git a/pymoo/algorithms/moo/age2.py b/pymoo/algorithms/moo/age2.py index ab21c4a9..26a5dddf 100644 --- a/pymoo/algorithms/moo/age2.py +++ b/pymoo/algorithms/moo/age2.py @@ -64,7 +64,7 @@ def __init__(self, self.tournament_type = 'comp_by_rank_and_crowding' -@jit(fastmath=True) +@jit(nopython=True, fastmath=True) def project_on_manifold(point, p): dist = sum(point[point > 0] ** p) ** (1/p) return np.multiply(point, 1 / dist) @@ -140,7 +140,7 @@ def compute_geometry(front, extreme, n): return p @staticmethod - @jit(fastmath=True) + @jit(nopython=True, fastmath=True) def pairwise_distances(front, p): m, n = front.shape projected_front = front.copy()