当前位置: 首页 > news >正文

【优化求解】基于野马算法求解单目标优化问题附matlab代码

1 简介

Nowadays, the design of optimization algorithms is very popular to solve problems in various scientifc felds. The optimization algorithms usually inspired by the natural behaviour of an agent, which can be humans, animals, plants, or a physical or chemical agent. Most of the algorithms proposed in the last decade inspired by animal behaviour. In this article, we present a new optimizer algorithm called the wild horse optimizer (WHO), which is inspired by the social life behaviour of wild horses. Horses usually live in groups that include a stallion and several mares and foals. Horses exhibit many behaviours, such as grazing, chasing, dominating, leading, and mating. A fascinating behaviour that distinguishes horses from other animals is the decency of horses. Horse decency behaviour is such that the foals of the horse leave the group before reaching puberty and join other groups. This departure is to prevent the father from mating with the daughter or siblings. The main inspiration for the proposed algorithm is the decency behaviour of the horse. The proposed algorithm was tested on several sets of test functions such as CEC2017 and CEC2019 and compared with popular and new optimization methods. The results showed that the proposed algorithm presented very competitive results compared to other algorithms

2 部分代码

% _____________________________________________________

%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

clear

close all

clc

N=30; % Number of search agents

Function_name='F12'; % % Name of the test function that can be from F1 to F13 and cec01 to cec10

Max_iter=500; % Maximum number of iterations

% Load details of the selected benchmark function

[dim,fobj,ub, lb] = Select_Functions(Function_name);

[Convergence_curve,gBest,gBestScore]=WHO(N,Max_iter,lb,ub,dim,fobj);

figure('Position',[269 240 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')

title('Objective space')

xlabel('Iteration');

ylabel('Best score obtained so far');

axis tight

grid on

box on

legend('WHO')

display(['The best location of WHO is: ', num2str(gBest)]);

display(['The best fitness of WHO is: ', num2str(gBestScore)]);

gBestScore

3 仿真结果

4 参考文献

Naruei, Iraj, and Farshid Keynia. “Wild Horse Optimizer: a New Meta-Heuristic Algorithm for Solving Engineering Optimization Problems.” Engineering with Computers, Springer Science and Business Media LLC, June 2021, doi:10.1007/s00366-021-01438-z.

博主简介:擅长智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,相关matlab代码问题可私信交流。

部分理论引用网络文献,若有侵权联系博主删除。

http://www.cnnetsun.cn/news/3785801.html

相关文章:

  • 黑苹果BCM94360Z4蓝牙固件魔改:实现原生级AirDrop与睡眠唤醒
  • 平台怎么做品牌营销策划?—品牌营销
  • 无锡MES软件推荐江苏汉软
  • [Android ] 极简记账本1.0 -极速记账+理财攒钱天花板
  • Maya角色绑定实战:从骨骼搭建到权重绘制的完整流程与避坑指南
  • Mudra Link如何实现隔空交互
  • 如何用Audiobookshelf打造你的智能有声图书馆:跨平台同步的终极音频管理方案
  • 嘎嘎降AI和HumText哪个好用?中英双语论文降AI实测对比(含SCI场景)
  • 如何快速使用Speechless微博备份工具:面向新手的完整指南
  • 专业游戏手柄性能检测指南:用XInputTest精准测量延迟与轮询率
  • Agentic AI 跑通 Demo 容易,上线翻车才痛苦
  • 微服务业务拆分规范与边界设计
  • 标注成本直降76%,分类准确率跃升至98.2%:AI标签自动分类的工业级调优秘钥
  • Kylin-Server-V11、openEuler-22.03和openEuler-24.03适配原生rpm的MySQL 9.7.2版本正式发布
  • C#中IntPtr与byte[]/Stream互转:托管与非托管内存交互实战
  • MATLAB limit函数深度解析:从数学极限到工程计算的完整指南
  • ESP32-C3开发实战:从蓝牙广播到智能硬件设计
  • 彻底解决PPT/Word中英文混排换行难题:从原理到实战
  • 计算机毕业设计之成都奥科厨具厂产品在线销售系统设计与实现
  • 解决JDK缺少JavaFX依赖:从模块化原理到Maven/Gradle实战
  • SCI一区级 | Matlab实现NGO-CNN-LSTM-Mutilhead-Attention多变量时间序列预测
  • Android 10权限管理核心:AppOpsManager原理、API与实战指南
  • 别再手动记笔记了!这7类高频办公场景,AI备注生成已实现零干预交付
  • 语言专业人才职场转型路径与核心能力迁移
  • 2.8英寸HDMI LCD屏幕:嵌入式显示开发的即插即用解决方案
  • CH343 USB转多串口评估板:3Mbps高速通信与多设备调试实战
  • Elsevier期刊LaTeX投稿全流程避坑指南:从模板选择到PDF生成
  • 对象存储 OSS
  • MATLAB范数函数深度解析:从向量长度到矩阵放大倍数的工程实践
  • GeeLark 1月更新:智能协同与效率提升新特性解析