【变色龙算法】基于变色龙算法求解单目标优化问题(CSA)含Matlab源码

1 简介

2 部分代码

%% Chameleon Swarm Algorithm (CSA) source codes version 1.0clearclose allclc%% % Prepare the problemSearchAgents_no=30; % Number of search agents 种群数量Function_name='F11'; % Name of the test function that can be from F1 to F23 (Table 1,2,3 in the paper) 设定适应度函数Max_iteration=1000; % Maximum numbef of iterations 设定最大迭代次数% Load details of the selected benchmark function[lb,ub,dim,fobj]=Get_Functions_details(Function_name);  %设定边界以及优化函数%% % CSA parametersnoP = 30;maxIter = 1000;[bestFitness, bestPosition, CSAConvCurve] =Chameleon(SearchAgents_no,Max_iteration,lb,ub,dim,fobj);figure('Position',[269   240   660   290])%Draw search spacesubplot(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 spacesubplot(1,2,2);semilogy(CSAConvCurve,'Color','g','linewidth',2)hold ontitle('Objective space')xlabel('Iteration');ylabel('Best score obtained so far');legend('CSA');axis tightgrid onbox on       

3 仿真结果

4 参考文献

[1]姚鹏, 冯超. 基于变色龙算法的工程优化应用[C]// 0.

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

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

matlab科研助手

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值