2025最新智能优化算法:鲸鱼迁徙算法(Whale Migration Algorithm,WMA)求解23个经典函数测试集,MATLAB

一、鲸鱼迁徙算法

鲸鱼迁徙算法(Whale Migration Algorithm,WMA)是2025年提出的一种新颖生物启发式元启发式优化方法,其灵感来源于座头鲸的协作迁徙行为。该算法通过模拟座头鲸的迁徙和捕食行为,实现了在优化过程中的高效搜索和优化能力。WMA通过整合领导者-追随者动态和自适应迁徙策略,平衡了探索和开发之间的关系,从而提高了算法避免局部最优和有效收敛的能力。WMA通过模拟座头鲸的迁徙行为,实现了在搜索空间中的有效探索和开发。这种平衡使得算法能够在避免陷入局部最优的同时,快速收敛到全局最优解。WMA的自适应迁徙策略使其能够根据问题的复杂性和搜索空间的特性动态调整搜索策略,从而在不同的优化问题中表现出良好的适应性。



参考文献:

1\]Ghasemi, M., Deriche, M., Trojovský, P., Mansor, Z., Zare, M., Trojovská, E., Abualigah, L.M., Ezugwu, A.E., \& Mohammadi, S.K. (2025). An efficient bio-inspired algorithm based on humpback whale migration for constrained engineering optimization. Results in Engineering. ### 二、23个函数介绍 ![在这里插入图片描述](https://i-blog.csdnimg.cn/direct/35fd656358c747108580aff6af5528db.png) 参考文献: \[1\] Yao X, Liu Y, Lin G M. Evolutionary programming made faster\[J\]. IEEE transactions on evolutionary computation, 1999, 3(2):82-102. ### 三、部分代码及结果 ```dart clear; clc; close all; warning off all; SearchAgents_no=50; %Number of search solutions Max_iteration=500; %Maximum number of iterations Func_name='F1'; % Name of the test function % Load details of the selected benchmark function [lb,ub,dim,fobj]=Get_F(Func_name); tic; [Best_score,Best_pos,cg_curve]=SGA(SearchAgents_no,Max_iteration,lb,ub,dim,fobj); tend=toc; % figure('Position',[500 500 901 345]) %Draw search space subplot(1,2,1); func_plot(Func_name); title('Parameter space') xlabel('x_1'); ylabel('x_2'); zlabel([Func_name,'( x_1 , x_2 )']) %Draw objective space subplot(1,2,2); semilogy(cg_curve,'Color','m',LineWidth=2.5) title(Func_name) % title('Objective space') xlabel('Iteration'); ylabel('Best score obtained so far'); axis tight grid on box on legend('SGA') display(['The running time is:', num2str(tend)]); display(['The best fitness is:', num2str(Best_score)]); display(['The best position is: ', num2str(Best_pos)]); ``` ![在这里插入图片描述](https://i-blog.csdnimg.cn/direct/0aa7a9d1c1fe41288aa7bb2b7e63cb19.png) ![在这里插入图片描述](https://i-blog.csdnimg.cn/direct/f5af408a60a0412bbd180140da064056.png) ![在这里插入图片描述](https://i-blog.csdnimg.cn/direct/7e5e8289ca4b4a4d9b4620f26be8f4e2.png) ![在这里插入图片描述](https://i-blog.csdnimg.cn/direct/898d1a84c86646c1ada5de635ad4c267.png) ### 四、完整MATLAB代码见下方名片

相关推荐
qq_3148108110 分钟前
AI与IT人:协作而非替代
人工智能
清风66666611 分钟前
基于51单片机宠物喂食系统设计
数据库·单片机·毕业设计·51单片机·课程设计·宠物
骑猪兜风23318 分钟前
深度解析 ChatGPT 和 Claude 的记忆机制
人工智能·chatgpt·ai编程
蒋星熠35 分钟前
脑机接口(BCI):从信号到交互的工程实践
人工智能·python·神经网络·算法·机器学习·ai·交互
liuyao_xianhui38 分钟前
四数之和_优选算法(C++)双指针法总结
java·开发语言·c++·算法·leetcode·职场和发展
一语雨在生无可恋敲代码~42 分钟前
RAG Day06 查询重建
数据库
大模型铲屎官43 分钟前
【数据结构与算法-Day 37】超越二分查找:探索插值、斐波那契与分块查找的奥秘
人工智能·python·大模型·二分查找·数据结构与算法·斐波那契·分块查找
对着晚风做鬼脸1 小时前
MySQL进阶知识点(八)---- SQL优化
数据库
数智顾问1 小时前
Transformer模型:深度解析自然语言处理的革命性架构——从注意力机制到基础架构拆解
人工智能·rnn·深度学习
IT_陈寒1 小时前
React Hooks 实战:这5个自定义Hook让我开发效率提升了40%
前端·人工智能·后端