【優(yōu)化算法】基于加入領(lǐng)導(dǎo)者的黏菌優(yōu)化算法求解單目標(biāo)優(yōu)化問題(LSMA)含Matlab源碼

1 簡介

At this moment, we need a good optimizer to obtain the optimalthreshold values by utilizing the Eq. (14) as an objective function.In this context, here we introduce an effificient optimizer. The development of our leader slime mould algorithm (LSMA) is based onthe modeling of approaching behavior of the slime mould algorithm (SMA) (Li et al., 2020) with leaders of the slime mould concentration. The SMA simulates the attacking behavior andmorphological divergences of the slime mould Physarum polycephalum for foraging, which mainly depends on the best leadertogether with two slime mould randomly pooled from the overallpopulations。

2 部分代碼

% Leader Slime Mould Algorithm (LSMA) source Code Version 1.0

%

% Developed in MATLAB R2018b


%_____________________________________________________________________________________________________

clearvars

close all

clc

disp('The LSMA is tracking the problem');

N=30; % Number of slime mould

Function_name='F11' % Name of the test function that can be from F1 to F23?

MaxIT=500; % Maximum number of iterations

[lb,ub,dim,fobj]=Get_Functions_details(Function_name); % Function details

Times=31; %Number of independent times you want to run the AOSMA

display(['Number of independent runs: ', num2str(Times)]);

for i=1:Times

[Destination_fitness(i),bestPositions(i,:),Convergence_curve(i,:)]=LSMA(N,MaxIT,lb,ub,dim,fobj);

display(['The optimal fitness of LSMA is: ', num2str(Destination_fitness(i))]);

end

[bestfitness,index]=min(Destination_fitness);

disp('--------Best Fitness, Average Fitness, Standard Deviation and Best Solution--------');

display(['The best fitness of LSMA is: ', num2str(bestfitness)]);

display(['The average fitness of LSMA is: ', num2str(mean(Destination_fitness))]);

display(['The standard deviation fitness of LSMA is: ', num2str(std(Destination_fitness))]);

display(['The best location of LSMA is: ', num2str(bestPositions(index,:))]);

subplot(1,2,1);

func_plot(Function_name);

title('Objective space')

xlabel('x_1');

ylabel('x_2');

zlabel([Function_name,'( x_1 , x_2 )'])

subplot(1,2,2);

semilogy(Convergence_curve(index,:),'LineWidth',3);

xlabel('Iterations');

ylabel('Best fitness obtained so far');

legend('LSMA');

box on;

axis tight;

grid off;

3 仿真結(jié)果

4 參考文獻(xiàn)

[1] Manoj Kumar Naik, Rutuparna Panda, Ajith Abraham. Normalized square difference based multilevel thresholding technique for multispectral images using leader slime mould algorithm[J]. Journal of King Saud University - Computer and Information Sciences, 2020.

博主簡介:擅長智能優(yōu)化算法硅则、神經(jīng)網(wǎng)絡(luò)預(yù)測怪瓶、信號處理世蔗、元胞自動機(jī)、圖像處理述寡、路徑規(guī)劃、無人機(jī)等多種領(lǐng)域的Matlab仿真叶洞,相關(guān)matlab代碼問題可私信交流鲫凶。

完整代碼獲取關(guān)注微信公眾號天天matlab

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末衩辟,一起剝皮案震驚了整個濱河市螟炫,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌昼钻,老刑警劉巖,帶你破解...
    沈念sama閱讀 216,402評論 6 499
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件封寞,死亡現(xiàn)場離奇詭異然评,居然都是意外死亡狈究,警方通過查閱死者的電腦和手機(jī)碗淌,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 92,377評論 3 392
  • 文/潘曉璐 我一進(jìn)店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來贯莺,“玉大人,你說我怎么就攤上這事缕探。” “怎么了还蹲?”我有些...
    開封第一講書人閱讀 162,483評論 0 353
  • 文/不壞的土叔 我叫張陵爹耗,是天一觀的道長谜喊。 經(jīng)常有香客問我潭兽,道長斗遏,這世上最難降的妖魔是什么山卦? 我笑而不...
    開封第一講書人閱讀 58,165評論 1 292
  • 正文 為了忘掉前任诵次,我火速辦了婚禮账蓉,結(jié)果婚禮上逾一,老公的妹妹穿的比我還像新娘铸本。我一直安慰自己遵堵,他們只是感情好箱玷,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,176評論 6 388
  • 文/花漫 我一把揭開白布陌宿。 她就那樣靜靜地躺著锡足,像睡著了一般壳坪。 火紅的嫁衣襯著肌膚如雪舱污。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 51,146評論 1 297
  • 那天扩灯,我揣著相機(jī)與錄音,去河邊找鬼霜瘪。 笑死珠插,一個胖子當(dāng)著我的面吹牛,可吹牛的內(nèi)容都是我干的捻撑。 我是一名探鬼主播,決...
    沈念sama閱讀 40,032評論 3 417
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼顾患!你這毒婦竟也來了番捂?” 一聲冷哼從身側(cè)響起江解,我...
    開封第一講書人閱讀 38,896評論 0 274
  • 序言:老撾萬榮一對情侶失蹤设预,失蹤者是張志新(化名)和其女友劉穎犁河,沒想到半個月后鳖枕,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體桨螺,經(jīng)...
    沈念sama閱讀 45,311評論 1 310
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡宾符,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,536評論 2 332
  • 正文 我和宋清朗相戀三年灭翔,在試婚紗的時候發(fā)現(xiàn)自己被綠了魏烫。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片肝箱。...
    茶點(diǎn)故事閱讀 39,696評論 1 348
  • 序言:一個原本活蹦亂跳的男人離奇死亡则奥,死狀恐怖狭园,靈堂內(nèi)的尸體忽然破棺而出读处,到底是詐尸還是另有隱情唱矛,我是刑警寧澤罚舱,帶...
    沈念sama閱讀 35,413評論 5 343
  • 正文 年R本政府宣布绎谦,位于F島的核電站管闷,受9級特大地震影響,放射性物質(zhì)發(fā)生泄漏包个。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,008評論 3 325
  • 文/蒙蒙 一冤留、第九天 我趴在偏房一處隱蔽的房頂上張望碧囊。 院中可真熱鬧,春花似錦纤怒、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,659評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽像寒。三九已至瓜贾,卻和暖如春诺祸,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背筷笨。 一陣腳步聲響...
    開封第一講書人閱讀 32,815評論 1 269
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留实束,地道東北人。 一個月前我還...
    沈念sama閱讀 47,698評論 2 368
  • 正文 我出身青樓逊彭,卻偏偏與公主長得像,于是被迫代替她去往敵國和親侮叮。 傳聞我的和親對象是個殘疾皇子避矢,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 44,592評論 2 353

推薦閱讀更多精彩內(nèi)容