亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? deopt.m

?? 一些pso算法的應用 解決旅行商問題
?? M
?? 第 1 頁 / 共 2 頁
字號:
FM_pm3   = zeros(I_NP,I_D);   % initialize population matrix 3
FM_pm4   = zeros(I_NP,I_D);   % initialize population matrix 4
FM_pm5   = zeros(I_NP,I_D);   % initialize population matrix 5
FM_bm    = zeros(I_NP,I_D);   % initialize FVr_bestmember  matrix
FM_ui    = zeros(I_NP,I_D);   % intermediate population of perturbed vectors
FM_mui   = zeros(I_NP,I_D);   % mask for intermediate population
FM_mpo   = zeros(I_NP,I_D);   % mask for old population
FVr_rot  = (0:1:I_NP-1);               % rotating index array (size I_NP)
FVr_rotd = (0:1:I_D-1);       % rotating index array (size I_D)
FVr_rt   = zeros(I_NP);                % another rotating index array
FVr_rtd  = zeros(I_D);                 % rotating index array for exponential crossover
FVr_a1   = zeros(I_NP);                % index array
FVr_a2   = zeros(I_NP);                % index array
FVr_a3   = zeros(I_NP);                % index array
FVr_a4   = zeros(I_NP);                % index array
FVr_a5   = zeros(I_NP);                % index array
FVr_ind  = zeros(4);

FM_meanv = ones(I_NP,I_D);

I_iter = 1;
while ((I_iter < I_itermax) & (S_bestval.FVr_oa(1) > F_VTR))
  FM_popold = FM_pop;                  % save the old population
  S_struct.FM_pop = FM_pop;
  S_struct.FVr_bestmem = FVr_bestmem;
  
  FVr_ind = randperm(4);               % index pointer array

  FVr_a1  = randperm(I_NP);                   % shuffle locations of vectors
  FVr_rt  = rem(FVr_rot+FVr_ind(1),I_NP);     % rotate indices by ind(1) positions
  FVr_a2  = FVr_a1(FVr_rt+1);                 % rotate vector locations
  FVr_rt  = rem(FVr_rot+FVr_ind(2),I_NP);
  FVr_a3  = FVr_a2(FVr_rt+1);                
  FVr_rt  = rem(FVr_rot+FVr_ind(3),I_NP);
  FVr_a4  = FVr_a3(FVr_rt+1);               
  FVr_rt  = rem(FVr_rot+FVr_ind(4),I_NP);
  FVr_a5  = FVr_a4(FVr_rt+1);                

  FM_pm1 = FM_popold(FVr_a1,:);             % shuffled population 1
  FM_pm2 = FM_popold(FVr_a2,:);             % shuffled population 2
  FM_pm3 = FM_popold(FVr_a3,:);             % shuffled population 3
  FM_pm4 = FM_popold(FVr_a4,:);             % shuffled population 4
  FM_pm5 = FM_popold(FVr_a5,:);             % shuffled population 5

  for k=1:I_NP                              % population filled with the best member
    FM_bm(k,:) = FVr_bestmemit;             % of the last iteration
  end

  FM_mui = rand(I_NP,I_D) < F_CR;  % all random numbers < F_CR are 1, 0 otherwise
  
  %----Insert this if you want exponential crossover.----------------
  %FM_mui = sort(FM_mui');	  % transpose, collect 1's in each column
  %for k  = 1:I_NP
  %  n = floor(rand*I_D);
  %  if (n > 0)
  %     FVr_rtd     = rem(FVr_rotd+n,I_D);
  %     FM_mui(:,k) = FM_mui(FVr_rtd+1,k); %rotate column k by n
  %  end
  %end
  %FM_mui = FM_mui';			  % transpose back
  %----End: exponential crossover------------------------------------
  
  FM_mpo = FM_mui < 0.5;    % inverse mask to FM_mui

  if (I_strategy == 1)                             % DE/rand/1
    FM_ui = FM_pm3 + F_weight*(FM_pm1 - FM_pm2);   % differential variation
    FM_ui = FM_popold.*FM_mpo + FM_ui.*FM_mui;     % crossover
    FM_origin = FM_pm3;
  elseif (I_strategy == 2)                         % DE/local-to-best/1
    FM_ui = FM_popold + F_weight*(FM_bm-FM_popold) + F_weight*(FM_pm1 - FM_pm2);
    FM_ui = FM_popold.*FM_mpo + FM_ui.*FM_mui;
    FM_origin = FM_popold;
  elseif (I_strategy == 3)                         % DE/best/1 with jitter
    FM_ui = FM_bm + (FM_pm1 - FM_pm2).*((1-0.9999)*rand(I_NP,I_D)+F_weight);               
    FM_ui = FM_popold.*FM_mpo + FM_ui.*FM_mui;
    FM_origin = FM_bm;
  elseif (I_strategy == 4)                         % DE/rand/1 with per-vector-dither
     f1 = ((1-F_weight)*rand(I_NP,1)+F_weight);
     for k=1:I_D
        FM_pm5(:,k)=f1;
     end
     FM_ui = FM_pm3 + (FM_pm1 - FM_pm2).*FM_pm5;    % differential variation
     FM_origin = FM_pm3;
     FM_ui = FM_popold.*FM_mpo + FM_ui.*FM_mui;     % crossover
  elseif (I_strategy == 5)                          % DE/rand/1 with per-vector-dither
     f1 = ((1-F_weight)*rand+F_weight);
     FM_ui = FM_pm3 + (FM_pm1 - FM_pm2)*f1;         % differential variation
     FM_origin = FM_pm3;
     FM_ui = FM_popold.*FM_mpo + FM_ui.*FM_mui;     % crossover
  else                                              % either-or-algorithm
     if (rand < 0.5);                               % Pmu = 0.5
        FM_ui = FM_pm3 + F_weight*(FM_pm1 - FM_pm2);% differential variation
        FM_origin = FM_pm3;
     else                                           % use F-K-Rule: K = 0.5(F+1)
        FM_ui = FM_pm3 + 0.5*(F_weight+1.0)*(FM_pm1 + FM_pm2 - 2*FM_pm3);
     end
     FM_ui = FM_popold.*FM_mpo + FM_ui.*FM_mui;     % crossover     
  end
  
%-----Optional parent+child selection-----------------------------------------
  
%-----Select which vectors are allowed to enter the new population------------
  for k=1:I_NP
   
      %=====Only use this if boundary constraints are needed==================
      if (I_bnd_constr == 1)
         for j=1:I_D %----boundary constraints via bounce back-------
            if (FM_ui(k,j) > FVr_maxbound(j))
               FM_ui(k,j) = FVr_maxbound(j) + rand*(FM_origin(k,j) - FVr_maxbound(j));
            end
            if (FM_ui(k,j) < FVr_minbound(j))
               FM_ui(k,j) = FVr_minbound(j) + rand*(FM_origin(k,j) - FVr_minbound(j));
            end   
         end
      end
      %=====End boundary constraints==========================================
  
      S_tempval = feval(fname,FM_ui(k,:),S_struct);   % check cost of competitor
      I_nfeval  = I_nfeval + 1;
      if (left_win(S_tempval,S_val(k)) == 1)   
         FM_pop(k,:) = FM_ui(k,:);                    % replace old vector with new one (for new iteration)
         S_val(k)   = S_tempval;                      % save value in "cost array"
      
         %----we update S_bestval only in case of success to save time-----------
         if (left_win(S_tempval,S_bestval) == 1)   
            S_bestval = S_tempval;                    % new best value
            FVr_bestmem = FM_ui(k,:);                 % new best parameter vector ever
         end
      end
   end % for k = 1:NP

  FVr_bestmemit = FVr_bestmem;       % freeze the best member of this iteration for the coming 
                                     % iteration. This is needed for some of the strategies.

%----Output section----------------------------------------------------------

  if (I_refresh > 0)
     if ((rem(I_iter,I_refresh) == 0) | I_iter == 1)
       fprintf(1,'Iteration: %d,  Best: %f,  F_weight: %f,  F_CR: %f,  I_NP: %d\n',I_iter,S_bestval.FVr_oa(1),F_weight,F_CR,I_NP);
       %var(FM_pop)
       format long e;
       for n=1:I_D
          fprintf(1,'best(%d) = %g\n',n,FVr_bestmem(n));
       end
       if (I_plotting == 1)
          PlotIt(FVr_bestmem,I_iter,S_struct); 
       end
    end
  end

  I_iter = I_iter + 1;
end %---end while ((I_iter < I_itermax) ...

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品免视看| 蜜乳av一区二区| 蜜桃一区二区三区在线观看| 国产在线视频不卡二| 欧美综合亚洲图片综合区| 久久久久久麻豆| 日韩精品亚洲一区| av在线播放一区二区三区| 日韩欧美国产系列| 亚洲一二三区在线观看| 高清不卡在线观看| 日韩欧美aaaaaa| 日日夜夜精品视频免费| 97久久人人超碰| 国产视频一区在线观看| 精品一区二区三区免费毛片爱| 欧美性大战xxxxx久久久| 成人欧美一区二区三区小说| 国产自产2019最新不卡| 日韩欧美国产高清| 奇米色777欧美一区二区| 在线免费视频一区二区| 亚洲欧美一区二区在线观看| 从欧美一区二区三区| 久久精品一区二区三区不卡| 麻豆国产一区二区| 日韩美女一区二区三区| 奇米综合一区二区三区精品视频| 欧美日韩在线一区二区| 亚洲国产一区视频| 欧美色图天堂网| 亚洲妇熟xx妇色黄| 欧美美女激情18p| 亚洲国产精品久久久久婷婷884| 色先锋aa成人| 亚洲黄色片在线观看| 91女厕偷拍女厕偷拍高清| 亚洲欧洲日韩在线| 99re这里都是精品| 亚洲自拍偷拍图区| 欧美中文字幕一二三区视频| 一区二区三区中文字幕精品精品| 色综合中文字幕国产 | 国产高清不卡一区二区| 日韩免费观看高清完整版| 美女视频第一区二区三区免费观看网站| 欧美日韩国产123区| 日本中文字幕一区二区有限公司| 日韩欧美在线1卡| 国产一区二区三区免费播放| 国产日韩三级在线| 91在线观看视频| 天天综合天天综合色| 精品国产91亚洲一区二区三区婷婷 | 亚洲成a人片综合在线| 7799精品视频| 国产在线观看一区二区| 中文在线一区二区| 日本精品一级二级| 日韩激情在线观看| 国产精品久久夜| 欧美在线观看视频在线| 麻豆精品在线视频| 亚洲欧洲在线观看av| 91精品婷婷国产综合久久性色| 国产精品一区免费视频| 亚洲精品欧美二区三区中文字幕| 91精品国产综合久久久久| 韩国一区二区三区| 亚洲人成网站精品片在线观看| 欧美体内she精高潮| 国产精品夜夜嗨| 一区av在线播放| 欧美国产日本韩| 欧美军同video69gay| 风流少妇一区二区| 性做久久久久久久久| 欧美激情一区二区三区在线| 欧美日韩免费电影| 国产高清久久久| 日本美女一区二区三区视频| 国产精品欧美综合在线| 欧美一区二区三区四区在线观看 | 亚洲国产成人在线| 欧美精品一二三| www.在线欧美| 久久er99热精品一区二区| 亚洲欧美日韩精品久久久久| 日韩欧美二区三区| 欧美性生活久久| 成人精品高清在线| 国产一区二区不卡在线| 婷婷国产在线综合| 免费观看在线综合| 一区二区三区四区激情| 欧美国产97人人爽人人喊| 日韩精品中文字幕一区二区三区| 在线免费观看日本欧美| 99在线精品视频| 成人永久免费视频| 国产精品中文字幕一区二区三区| 日韩精品免费视频人成| 亚洲国产美国国产综合一区二区| 综合久久久久久| 国产精品久久久爽爽爽麻豆色哟哟| 精品久久久久久久久久久久久久久久久 | 91影视在线播放| 成人午夜私人影院| 成人午夜在线视频| 福利视频网站一区二区三区| 国产精品一区二区果冻传媒| 精久久久久久久久久久| 蜜桃视频第一区免费观看| 日韩高清中文字幕一区| 日韩在线一区二区三区| 日韩精品一级中文字幕精品视频免费观看 | 亚洲欧美欧美一区二区三区| 国产欧美视频在线观看| 精品欧美乱码久久久久久 | 在线免费视频一区二区| 色天使色偷偷av一区二区| 欧美视频在线不卡| 欧美私人免费视频| 欧美日韩一区二区欧美激情 | 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 国产性做久久久久久| 欧美激情自拍偷拍| 亚洲欧美日韩人成在线播放| 亚洲一区二区三区四区的 | 欧美日本免费一区二区三区| 欧美中文字幕一区二区三区| 欧美日韩1区2区| 欧美一级一级性生活免费录像| 欧美一级日韩不卡播放免费| 久久伊99综合婷婷久久伊| 久久影音资源网| 亚洲日韩欧美一区二区在线| 一区二区激情视频| 日韩精品高清不卡| 国产一区二区三区在线观看精品| 丁香啪啪综合成人亚洲小说| 色www精品视频在线观看| 欧美日韩亚洲综合| 久久久久久久久久久99999| 国产精品―色哟哟| 亚洲一区av在线| 国产一区在线观看麻豆| 色综合久久久久综合体| 欧美肥妇free| 欧美国产激情二区三区| 亚洲午夜久久久久久久久久久| 美女视频黄久久| 91亚洲国产成人精品一区二区三| 欧美在线一区二区| www一区二区| 亚洲女同ⅹxx女同tv| 免费成人av在线| 91在线你懂得| 精品国产乱码久久久久久夜甘婷婷| 国产精品久久福利| 首页欧美精品中文字幕| 不卡一区在线观看| 日韩一区国产二区欧美三区| 亚洲婷婷在线视频| 日韩av成人高清| 91麻豆成人久久精品二区三区| 精品久久人人做人人爱| 亚洲丝袜另类动漫二区| 国产一区二区女| 337p亚洲精品色噜噜狠狠| 一区二区中文字幕在线| 国产一区二区三区不卡在线观看| 在线观看成人小视频| 久久在线免费观看| 日本成人在线不卡视频| 91视频一区二区三区| 久久久精品综合| 日韩电影在线一区二区三区| 色呦呦一区二区三区| 国产日韩欧美高清| 国产一区不卡视频| 欧美一区二区在线视频| 亚洲一区二区三区自拍| 91视频免费观看| 中文字幕的久久| 激情综合一区二区三区| 欧美一区二区三区免费视频| 亚洲黄色免费网站| 91免费观看视频在线| 国产精品你懂的| 国产一区二区在线视频| 日韩欧美中文字幕公布| 午夜av一区二区三区| 欧美日本国产视频| 亚洲福利一二三区| 欧美日韩国产天堂| 午夜久久电影网| 欧美日韩综合不卡| 亚洲国产成人av好男人在线观看| 在线一区二区观看|