Commit
•
6e16c34
1
Parent(s):
0d0f645
Updated lines 344-346 with: best_positions_1D = np.load('best_positions.npy') wolf_positions = best_positions_1D
Browse files
app.py
CHANGED
@@ -341,9 +341,9 @@ class GWO:
|
|
341 |
}
|
342 |
def plot_contour_and_wolves(self, wolf_positions):
|
343 |
# Ensure wolf_positions is a 2D array
|
344 |
-
|
345 |
|
346 |
-
wolf_positions =
|
347 |
|
348 |
# Define the objective function
|
349 |
def objective_function(x, y):
|
|
|
341 |
}
|
342 |
def plot_contour_and_wolves(self, wolf_positions):
|
343 |
# Ensure wolf_positions is a 2D array
|
344 |
+
best_positions_1D = np.load('best_positions.npy')
|
345 |
|
346 |
+
wolf_positions = best_positions_1D
|
347 |
|
348 |
# Define the objective function
|
349 |
def objective_function(x, y):
|