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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? deopt.m

?? 微分進(jìn)化算法@matlab 適用于無(wú)約束連續(xù)變量的全局優(yōu)化
?? M
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 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

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品国产乱码久久久久久浪潮| 成人app网站| 91精品国产高清一区二区三区 | 91热门视频在线观看| 亚洲色图视频网| 欧美色网一区二区| 青青草成人在线观看| 精品毛片乱码1区2区3区 | 9人人澡人人爽人人精品| 中文字幕中文字幕中文字幕亚洲无线| 成人性生交大片免费看在线播放| 亚洲丝袜美腿综合| 91精品国产综合久久精品性色| 国内精品国产成人| 中文字幕一区二区三区蜜月| 色综合久久天天| 老汉av免费一区二区三区| 国产校园另类小说区| 日本久久电影网| 久久超碰97中文字幕| 亚洲国产成人在线| 欧美日韩国产在线观看| 国产真实精品久久二三区| 亚洲欧美另类小说| 欧美一区二区女人| jlzzjlzz欧美大全| 日韩黄色免费电影| 国产午夜精品一区二区三区嫩草| 91精品办公室少妇高潮对白| 精品一区二区三区视频| 亚洲品质自拍视频| 精品不卡在线视频| 在线观看精品一区| 国产精品一区二区久激情瑜伽| 亚洲综合另类小说| 日本一二三不卡| 日韩欧美中文字幕精品| 91麻豆精品秘密| 国精产品一区一区三区mba桃花| 亚洲久本草在线中文字幕| 欧美变态tickling挠脚心| 色综合久久久网| 国产精品一区二区视频| 亚洲va中文字幕| 国产精品久久久久久久久快鸭 | 国产精品三级av| 91精品国产色综合久久| 91蜜桃传媒精品久久久一区二区| 国产另类ts人妖一区二区| 亚洲成a天堂v人片| 亚洲精品老司机| 中文字幕 久热精品 视频在线| 欧美不卡一区二区三区| 欧美精品在线观看播放| 在线视频欧美区| 91小宝寻花一区二区三区| 国产美女视频一区| 久久超级碰视频| 免费一区二区视频| 亚欧色一区w666天堂| 亚洲精品国产a| 一区二区中文视频| 国产精品丝袜黑色高跟| 久久婷婷国产综合国色天香| 欧美成人在线直播| 欧美成人伊人久久综合网| 欧美一区二区三区四区久久| 欧美男男青年gay1069videost| 在线观看亚洲a| 欧美怡红院视频| 欧洲生活片亚洲生活在线观看| 91麻豆成人久久精品二区三区| 99在线精品观看| 色综合久久久久网| 色av一区二区| 欧美这里有精品| 欧美日韩一区中文字幕| 欧美性感一类影片在线播放| 91精彩视频在线观看| 欧美日韩一区二区欧美激情| 欧美视频在线观看一区| 色欲综合视频天天天| 欧美在线视频不卡| 欧美日韩国产首页| 欧美久久婷婷综合色| 日韩一区二区电影| 久久影院午夜论| 国产精品素人一区二区| 亚洲欧美日韩国产一区二区三区| 亚洲男女毛片无遮挡| 亚洲一区av在线| 蜜臀久久99精品久久久久宅男| 免费高清视频精品| 国产精品一色哟哟哟| youjizz久久| 欧美日韩中文另类| 91精品国产全国免费观看| 久久尤物电影视频在线观看| 国产女人aaa级久久久级| 国产精品成人一区二区艾草| 一区二区三区精品视频在线| 日韩国产一区二| 国产成人精品免费网站| 色天使色偷偷av一区二区| 欧美日韩在线亚洲一区蜜芽| 精品捆绑美女sm三区| 国产精品久久综合| 日韩成人一区二区| 成人精品一区二区三区中文字幕| 日本精品视频一区二区| 日韩一二三区视频| 国产精品日日摸夜夜摸av| 亚洲.国产.中文慕字在线| 国产综合色精品一区二区三区| 91丨九色丨黑人外教| 欧美老人xxxx18| 26uuu国产电影一区二区| 亚洲精品自拍动漫在线| 精一区二区三区| 日本高清无吗v一区| 欧美不卡视频一区| 一区二区三区蜜桃网| 久久99国产精品免费网站| 色天天综合久久久久综合片| 2020国产成人综合网| 亚洲综合在线第一页| 国产成人av网站| 欧美一级国产精品| 亚洲一区在线看| 成人高清在线视频| 精品国产成人系列| 亚洲.国产.中文慕字在线| 99久久精品99国产精品| 欧美大片一区二区| 亚洲va中文字幕| 91视频www| 国产欧美日韩卡一| 国产综合久久久久影院| 欧美日本一区二区在线观看| 最新日韩在线视频| 国产成人亚洲精品狼色在线| 3d成人动漫网站| 亚洲一区在线观看视频| 成人99免费视频| 久久久精品人体av艺术| 蜜臀av一区二区三区| 欧美日韩一区二区不卡| 亚洲欧美另类久久久精品| 国产成人丝袜美腿| 久久久99久久| 精品一区二区三区视频 | 欧美精品一区二| 日韩avvvv在线播放| 欧美中文字幕一二三区视频| 1024成人网色www| 东方欧美亚洲色图在线| 久久久亚洲综合| 狠狠色2019综合网| 精品国产不卡一区二区三区| 麻豆成人91精品二区三区| 日韩视频在线永久播放| 日韩av二区在线播放| 91.麻豆视频| 日本va欧美va精品发布| 欧美福利视频导航| 日韩成人dvd| 日韩欧美激情四射| 久久国产综合精品| 精品久久五月天| 激情六月婷婷综合| 久久你懂得1024| 成人黄色a**站在线观看| 亚洲国产精品成人综合色在线婷婷| 国产精品亚洲专一区二区三区| 久久综合狠狠综合久久综合88| 国产精品 欧美精品| 国产精品国产自产拍在线| 99久久er热在这里只有精品66| 中文字幕日韩一区| 欧美熟乱第一页| 日韩av一区二区三区四区| 日韩精品一区二区三区视频| 久久99最新地址| 欧美国产日本韩| 色天使久久综合网天天| 亚洲国产精品一区二区久久恐怖片 | 激情文学综合网| 久久久久久久性| 91亚洲精品乱码久久久久久蜜桃| 亚洲精选视频在线| 欧美精品一卡二卡| 国产乱码精品一区二区三| 亚洲欧洲av色图| 91精品国产综合久久香蕉的特点| 蜜桃一区二区三区四区| 久久九九久久九九| 欧洲av一区二区嗯嗯嗯啊| 六月丁香婷婷久久| 亚洲欧美一区二区三区久本道91| 欧美日韩精品一二三区|