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

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

?? deopt.m

?? 一些pso算法的應用 解決旅行商問題
?? M
?? 第 1 頁 / 共 2 頁
字號:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Function:         [FVr_bestmem,S_bestval,I_nfeval] = deopt(fname,S_struct)
%                    
% Author:           Rainer Storn, Ken Price, Arnold Neumaier, Jim Van Zandt
% Description:      Minimization of a user-supplied function with respect to x(1:I_D),
%                   using the differential evolution (DE) algorithm.
%                   DE works best if [FVr_minbound,FVr_maxbound] covers the region where the
%                   global minimum is expected. DE is also somewhat sensitive to
%                   the choice of the stepsize F_weight. A good initial guess is to
%                   choose F_weight from interval [0.5, 1], e.g. 0.8. F_CR, the crossover
%                   probability constant from interval [0, 1] helps to maintain
%                   the diversity of the population but should be close to 1 for most. 
%                   practical cases. Only separable problems do better with CR close to 0.
%                   If the parameters are correlated, high values of F_CR work better.
%                   The reverse is true for no correlation.
%
%                   The number of population members I_NP is also not very critical. A
%                   good initial guess is 10*I_D. Depending on the difficulty of the
%                   problem I_NP can be lower than 10*I_D or must be higher than 10*I_D
%                   to achieve convergence.
%
%                   deopt is a vectorized variant of DE which, however, has a
%                   property which differs from the original version of DE:
%                   The random selection of vectors is performed by shuffling the
%                   population array. Hence a certain vector can't be chosen twice
%                   in the same term of the perturbation expression.
%                   Due to the vectorized expressions deopt executes fairly fast
%                   in MATLAB's interpreter environment.
%
% Parameters:       fname        (I)    String naming a function f(x,y) to minimize.
%                   S_struct     (I)    Problem data vector (must remain fixed during the
%                                       minimization). For details see Rundeopt.m.
%                   ---------members of S_struct----------------------------------------------------
%                   F_VTR        (I)    "Value To Reach". deopt will stop its minimization
%                                       if either the maximum number of iterations "I_itermax"
%                                       is reached or the best parameter vector "FVr_bestmem" 
%                                       has found a value f(FVr_bestmem,y) <= F_VTR.
%                   FVr_minbound (I)    Vector of lower bounds FVr_minbound(1) ... FVr_minbound(I_D)
%                                       of initial population.
%                                       *** note: these are not bound constraints!! ***
%                   FVr_maxbound (I)    Vector of upper bounds FVr_maxbound(1) ... FVr_maxbound(I_D)
%                                       of initial population.
%                   I_D          (I)    Number of parameters of the objective function. 
%                   I_NP         (I)    Number of population members.
%                   I_itermax    (I)    Maximum number of iterations (generations).
%                   F_weight     (I)    DE-stepsize F_weight from interval [0, 2].
%                   F_CR         (I)    Crossover probability constant from interval [0, 1].
%                   I_strategy   (I)    1 --> DE/rand/1             
%                                       2 --> DE/local-to-best/1             
%                                       3 --> DE/best/1 with jitter  
%                                       4 --> DE/rand/1 with per-vector-dither           
%                                       5 --> DE/rand/1 with per-generation-dither
%                                       6 --> DE/rand/1 either-or-algorithm
%                   I_refresh     (I)   Intermediate output will be produced after "I_refresh"
%                                       iterations. No intermediate output will be produced
%                                       if I_refresh is < 1.
%                                       
% Return value:     FVr_bestmem      (O)    Best parameter vector.
%                   S_bestval.I_nc   (O)    Number of constraints
%                   S_bestval.FVr_ca (O)    Constraint values. 0 means the constraints
%                                           are met. Values > 0 measure the distance
%                                           to a particular constraint.
%                   S_bestval.I_no   (O)    Number of objectives.
%                   S_bestval.FVr_oa (O)    Objective function values.
%                   I_nfeval         (O)    Number of function evaluations.
%
% Note:
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 1, or (at your option)
% any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
% GNU General Public License for more details. A copy of the GNU 
% General Public License can be obtained from the 
% Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function [FVr_bestmem,S_bestval,I_nfeval] = deopt(fname,S_struct)

%-----This is just for notational convenience and to keep the code uncluttered.--------
I_NP         = S_struct.I_NP;
F_weight     = S_struct.F_weight;
F_CR         = S_struct.F_CR;
I_D          = S_struct.I_D;
FVr_minbound = S_struct.FVr_minbound;
FVr_maxbound = S_struct.FVr_maxbound;
I_bnd_constr = S_struct.I_bnd_constr;
I_itermax    = S_struct.I_itermax;
F_VTR        = S_struct.F_VTR;
I_strategy   = S_struct.I_strategy;
I_refresh    = S_struct.I_refresh;
I_plotting   = S_struct.I_plotting;

%-----Check input variables---------------------------------------------
if (I_NP < 5)
   I_NP=5;
   fprintf(1,' I_NP increased to minimal value 5\n');
end
if ((F_CR < 0) | (F_CR > 1))
   F_CR=0.5;
   fprintf(1,'F_CR should be from interval [0,1]; set to default value 0.5\n');
end
if (I_itermax <= 0)
   I_itermax = 200;
   fprintf(1,'I_itermax should be > 0; set to default value 200\n');
end
I_refresh = floor(I_refresh);

%-----Initialize population and some arrays-------------------------------
FM_pop = zeros(I_NP,I_D); %initialize FM_pop to gain speed

%----FM_pop is a matrix of size I_NPx(I_D+1). It will be initialized------
%----with random values between the min and max values of the-------------
%----parameters-----------------------------------------------------------

for k=1:I_NP
   FM_pop(k,:) = FVr_minbound + rand(1,I_D).*(FVr_maxbound - FVr_minbound);
end

FM_popold     = zeros(size(FM_pop));  % toggle population
FVr_bestmem   = zeros(1,I_D);% best population member ever
FVr_bestmemit = zeros(1,I_D);% best population member in iteration
I_nfeval      = 0;                    % number of function evaluations

%------Evaluate the best member after initialization----------------------

I_best_index   = 1;                   % start with first population member
S_val(1)       = feval(fname,FM_pop(I_best_index,:),S_struct);

S_bestval = S_val(1);                 % best objective function value so far
I_nfeval  = I_nfeval + 1;
for k=2:I_NP                          % check the remaining members
  S_val(k)  = feval(fname,FM_pop(k,:),S_struct);
  I_nfeval  = I_nfeval + 1;
  if (left_win(S_val(k),S_bestval) == 1)
     I_best_index   = k;              % save its location
     S_bestval      = S_val(k);
  end   
end
FVr_bestmemit = FM_pop(I_best_index,:); % best member of current iteration
S_bestvalit   = S_bestval;              % best value of current iteration

FVr_bestmem = FVr_bestmemit;            % best member ever

%------DE-Minimization---------------------------------------------
%------FM_popold is the population which has to compete. It is--------
%------static through one iteration. FM_pop is the newly--------------
%------emerging population.----------------------------------------

FM_pm1   = zeros(I_NP,I_D);   % initialize population matrix 1
FM_pm2   = zeros(I_NP,I_D);   % initialize population matrix 2

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
高清免费成人av| av动漫一区二区| 亚洲欧美偷拍三级| 日韩欧美你懂的| 在线观看国产精品网站| 成人久久久精品乱码一区二区三区| 亚洲最色的网站| 国产精品国产成人国产三级| 日韩欧美在线观看一区二区三区| 色综合天天综合在线视频| 国产伦精品一区二区三区免费迷 | 91免费视频大全| 久久国产欧美日韩精品| 一区二区三区自拍| 国产精品久久三区| 久久精品一区二区| 欧美精品一区二区三区在线| 欧美日韩国产区一| 欧美色图免费看| 91理论电影在线观看| 国产成人av电影免费在线观看| 蜜臀久久久99精品久久久久久| 亚洲国产精品综合小说图片区| 中文字幕中文乱码欧美一区二区| 国产亚洲综合在线| 久久新电视剧免费观看| 欧美不卡视频一区| 精品国产一区二区亚洲人成毛片| 在线播放中文字幕一区| 欧美精品 国产精品| 欧美日韩国产首页| 欧美日韩午夜在线视频| 欧美三级电影在线看| 色94色欧美sute亚洲线路一久| 99免费精品在线| 99综合影院在线| 日本精品裸体写真集在线观看| 91精品国产综合久久精品app| 欧美性一二三区| 欧美伦理视频网站| 日韩午夜av电影| 欧美大片一区二区三区| 精品国产免费一区二区三区香蕉| 欧美xxxxxxxx| 精品av综合导航| 国产婷婷色一区二区三区四区 | 国产精品初高中害羞小美女文| 国产日韩综合av| www成人在线观看| 欧美激情在线观看视频免费| 国产精品毛片大码女人| 亚洲欧美在线aaa| 一区二区三区四区中文字幕| 亚洲一区二区三区四区在线| 亚洲午夜成aⅴ人片| 免费欧美日韩国产三级电影| 国产河南妇女毛片精品久久久 | 欧美电影免费观看高清完整版在 | 欧美日韩在线观看一区二区| 欧美一卡2卡三卡4卡5免费| 日韩片之四级片| 中文字幕免费不卡在线| 亚洲人妖av一区二区| 午夜一区二区三区视频| 激情五月婷婷综合网| 成人黄页毛片网站| 欧美性猛片xxxx免费看久爱| 欧美一区二区三区免费视频| 精品福利在线导航| 亚洲视频一区二区在线观看| 亚洲一二三级电影| 国产伦精品一区二区三区视频青涩| av资源网一区| 日韩欧美中文字幕精品| 亚洲欧洲成人精品av97| 日韩国产精品久久| 成人app在线观看| 91精品国产欧美日韩| 欧美国产一区二区| 亚洲18色成人| 北岛玲一区二区三区四区| 欧美日韩国产经典色站一区二区三区| 久久综合国产精品| 亚洲最新视频在线观看| 国产高清亚洲一区| 在线播放中文一区| 亚洲欧洲日韩女同| 国产一区中文字幕| 欧美视频你懂的| 欧美va亚洲va在线观看蝴蝶网| 中文字幕一区日韩精品欧美| 麻豆成人av在线| 欧美综合一区二区三区| 中文字幕乱码亚洲精品一区| 婷婷久久综合九色综合绿巨人| 国产福利一区二区| 日韩欧美一区电影| 亚洲高清久久久| 99国产精品视频免费观看| 精品国产乱子伦一区| 亚洲国产日韩精品| 91蜜桃在线免费视频| 欧美xxxxxxxx| 日韩综合小视频| 91久久香蕉国产日韩欧美9色| 久久综合色播五月| 国产精品538一区二区在线| 在线成人免费视频| 亚洲无人区一区| 色综合久久88色综合天天6| 久久久久久免费| 精久久久久久久久久久| 欧美久久一二三四区| 一区二区三区在线观看国产| 成人国产电影网| 欧美激情一区不卡| 国产成人精品亚洲777人妖| 精品国产伦一区二区三区观看体验| 天天综合日日夜夜精品| 欧美影视一区在线| 亚洲自拍偷拍图区| 色婷婷综合久色| 亚洲欧美日韩国产中文在线| 99久久伊人精品| 中文字幕av资源一区| 成人丝袜视频网| 欧美国产在线观看| av激情成人网| 亚洲视频精选在线| 色婷婷综合久久久中文字幕| 亚洲色图在线播放| 色菇凉天天综合网| 亚洲在线观看免费视频| 欧美色综合影院| 午夜久久久久久| 91精品国产91综合久久蜜臀| 五月天视频一区| 欧美精品色综合| 免费一级欧美片在线观看| 91精品国产色综合久久久蜜香臀| 免费人成精品欧美精品| 精品对白一区国产伦| 韩国一区二区在线观看| 久久精品一区二区三区不卡牛牛 | 亚洲v精品v日韩v欧美v专区| 欧美一区日韩一区| 韩国av一区二区三区在线观看| 亚洲精品一区在线观看| 国产精品一区三区| 国产精品色噜噜| 欧美三级中文字| 男女激情视频一区| 日本一二三不卡| 色欧美乱欧美15图片| 日韩中文字幕不卡| 久久久99久久精品欧美| 成人免费va视频| 亚洲成人免费看| 久久综合999| 91女厕偷拍女厕偷拍高清| 亚洲自拍另类综合| 日韩视频免费观看高清完整版 | 欧美一级夜夜爽| 国产91精品免费| 亚洲自拍偷拍欧美| 精品国产乱码久久久久久老虎 | 国产欧美一区二区精品性| 99久久99久久久精品齐齐| 亚洲国产视频网站| 久久久久国产一区二区三区四区 | 精品系列免费在线观看| 亚洲国产精品精华液2区45| 欧美在线观看一二区| 免费成人小视频| 亚洲欧洲日产国产综合网| 欧美美女一区二区在线观看| 国产露脸91国语对白| 一级精品视频在线观看宜春院| 日韩一级精品视频在线观看| 99视频国产精品| 99在线精品观看| 天涯成人国产亚洲精品一区av| 精品对白一区国产伦| 91视频国产资源| 久久99精品久久久| 亚洲免费观看高清完整版在线| 日韩午夜小视频| 欧亚洲嫩模精品一区三区| 国产成人av电影在线观看| 亚洲国产精品久久不卡毛片| 日韩一区二区三区电影在线观看 | 成人国产精品免费| 老鸭窝一区二区久久精品| 一区二区三区蜜桃| 国产日产欧美一区二区三区 | 久久一区二区三区四区| 欧美日韩国产综合草草| 色综合久久久久| 国产成人福利片| 激情偷乱视频一区二区三区|