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

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

?? imperialistcompetitvealgorithm_globaloptimizationstrategy.m

?? Colonial Competitive Algorithm
?? M
字號:
%% Imperialist Competitive Algorithm (CCA);

% A Socio Politically Inspired Optimization Strategy.
% 2008

% To use this code, you should only prepare your cost function and apply
% CCA to it. Please read the guide available in my home page. 

% Special thank is for my friend Mostapha Kalami Heris whos breadth wision toward
% artificial intelligence and his programming skils have always been a
% sourse of inspiration for me. He helped me a lot to prepare this code.
% His email: sm.kalami@gmail.com

% ----------------------------------------
% Esmaeil Atashpaz Gargari
% Control and Intelligent Processing Center of Excellence,
% ECE school of University of Tehran, Iran
% Cellphone: (+98)-932-9011620
% Email: e.atashpaz@ece.ut.ac.ir & atashpaz.gargari@gmail.com
% Home Page: http://www.atashpaz.com

close all
clc; clear
%% Problem Statement
ProblemParams.CostFuncName = 'BenchmarkFunction';    % You should state the name of your cost function here.
ProblemParams.CostFuncExtraParams = 6;
ProblemParams.NPar = 30;                           % Number of optimization variables of your objective function. "NPar" is the dimention of the optimization problem.
ProblemParams.VarMin = -6;                         % Lower limit of the optimization parameters. You can state the limit in two ways. 1)   2)
ProblemParams.VarMax = 6;                       % Lower limit of the optimization parameters. You can state the limit in two ways. 1)   2)

% Modifying the size of VarMin and VarMax to have a general form
if numel(ProblemParams.VarMin)==1
    ProblemParams.VarMin=repmat(ProblemParams.VarMin,1,ProblemParams.NPar);
    ProblemParams.VarMax=repmat(ProblemParams.VarMax,1,ProblemParams.NPar);
end

ProblemParams.SearchSpaceSize = ProblemParams.VarMax - ProblemParams.VarMin;

%% Algorithmic Parameter Setting
AlgorithmParams.NumOfCountries = 200;               % Number of initial countries.
AlgorithmParams.NumOfInitialImperialists = 8;      % Number of Initial Imperialists.
AlgorithmParams.NumOfAllColonies = AlgorithmParams.NumOfCountries - AlgorithmParams.NumOfInitialImperialists;
AlgorithmParams.NumOfDecades = 2000;
AlgorithmParams.RevolutionRate = 0.3;               % Revolution is the process in which the socio-political characteristics of a country change suddenly.
AlgorithmParams.AssimilationCoefficient = 2;        % In the original paper assimilation coefficient is shown by "beta".
AlgorithmParams.AssimilationAngleCoefficient = .5;  % In the original paper assimilation angle coefficient is shown by "gama".
AlgorithmParams.Zeta = 0.02;                        % Total Cost of Empire = Cost of Imperialist + Zeta * mean(Cost of All Colonies);
AlgorithmParams.DampRatio = 0.99;
AlgorithmParams.StopIfJustOneEmpire = false;         % Use "true" to stop the algorithm when just one empire is remaining. Use "false" to continue the algorithm.
AlgorithmParams.UnitingThreshold = 0.02;            % The percent of Search Space Size, which enables the uniting process of two Empires.

zarib = 1.05;                       % **** Zarib is used to prevent the weakest impire to have a probability equal to zero
alpha = 0.1;                        % **** alpha is a number in the interval of [0 1] but alpha<<1. alpha denotes the importance of mean minimum compare to the global mimimum.

%% Display Setting
DisplayParams.PlotEmpires = false;    % "true" to plot. "false" to cancel ploting.
if DisplayParams.PlotEmpires
    DisplayParams.EmpiresFigureHandle = figure('Name','Plot of Empires','NumberTitle','off');
    DisplayParams.EmpiresAxisHandle = axes;
end

DisplayParams.PlotCost = true;    % "true" to plot. "false"
if DisplayParams.PlotCost
    DisplayParams.CostFigureHandle = figure('Name','Plot of Minimum and Mean Costs','NumberTitle','off');
    DisplayParams.CostAxisHandle = axes; 
end

ColorMatrix = [1   0   0  ; 0 1   0    ; 0   0 1    ; 1   1   0  ; 1   0 1    ; 0 1   1    ; 1 1 1       ;
               0.5 0.5 0.5; 0 0.5 0.5  ; 0.5 0 0.5  ; 0.5 0.5 0  ; 0.5 0 0    ; 0 0.5 0    ; 0 0 0.5     ;
               1   0.5 1  ; 0.1*[1 1 1]; 0.2*[1 1 1]; 0.3*[1 1 1]; 0.4*[1 1 1]; 0.5*[1 1 1]; 0.6*[1 1 1]];
DisplayParams.ColorMatrix = [ColorMatrix ; sqrt(ColorMatrix)];

DisplayParams.AxisMargin.Min = ProblemParams.VarMin;
DisplayParams.AxisMargin.Max = ProblemParams.VarMax;

%% Creation of Initial Empires
InitialCountries = GenerateNewCountry(AlgorithmParams.NumOfCountries , ProblemParams);

% Calculates the cost of each country. The less the cost is, the more is the power.
if isempty(ProblemParams.CostFuncExtraParams)
    InitialCost = feval(ProblemParams.CostFuncName,InitialCountries);    
else
    InitialCost = feval(ProblemParams.CostFuncName,InitialCountries,ProblemParams.CostFuncExtraParams);
end
[InitialCost,SortInd] = sort(InitialCost);                          % Sort the cost in assending order. The best countries will be in higher places
InitialCountries = InitialCountries(SortInd,:);                     % Sort the population with respect to their cost.

Empires = CreateInitialEmpires(InitialCountries,InitialCost,AlgorithmParams, ProblemParams);

%% Main Loop
MinimumCost = repmat(nan,AlgorithmParams.NumOfDecades,1);
MeanCost = repmat(nan,AlgorithmParams.NumOfDecades,1);

if DisplayParams.PlotCost
    axes(DisplayParams.CostAxisHandle);
    if any(findall(0)==DisplayParams.CostFigureHandle)
        h_MinCostPlot=plot(MinimumCost,'r','LineWidth',1.5,'YDataSource','MinimumCost');
        hold on;
        h_MeanCostPlot=plot(MeanCost,'k:','LineWidth',1.5,'YDataSource','MeanCost');
        hold off;
        pause(0.05);
    end
end

for Decade = 1:AlgorithmParams.NumOfDecades
    AlgorithmParams.RevolutionRate = AlgorithmParams.DampRatio * AlgorithmParams.RevolutionRate;

    Remained = AlgorithmParams.NumOfDecades - Decade
    for ii = 1:numel(Empires)
        %% Assimilation;  Movement of Colonies Toward Imperialists (Assimilation Policy)
        Empires(ii) = AssimilateColonies(Empires(ii),AlgorithmParams,ProblemParams);

        %% Revolution;  A Sudden Change in the Socio-Political Characteristics
        Empires(ii) = RevolveColonies(Empires(ii),AlgorithmParams,ProblemParams);
        
        %% New Cost Evaluation
        if isempty(ProblemParams.CostFuncExtraParams)
            Empires(ii).ColoniesCost = feval(ProblemParams.CostFuncName,Empires(ii).ColoniesPosition);
        else
            Empires(ii).ColoniesCost = feval(ProblemParams.CostFuncName,Empires(ii).ColoniesPosition,ProblemParams.CostFuncExtraParams);
        end

        %% Empire Possession  (****** Power Possession, Empire Possession)
        Empires(ii) = PossesEmpire(Empires(ii));
        
        %% Computation of Total Cost for Empires
        Empires(ii).TotalCost = Empires(ii).ImperialistCost + AlgorithmParams.Zeta * mean(Empires(ii).ColoniesCost);
    
    end
    
    %% Uniting Similiar Empires
    Empires = UniteSimilarEmpires(Empires,AlgorithmParams,ProblemParams);

    %% Imperialistic Competition
    Empires = ImperialisticCompetition(Empires);
    
    if numel(Empires) == 1 && AlgorithmParams.StopIfJustOneEmpire
        break
    end

    %% Displaying the Results
    DisplayEmpires(Empires,AlgorithmParams,ProblemParams,DisplayParams);
    
    ImerialistCosts = [Empires.ImperialistCost];
    MinimumCost(Decade) = min(ImerialistCosts);
    MeanCost(Decade) = mean(ImerialistCosts);

    if DisplayParams.PlotCost
        refreshdata(h_MinCostPlot);
        refreshdata(h_MeanCostPlot);
        drawnow;
        pause(0.01);
    end
    
end % End of Algorithm
MinimumCost(end)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品网站在线播放| 精品国产一区二区三区不卡 | 午夜精品成人在线视频| 亚洲丝袜美腿综合| 伊人夜夜躁av伊人久久| 亚洲精品国产品国语在线app| 亚洲欧美日韩国产综合在线| 一区二区三区欧美日| 国产精品久久福利| 亚洲激情五月婷婷| 日韩电影在线一区二区三区| 免费成人av在线| 国产精品影视网| 99久久精品免费看国产 | 视频一区免费在线观看| 蜜桃视频免费观看一区| 国产精品一区二区在线播放| 99精品国产热久久91蜜凸| 91久久精品一区二区| 欧美日韩成人在线一区| 久久免费电影网| 亚洲欧洲日韩在线| 午夜精品国产更新| 国产精品一区2区| 91麻豆自制传媒国产之光| 欧美精品自拍偷拍| 国产日本欧美一区二区| 亚洲综合一区在线| 国产美女精品在线| 91福利区一区二区三区| 日韩一区二区在线播放| 久久久久国产精品免费免费搜索| 亚洲精品水蜜桃| 蜜桃av一区二区在线观看| eeuss鲁片一区二区三区| 欧美日韩在线播放三区四区| 久久久久国产免费免费| 亚洲高清中文字幕| www.日韩精品| 精品久久久久一区二区国产| 亚洲乱码国产乱码精品精可以看 | 欧美日韩国产电影| 欧美国产日韩在线观看| 日本美女一区二区三区视频| 99精品桃花视频在线观看| 欧美一区二区啪啪| 亚洲综合色丁香婷婷六月图片| 国产一区二区免费在线| 91精品国产91热久久久做人人| 亚洲情趣在线观看| 国产成人小视频| www精品美女久久久tv| 亚洲综合视频在线| 成人av综合一区| 精品对白一区国产伦| 天堂久久久久va久久久久| 97久久人人超碰| 欧美激情综合在线| 国内精品国产成人| 日韩欧美色综合| 日本午夜一区二区| 91 com成人网| 日韩有码一区二区三区| 在线国产电影不卡| 亚洲精品综合在线| 9i看片成人免费高清| 成人免费在线视频| 99麻豆久久久国产精品免费优播| 国产欧美一区二区在线观看| 狠狠久久亚洲欧美| 欧美xingq一区二区| 久久精品免费观看| 久久一二三国产| 国产精品91xxx| 欧美国产一区在线| 成人亚洲一区二区一| 国产精品欧美极品| 成人一级黄色片| 亚洲视频在线观看一区| 色猫猫国产区一区二在线视频| 亚洲欧美视频在线观看视频| 色婷婷香蕉在线一区二区| 亚洲精品成人少妇| 欧美日韩专区在线| 日韩电影在线观看一区| 精品久久人人做人人爰| 国产suv精品一区二区883| 亚洲国产高清aⅴ视频| av网站免费线看精品| 亚洲电影一区二区| 日韩午夜精品电影| 成人小视频在线观看| 亚洲色图.com| 欧美一区二区三区不卡| 国产一区二区在线免费观看| 国产精品护士白丝一区av| 欧美日韩综合在线免费观看| 久久国产精品露脸对白| 亚洲欧洲综合另类| 日韩欧美视频在线| 成人高清免费观看| 亚洲第一主播视频| 国产欧美一区视频| 欧美男男青年gay1069videost| 久久爱www久久做| 国产精品国产三级国产三级人妇| 欧美日本精品一区二区三区| 国产毛片精品国产一区二区三区| 综合激情网...| 欧美不卡激情三级在线观看| jvid福利写真一区二区三区| 日产国产高清一区二区三区| 国产精品亲子伦对白| 欧美精品丝袜中出| 91亚洲资源网| 狠狠狠色丁香婷婷综合激情| 亚洲精品日韩综合观看成人91| 日韩一区二区中文字幕| 91视频国产资源| 韩国精品主播一区二区在线观看 | 国产伦理精品不卡| 亚洲成人一区在线| 国产精品久久三| 欧美精品一区二区高清在线观看| 在线中文字幕一区二区| 国产精品18久久久久久久久久久久 | 在线免费观看日本欧美| 国产精品91一区二区| 日本欧美在线看| 亚洲一区影音先锋| 中文字幕一区二区三区四区不卡 | a亚洲天堂av| 国产在线精品免费av| 日韩在线卡一卡二| 亚洲国产欧美在线| 亚洲美女视频在线| 综合久久久久久久| 国产精品乱码一区二区三区软件 | 欧美精品丝袜久久久中文字幕| 色天使色偷偷av一区二区| 成人小视频在线| 国产成人av网站| 国产精品自拍一区| 精品一区二区在线免费观看| 日韩和欧美一区二区| 亚洲www啪成人一区二区麻豆| 亚洲裸体在线观看| 亚洲最新视频在线观看| 亚洲免费在线视频| 亚洲黄色小视频| 夜夜精品视频一区二区| 亚洲精品成人精品456| 亚洲欧美国产77777| 1024成人网色www| 亚洲视频免费在线| 亚洲综合久久久久| 一区二区不卡在线播放| 亚洲免费高清视频在线| 亚洲一区视频在线观看视频| 亚洲午夜精品在线| 日韩成人一级大片| 黑人精品欧美一区二区蜜桃| 精品亚洲欧美一区| 国产精一品亚洲二区在线视频| 丁香婷婷综合色啪| 91亚洲精品久久久蜜桃网站| 日本二三区不卡| 欧美久久久久久蜜桃| 日韩免费电影一区| 国产日韩av一区| 亚洲男人电影天堂| 日韩高清在线一区| 精品一区二区三区不卡| 国产成人一区在线| 在线免费观看日本欧美| 日韩精品一区二区三区在线观看 | 精品久久人人做人人爰| 国产精品久久久久久久久动漫 | 国产亚洲午夜高清国产拍精品| 国产精品天干天干在线综合| 亚洲国产一区视频| 蜜芽一区二区三区| 成人精品一区二区三区四区| 在线视频国内自拍亚洲视频| 亚洲精品在线免费播放| 亚洲欧洲日产国码二区| 日本麻豆一区二区三区视频| 国产不卡一区视频| 欧美日韩二区三区| 国产精品福利电影一区二区三区四区| 伊人开心综合网| 国产在线精品一区二区三区不卡 | 色狠狠色狠狠综合| 亚洲精品一区二区三区影院| 亚洲欧洲日韩在线| 国产一区二区电影| 欧美久久久久久蜜桃| 亚洲欧洲日韩av| 国产美女娇喘av呻吟久久| 欧美日韩电影在线|