1function x=init_individual(xlb,xub,dim,sizepop)
 2% 参数初始化函数
 3% lb:参数下界,行向量
 4% ub:参数上界,行向量
 5% dim:参数维度
 6% sizepop 种群规模
 7% x:返回sizepop*size(lb,2)的参数矩阵
 8xRange=repmat((xub-xlb),[sizepop,1]);
 9xLower=repmat(xlb,[sizepop,1]);
10x=rand(sizepop,dim).*xRange+xLower;