2024最新算法:吸血水蛭优化器(Blood-Sucking Leech Optimizer,BSLO)求解23个函数,MATLAB代码

一、算法介绍

吸血水蛭优化器(Blood-Sucking Leech Optimizer,BSLO)是2024年提出的一种智能优化算法,该算法模拟了水蛭的探索、定向水蛭的利用、定向水蛭的切换机制、无方向水蛭的搜索策略和重新跟踪策略。

参考文献:

1\]Bai, Jianfu, et al. "Blood-Sucking Leech Optimizer." Advances in Engineering Software, vol. 195, Elsevier BV, Sept. 2024, p. 103696, doi:[10.1016/j.advengsoft.2024.103696](https://doi.org/10.1016/j.advengsoft.2024.103696 "10.1016/j.advengsoft.2024.103696") ### 二、23个函数简介 ![](https://img-blog.csdnimg.cn/img_convert/2be5617d327a4d00267f36665262e0a1.png) [参考文献](https://so.csdn.net/so/search?q=%E5%8F%82%E8%80%83%E6%96%87%E7%8C%AE&spm=1001.2101.3001.7020 "参考文献"): \[1\] Yao X, Liu Y, [Lin](https://so.csdn.net/so/search?q=Lin&spm=1001.2101.3001.7020 "Lin") G M. Evolutionary programming made faster\[J\]. IEEE transactions on evolutionary computation, 1999, 3(2):82-102. ### 三、部分代码 ``` close all ; clear clc Npop=30; Function_name='F1'; % Name of the test function that can be from F1 to F23 ( Tmax=300; [lb,ub,dim,fobj]=Get_Functions_details(Function_name); [Best_fit,Best_pos,Convergence_curve]=(Npop,Tmax,lb,ub,dim,fobj); figure('Position',[100 100 660 290]) %Draw search space subplot(1,2,1); func_plot(Function_name); title('Parameter space') xlabel('x_1'); ylabel('x_2'); zlabel([Function_name,'( x_1 , x_2 )']) %Draw objective space subplot(1,2,2); semilogy(Convergence_curve,'Color','r','linewidth',3) title('Search space') xlabel('Iteration'); ylabel('Best score obtained so far'); axis tight grid on box on legend('') saveas(gca,[Function_name '.jpg']); display(['The best solution is ', num2str(Best_pos)]); display(['The best fitness value is ', num2str(Best_fit)]); ``` ### 四、部分结果 ![](https://img-blog.csdnimg.cn/img_convert/7f0ec1bae506b768268b9c431e44afcd.jpeg) ![](https://img-blog.csdnimg.cn/img_convert/530f231cdeed74596520d8c6ec0f0456.jpeg) ![](https://img-blog.csdnimg.cn/img_convert/35398b36e9a459076cc3adb0da9bb026.jpeg) ![](https://img-blog.csdnimg.cn/img_convert/22a0402693409234fc549510ec52c9c1.jpeg) ![](https://img-blog.csdnimg.cn/img_convert/b92488d1c1d5676e1a88cc0c0873a3cd.jpeg) ![](https://img-blog.csdnimg.cn/img_convert/721854cb1844464d39abe67dd8ad4cc1.jpeg) ![](https://img-blog.csdnimg.cn/img_convert/3ae22b9f1c4d53cad9fbb037cbaa4fb9.jpeg) ![](https://img-blog.csdnimg.cn/img_convert/2f7f5c4946eaa792d5249dfe7c91829f.jpeg) ![](https://img-blog.csdnimg.cn/img_convert/f59041d031fa22330e7555cb01cea5aa.jpeg) ### 五、完整MATLAB代码 ![](https://img-blog.csdnimg.cn/img_convert/4dcc07757ac488d195089ca4e2ac5c08.png)

相关推荐
岁忧1 分钟前
LeetCode 高频 SQL 50 题(基础版)之 【高级字符串函数 / 正则表达式 / 子句】· 上
sql·算法·leetcode
eachin_z1 小时前
力扣刷题(第四十九天)
算法·leetcode·职场和发展
闻缺陷则喜何志丹1 小时前
【强连通分量 缩点 拓扑排序】P3387 【模板】缩点|普及+
c++·算法·拓扑排序·洛谷·强连通分量·缩点
钮钴禄·爱因斯晨1 小时前
Java 面向对象进阶之多态:从概念到实践的深度解析
java·开发语言·数据结构
鸽子炖汤1 小时前
Java中==和equals的区别
java·开发语言·jvm
有个傻瓜1 小时前
PHP语言核心技术全景解析
开发语言·kubernetes·php
菥菥爱嘻嘻1 小时前
JS手写代码篇---手写ajax
开发语言·javascript·ajax
机器学习之心1 小时前
机器学习用于算法交易(Matlab实现)
算法·机器学习·matlab
江梦寻1 小时前
MacOS下Homebrew国内镜像加速指南(2025最新国内镜像加速)
开发语言·后端·python·macos·架构·策略模式
AL流云。2 小时前
【优选算法】C++滑动窗口
数据结构·c++·算法