摘要: clearclca=0.95k=[5;10;13;4;3;11;13;10;8;16;7;4];k=-k;d=[2;5;18;3;2;5;10;4;11;7;14;6];restriction=46;num=12;sol_new=ones(1,num);E_current=inf;E_best=inf;sol_current=sol_new;sol_best=sol_new;t0=97;tf=3;t=t0;p=1;while t>=tf for r=1:100 %产生随机扰动 tmp=ceil(rand.*num); sol_new(1,tmp)=~sol_new(1,tmp); %检查 阅读全文
posted @ 2013-08-20 00:10 Xbingbing 阅读(2553) 评论(0) 推荐(0) 编辑