Skip to content

break the loop when this is triggered? #6

@ylzhouchris

Description

@ylzhouchris

if len(population_final.fronts[0]) >= self.num_of_individuals:
self.utils.calculate_crowding_distance(population_final.fronts[0])
population_final.fronts[0].sort(key=lambda individual: individual.crowding_distance,reverse=True)
population_final_front0.extend(population_final.fronts[0][0:self.num_of_individuals])
# print('population_final_front0:',len(population_final_front0))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions