The Algorithms logo
The Algorithms
Про AlgorithmsПожертвувати

Sort Population

function pop =SortPopulation(pop)
    [~,so] = sort([pop.Cost]);
        pop = pop(so);
end