news 2026/8/1 17:29:41

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

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
【优化求解】基于野马算法求解单目标优化问题附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代码问题可私信交流。

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

版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/8/1 17:27:44

黑苹果BCM94360Z4蓝牙固件魔改:实现原生级AirDrop与睡眠唤醒

1. 项目概述:从“能用”到“完美”的最后一公里折腾黑苹果的朋友,对博通(Broadcom)的无线网卡一定不陌生。在苹果逐步转向自研芯片和定制无线模块的今天,那些被遗留在Intel平台上的“原装”博通网卡,成了黑…

作者头像 李华
网站建设 2026/8/1 17:27:17

平台怎么做品牌营销策划?—品牌营销

平台怎么做品牌营销策划?在数字化时代,平台品牌营销策划对于企业的市场竞争力和长远发展具有至关重要的作用。有效的品牌营销策划不仅要关注品牌形象的塑造、消费者体验的提升,还要重视营销渠道的拓展和数字化转型。一个成功的品牌营销策划方…

作者头像 李华
网站建设 2026/8/1 17:25:33

无锡MES软件推荐江苏汉软

无锡MES软件推荐江苏汉软 无锡MES软件推荐:江苏汉软的创新解决方案 在制造业信息化转型的浪潮中,制造执行系统(MES)作为连接生产与管理的重要桥梁,越来越受到各大企业的关注。然而,如何选择一款适合自己企业…

作者头像 李华
网站建设 2026/8/1 17:20:36

[Android ] 极简记账本1.0 -极速记账+理财攒钱天花板

[Android ] 极简记账本1.0 -极速记账理财攒钱天花板纯净版 链接:https://pan.xunlei.com/s/VOywV1_uRMW7lCu6oV9YzLApA1?pwd5t8t# 一款主打“少即是多”的纯粹记账工具。它摒弃理财、社区等繁杂功能,专注于快速记账与清晰图表展示。支持多账本管理、…

作者头像 李华
网站建设 2026/8/1 17:19:02

Maya角色绑定实战:从骨骼搭建到权重绘制的完整流程与避坑指南

1. 从零开始理解角色绑定:不只是“搭骨架”如果你刚接触三维动画,可能会觉得“角色绑定”就是把一堆骨骼塞进模型里,然后让模型能动起来。这个理解对,但也不全对。我刚开始做绑定的时候,也以为这就是个技术活&#xff…

作者头像 李华
网站建设 2026/8/1 17:18:34

Mudra Link如何实现隔空交互

Mudra Link如何实现隔空交互 传统的人机交互主要依赖键盘、鼠标、触摸屏和实体按键。随着智能手机、虚拟现实设备和可穿戴设备的发展,用户对更加自然、便捷的交互方式提出了新的需求。 Mudra Link是一款面向手势交互的智能控制手环。用户佩戴后,可以通…

作者头像 李华