Optimization, Genetic Algorithm, Operations Research, Scheduling, Data Science.
np.min) stats.register("max", np.max) pop, log = algorithms.eaSimple(pop, toolbox, cxpb=CXPB, mutpb=MUTPB, ngen=NGEN, stats=stats, halloffame=hof, verbose=True) return pop, log, hof if __name__ == "__main__": pop, log, hof = main() best_ind = hof.items[0] print("Best schedule found:")