【智能优化算法-鲸鱼算法】基于鲸鱼算法求解多目标优化问题附matlab代码(NSWOA)
1 内容介绍
为了解决多目标优化的相关问题,鲸鱼优化算法结合多目标相关理论,并在算法中加入了非排序思路,提出了一种求解多目标问题的鲸鱼优化算法.
2 仿真代码
%% Non Sorted Whale Optimization Algorithm (NSWOA)
% NSWOA is developed by Pradeep Jangir
%% Objective Function
% The objective function description contains information about the
% objective function. M is the dimension of the objective space, D is the
% dimension of decision variable space, LB and UB are the
% range for the variables in the decision variable space. User has to
% define the objective functions using the decision variables. Make sure to
% edit the function 'evaluate_objective' to suit your needs.
clc
clear all
D = 30; % Number of decision variables
M = 2; % Number of objective functions
K=M+D;
LB = ones(1, D).*0; % LB - A vector of decimal values which indicate the minimum value for each decision variable.
UB = ones(1, D).*1; % UB - Vector of maximum possible values for decision variables.
Max_iteration = 100; % Set the maximum number of generation (GEN)
SearchAgents_no = 100; % Set the population size (Search Agent)
ishow = 10;
%% Initialize the population
% Population is initialized with random values which are within the
% specified range. Each chromosome consists of the decision variables. Also
% the value of the objective functions, rank and crowding distance
% information is also added to the chromosome vector but only the elements
% of the vector which has the decision variables are operated upon to
% perform the genetic operations like corssover and mutation.
chromosome = initialize_variables(SearchAgents_no, M, D, LB, UB);
%% Sort the initialized population
% Sort the population using non-domination-sort. This returns two columns
% for each individual which are the rank and the crowding distance
% corresponding to their position in the front they belong. At this stage
% the rank and the crowding distance for each chromosome is added to the
% chromosome vector for easy of computation.
intermediate_chromosome = non_domination_sort_mod(chromosome, M, D);
%% Perform Selection
% Once the intermediate population is sorted only the best solution is
% selected based on it rank and crowding distance. Each front is filled in
% ascending order until the addition of population size is reached. The
% last front is included in the population based on the individuals with
% least crowding distance
% Select NP fittest solutions using non dominated and crowding distance
% sorting and store in population
Population = replace_chromosome(intermediate_chromosome, M,D,SearchAgents_no);
%% Start the evolution process
% The following are performed in each generation
% * Select the parents which are fit for reproduction
% * Perfrom crossover and Mutation operator on the selected parents
% * Perform Selection from the parents and the offsprings
% * Replace the unfit individuals with the fit individuals to maintain a
% constant population size.
Pareto = NSWOA(D,M,LB,UB,Population,SearchAgents_no,Max_iteration,ishow);
save Pareto.txt Pareto -ascii; % save data for future use
%% Plot data
if M == 2
plot_data2(M,D,Pareto)
elseif M == 3
plot_data_TCQ(M,D,Pareto);
end
3 运行结果
4 参考文献
[1]滕德云, 滕欢, 刘鑫,等. 基于改进鲸鱼优化算法的多目标无功优化调度[J]. 电力电容器与无功补偿, 2019, 40(3):7.
[2]梁倩. 基于反向精英保留和Levy变异的多目标鲸鱼优化算法[J]. 现代计算机, 2021(18):7.
博主简介:擅长智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,相关matlab代码问题可私信交流。
部分理论引用网络文献,若有侵权联系博主删除。
【智能优化算法-鲸鱼算法】基于鲸鱼算法求解多目标优化问题附matlab代码(NSWOA)相关推荐
- 基于深度学习的YOLO目标检测研究-附Matlab代码
目录 ✳️ 一.引言 ✳️ 二.YOLO的基本思想 ✳️ 三.实验验证 ✳️ 四.参考文献 ✳️ 五.Matlab代码获取 ✳️ 一.引言 目标检测是计算机视觉中的一个研究热点,在很多领域都有应用需求 ...
- 【配电网】基于遗传算法实现三相单目标配电网重构附matlab代码
✅作者简介:热爱科研的Matlab仿真开发者,修心和技术同步精进,matlab项目合作可私信.
- 【图像检测】基于 AlexNet 和 SVM 实现异常螺母检测附matlab代码
1 内容介绍 考虑到异常检测问题中正负样本严重失衡,难以满足卷积神经网络训练对样本的要求,提出了基于AlexNet模型的异常检测模型.在数据预处理阶段,通过隔帧采样的方式生成3组训练数据,并利用预训练 ...
- 【通信】基于 ADMM 的大规模 MIMO 无穷范数检测附matlab代码
1 内容介绍 在本文中,我们为大规模多用户 (MU) 多输入多输出 (MIMO) 无线系统提出了一种新颖的数据检测算法和相应的 VLSI 设计.我们的算法使用基于交替方向乘法器 (ADMM) 的无限范 ...
- 【图像分割】基于计算机视觉实现胸部CT肺质提取附matlab代码
1 内容介绍 在现代医学领域中,医学影像处理技术随着计算机科学和影像技术的进步,已经成为医学领域重要的一个分支.室外光照度不均.CT自身空间分辨率和层厚参数.人体组织器官蠕动等诸多外界因素造成了医学X ...
- 【图像检测-道路检测】基于hough变换实现道路检测直线检测附matlab代码
1 内容介绍 随着遥感技术和计算机技术的飞速发展,遥感图像的采集变得越来越容易,遥感图像中的物体特征识别及检测变得越来越重要,直线是图像中物体基本的特征之一,研究图像中直线的检测算法对计算机视觉和模式 ...
- 【图像隐藏】基于混合 DWT-HD-SVD 的数字图像水印方法技术附matlab代码
1 内容介绍 文章提出一种基于离散小波变换(DWT),Hessenberg分解(HD)和奇异值分解(SVD)的图像水印方法.在嵌入过程中,对原始载体图像进行多级DWT分解,并将得出的子带系数作为HD的 ...
- 【图像去噪】基于二维双边高斯滤波实现图像去噪附matlab代码
1 简介 图像是生活中重要的信息来源,处理图像有助于理解信息的基本信息.但图像本身可能存在一些被干扰的信息或者噪声.研究了基于高斯滤波和双边滤波算法的数字图像处理技术用于对图像的噪声进行消除.通过对图 ...
- 【雷达】基于核聚类实现雷达信号在线分选附matlab代码
1 内容介绍 雷达信号分选是现代雷达侦察设备必须具备的功能‚它是利用测得的雷达信号参数‚将随机交迭的雷达信号分离成独立的雷达信号列‚为最终的雷达信号识别打下牢固的基础.在现代战争中‚雷达侦察接收机所处 ...
最新文章
- 第十六届全国大学智能车竞赛创意组比赛国赛获奖名单
- OpenCV函数 Canny 检测边缘
- ArcGIS10.2 网络分析之路径分析(二)---构建网络数据集
- 计算机专业读mba,计算机专业的学生适合读MBA吗MBA考试_MBA-教育宝
- phpcms v9调用指定栏目名称、url、图片、描述等
- zookeeper kafka迁移后logstash消费不了Kafka消息
- 20165214 预备作业3 Linux安装及学习
- go get github.com/tealeg/xlsx timeout 超时
- 微信小程序css之线性渐变
- python下载哪个版本好-究竟哪个版本的Python是最快的?
- html推箱子过关检测函数,HTML5推箱子实现
- 在线教育高保真小程序Axure原型模板
- 伍德里奇计量经济学导论第6版笔记和课后习题答案
- 计算机专业英语词汇pdf,计算机专业英语词汇1700词.pdf
- 支架预压弹性变形值计算_支架预压计算.doc
- 统计学 —— 单因素方差分析的应用与Excel实现
- 标志Logo设计的起源和艺术特点
- 扫码挪车小程序源码专业版上线了
- vue项目中加载使用腾讯地图
- Yii框架zii.widgets.grid自定义按钮