Created
January 31, 2021 16:35
-
-
Save rocreguant/a46f0df0d499528cdadf4d1f218e2f4c to your computer and use it in GitHub Desktop.
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
def get_all_fitnes(population_set, objects_dict): | |
fitnes_list = np.zeros(n_population) | |
#Looping over all solutions computing the fitness for each solution | |
for i in range(n_population): | |
_, fitnes_list[i] = get_current_weight_value(population_set[i], objects_dict) | |
return fitnes_list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment