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

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

?? nsga_2.m

?? NSGA-II多目標優化的matlab代碼
?? M
字號:
function nsga_2()
%% Main Function
% Main program to run the NSGA-II MOEA.
% Read the corresponding documentation to learn more about multiobjective
% optimization using evolutionary algorithms.
% initialize_variables has two arguments; First being the population size
% and the second the problem number. '1' corresponds to MOP1 and '2'
% corresponds to MOP2.

%% Initialize the variables
% Declare the variables and initialize their values
% pop - population
% gen - generations
% pro - problem number

pop = 20;
gen = 500;
pro = 1;

switch pro
    case 1
        % M is the number of objectives.
        M = 2;
        % V is the number of decision variables. In this case it is
        % difficult to visualize the decision variables space while the
        % objective space is just two dimensional.
        V = 6;
    case 2
        M = 3;
        V = 12;
end

% Initialize the population
chromosome = initialize_variables(pop,pro);


%% Sort the initialized population
% Sort the population using non-domination-sort. This returns two columns
% for each individual which are the rank and the crowding distance
% corresponding to their position in the front they belong. 
chromosome = non_domination_sort_mod(chromosome,pro);

%% Start the evolution process

% The following are performed in each generation
% Select the parents
% Perfrom crossover and Mutation operator
% Perform Selection

for i = 1 : gen
    % Select the parents
    % Parents are selected for reproduction to generate offspring. The
    % original NSGA-II uses a binary tournament selection based on the
    % crowded-comparision operator. The arguments are 
    % pool - size of the mating pool. It is common to have this to be half the
    %        population size.
    % tour - Tournament size. Original NSGA-II uses a binary tournament
    %        selection, but to see the effect of tournament size this is kept
    %        arbitary, to be choosen by the user.
    pool = round(pop/2);
    tour = 2;
    parent_chromosome = tournament_selection(chromosome,pool,tour);

    % Perfrom crossover and Mutation operator
    % The original NSGA-II algorithm uses Simulated Binary Crossover (SBX) and
    % Polynomial crossover. Crossover probability pc = 0.9 and mutation
    % probability is pm = 1/n, where n is the number of decision variables.
    % Both real-coded GA and binary-coded GA are implemented in the original
    % algorithm, while in this program only the real-coded GA is considered.
    % The distribution indeices for crossover and mutation operators as mu = 20
    % and mum = 20 respectively.
    mu = 20;
    mum = 20;
    offspring_chromosome = genetic_operator(parent_chromosome,pro,mu,mum);

    % Intermediate population
    % Intermediate population is the combined population of parents and
    % offsprings of the current generation. The population size is almost 1 and
    % half times the initial population.
    [main_pop,temp] = size(chromosome);
    [offspring_pop,temp] = size(offspring_chromosome);
    intermediate_chromosome(1:main_pop,:) = chromosome;
    intermediate_chromosome(main_pop + 1 : main_pop + offspring_pop,1 : M+V) = ...
        offspring_chromosome;

    % Non-domination-sort of intermediate population
    % The intermediate population is sorted again based on non-domination sort
    % before the replacement operator is performed on the intermediate
    % population.
    intermediate_chromosome = ...
        non_domination_sort_mod(intermediate_chromosome,pro);
    % Perform Selection
    % Once the intermediate population is sorted only the best solution is
    % selected based on it rank and crowding distance. Each front is filled in
    % ascending order until the addition of population size is reached. The
    % last front is included in the population based on the individuals with
    % least crowding distance
    chromosome = replace_chromosome(intermediate_chromosome,pro,pop);
    if ~mod(i,10)
        fprintf('%d\n',i);
    end
end

%% Result
% Save the result in ASCII text format.
save solution.txt chromosome -ASCII

%% Visualize
% The following is used to visualize the result for the given problem.
switch pro
    case 1
        plot(chromosome(:,V + 1),chromosome(:,V + 2),'*');
        title('MOP1 using NSGA-II');
        xlabel('f(x_1)');
        ylabel('f(x_2)');
    case 2
        plot3(chromosome(:,V + 1),chromosome(:,V + 2),chromosome(:,V + 3),'*');
        title('MOP2 using NSGA-II');
        xlabel('f(x_1)');
        ylabel('f(x_2)');
        zlabel('f(x_3)');
end       

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩国产在线观看| 欧美亚洲国产一卡| 麻豆91精品视频| 亚洲成人在线观看视频| 伊人色综合久久天天人手人婷| 欧美激情一区二区三区不卡| 亚洲精品一区二区三区影院| 欧美一级在线观看| 日韩欧美国产麻豆| 日韩欧美在线一区二区三区| 日韩欧美一卡二卡| 欧美r级电影在线观看| 欧美电影免费观看高清完整版在| 日韩视频免费观看高清完整版| 在线电影院国产精品| 欧美日本一道本| 欧美一区二区国产| 欧美电影免费观看高清完整版在线观看| 日韩亚洲欧美高清| 日韩一区国产二区欧美三区| 精品福利视频一区二区三区| 国产日韩综合av| 1024亚洲合集| 偷拍日韩校园综合在线| 麻豆91精品视频| 国产揄拍国内精品对白| 成人爱爱电影网址| 欧美网站大全在线观看| 欧美色倩网站大全免费| 欧美xxxxx牲另类人与| 中文在线一区二区| 亚洲精选在线视频| 九九**精品视频免费播放| 国产成人精品一区二区三区四区 | 美腿丝袜在线亚洲一区| 久久99蜜桃精品| 99久久夜色精品国产网站| 在线观看中文字幕不卡| 91传媒视频在线播放| 久久综合久久鬼色中文字| 国产精品久久久久久久久晋中| 久久中文字幕电影| 久久久亚洲精品一区二区三区| 91黄色免费观看| 乱一区二区av| 日韩电影在线免费| 亚洲女爱视频在线| 日韩精品一区二区三区在线| 欧美私模裸体表演在线观看| 91视频观看免费| 国产一区二区三区免费观看| 免费在线一区观看| 日本网站在线观看一区二区三区| 国产在线精品一区二区夜色 | 在线精品视频一区二区三四| 欧美精品免费视频| 欧美大片一区二区| 欧美高清在线视频| 亚洲乱码日产精品bd| 亚洲成av人影院| 日产国产高清一区二区三区 | av资源站一区| 在线视频观看一区| 日韩精品一区二区三区swag| 国产精品久久久久久户外露出| 亚洲色图欧洲色图婷婷| 婷婷六月综合网| 国产精品影视天天线| 91麻豆高清视频| 欧美刺激午夜性久久久久久久| 国产精品视频免费| 午夜电影网亚洲视频| 国产1区2区3区精品美女| 91蜜桃网址入口| 欧美一区国产二区| 亚洲欧美一区二区三区久本道91| 蜜桃视频在线观看一区二区| 成人精品小蝌蚪| 777午夜精品视频在线播放| 久久婷婷国产综合精品青草| 亚洲超碰97人人做人人爱| 国产精品18久久久久久久久久久久 | 日韩片之四级片| 久久久久久久久久久电影| 一区二区三区加勒比av| 国产一区二区成人久久免费影院| 91丨九色porny丨蝌蚪| 精品国产乱码91久久久久久网站| 亚洲精品写真福利| 成人午夜在线播放| 久久先锋影音av| 男女男精品网站| 欧美视频在线一区| 亚洲免费三区一区二区| 丰满少妇久久久久久久| 欧美一卡2卡三卡4卡5免费| 亚洲伊人色欲综合网| 成人白浆超碰人人人人| 欧美www视频| 日本美女一区二区三区视频| 在线视频你懂得一区| 亚洲男人电影天堂| 99精品久久只有精品| 欧美国产禁国产网站cc| 国产成人福利片| 欧美久久久一区| 久久久夜色精品亚洲| 国产成人av电影免费在线观看| 久久综合久色欧美综合狠狠| 免费欧美高清视频| 日韩一级免费观看| 麻豆精品在线观看| 久久综合色播五月| 国产成人精品三级麻豆| 国产精品丝袜在线| 成人黄页在线观看| 亚洲六月丁香色婷婷综合久久 | 日韩一区二区免费电影| 午夜精品免费在线观看| 欧美丰满美乳xxx高潮www| 日韩精品久久久久久| 狠狠色综合色综合网络| 国产成人av自拍| 亚洲成在人线在线播放| 国产一区二区三区在线观看免费视频| 日韩免费观看高清完整版| 国产在线精品一区二区| 中文字幕永久在线不卡| 在线观看中文字幕不卡| 日本网站在线观看一区二区三区| 久久综合999| 不卡在线视频中文字幕| 亚洲激情图片一区| 欧美一区午夜视频在线观看| 国产一区欧美日韩| 久久蜜桃av一区二区天堂| 国产老肥熟一区二区三区| 18成人在线观看| 日韩欧美激情四射| 大陆成人av片| 国产精品伦一区| 99国产欧美久久久精品| 偷拍日韩校园综合在线| 在线欧美日韩国产| 国产乱色国产精品免费视频| 国产精品女同互慰在线看| 国产九色精品成人porny | 日韩电影免费在线观看网站| 91网站最新网址| 亚洲一区二区三区四区中文字幕| 欧美优质美女网站| 日本网站在线观看一区二区三区 | 久久 天天综合| 亚洲欧洲99久久| 欧美一三区三区四区免费在线看 | 亚洲精品欧美激情| 日韩欧美视频一区| 91老师片黄在线观看| 韩国精品主播一区二区在线观看| 亚洲精选视频在线| 中文字幕第一区二区| 欧美日本一区二区在线观看| 国产乱码精品一区二区三区av | 中文字幕在线不卡| 91精品国产91综合久久蜜臀| aaa欧美大片| 国产毛片精品视频| 另类调教123区| 一区二区三区精品在线| 久久精品视频网| 国产成人免费av在线| 一区精品在线播放| 久久看人人爽人人| 日韩片之四级片| 制服丝袜亚洲色图| 欧美在线免费观看视频| 亚洲成人黄色影院| 日本一二三四高清不卡| 欧美日韩成人综合在线一区二区| 舔着乳尖日韩一区| 国产精品三级视频| 精品国精品国产尤物美女| 99久久精品国产导航| 老司机午夜精品| 一区二区三区四区中文字幕| 久久久久一区二区三区四区| 91福利在线导航| 国产精品美女一区二区在线观看| 亚洲精品在线观看网站| 国产乱码一区二区三区| 国产一区二区在线观看视频| 国产一区二区视频在线| 国产一区二区三区在线观看精品 | 欧美日韩一区高清| 日本不卡一区二区| 亚洲一区免费在线观看| 国产精品美女久久福利网站| 亚洲三级在线播放| 精品国产免费久久| 精品少妇一区二区三区在线播放|