import numpy as np
import random
import matplotlib.pyplot as plt
def get_rand():
select =[x for x inrange(10)]
random.shuffle(select)return select
time = np.array([[82,16,66,71,44,28,76,85,36,8],[91,98,4,4,39,68,26,26,84,6],[13,96,85,28,77,66,51,82,59,54],[92,49,94,5,80,17,70,25,55,78],[64,81,68,10,19,12,90,93,92,94],[10,15,76,83,49,50,96,35,29,13],[28,43,75,70,45,96,55,20,76,57],[55,92,40,32,65,35,14,26,76,47],[96,80,66,96,71,59,
python遗传算法解决分配问题import numpy as npimport randomimport matplotlib.pyplot as pltdef get_rand(): select = [x for x in range(10)] random.shuffle(select) return selecttime = np.array([...