• 智能优化算法——混合领导优化算法(Matlab&Matlab代码实现)


    💥💥💞💞欢迎来到本博客❤️❤️💥💥

    🏆博主优势:🌞🌞🌞博客内容尽量做到思维缜密,逻辑清晰,为了方便读者。

    ⛳️座右铭:行百里者,半于九十。

    📋📋📋本文目录如下:🎁🎁🎁

    目录

    💥1 概述

    📚2 运行结果

    2.1 Python运行结果

    2.2 Matlab代码实现

    🎉3 参考文献

    🌈4 Matlab代码、Python代码实现


    💥1 概述

    本文提出了一种新的优化算法,称为基于领导者的混合优化( HLBO ),它适用于优化挑战。HLBO的主要思想是在混合领导者的指导下对算法种群进行引导。将HLBO的阶段分为勘探和开采两个阶段进行数学建模。通过对23个不同类型的单峰和多峰标准测试函数的求解,检验HLBO在优化中的有效性。单峰函数的优化结果表明,HLBO在局部搜索中具有较高的开发能力,能够更好地收敛到全局最优;而多峰函数的优化结果表明,HLBO在全局搜索中具有较高的探索能力。

    📚2 运行结果

    2.1 Python运行结果

    2.2 Matlab代码实现

    部分代码:

    1. Fun_name='F2'; % Name of the test function that can be from F1 to F23
    2. SearchAgents=10; % Number of search agents
    3. Max_iterations=1000; % Maximum numbef of iterations
    4. % Load details of the selected benchmark function
    5. [lowerbound,upperbound,dimension,fitness]=fun_info(Fun_name);
    6. [Best_score,Best_pos,HLBO_curve]=HLBO(SearchAgents,Max_iterations,lowerbound,upperbound,dimension,fitness);
    7. display(['The best solution obtained by HLBO is : ', num2str(Best_pos)]);
    8. display(['The best optimal value of the objective funciton found by HLBO is : ', num2str(Best_score)]);
    9. %% Draw objective space
    10. plots=semilogx(HLBO_curve,'Color','g');
    11. set(plots,'linewidth',2)
    12. hold on
    13. title('Objective space')
    14. xlabel('Iterations');
    15. ylabel('Best score');
    16. axis tight
    17. grid on
    18. box on
    19. legend('HLBO')

    Fun_name='F2'; % Name of the test function that can be from F1 to F23 
    SearchAgents=10;  % Number of search agents
    Max_iterations=1000; % Maximum numbef of iterations

    % Load details of the selected benchmark function
    [lowerbound,upperbound,dimension,fitness]=fun_info(Fun_name);
    [Best_score,Best_pos,HLBO_curve]=HLBO(SearchAgents,Max_iterations,lowerbound,upperbound,dimension,fitness);


    display(['The best solution obtained by HLBO is : ', num2str(Best_pos)]);
    display(['The best optimal value of the objective funciton found by HLBO is : ', num2str(Best_score)]);

    %% Draw objective space
    plots=semilogx(HLBO_curve,'Color','g');
    set(plots,'linewidth',2)
    hold on
    title('Objective space')
    xlabel('Iterations');
    ylabel('Best score');

    axis tight
    grid on
    box on
    legend('HLBO')

    🎉3 参考文献

    文章中一些内容引自网络,会注明出处或引用为参考文献,难免有未尽之处,如有不妥,请随时联系删除。

    🌈4 Matlab代码、Python代码实现

  • 相关阅读:
    JDK的配置及运行过程
    HTTP协议及Servlet类笔记
    AutoDL使用手册
    不明身份人员如何确认?幼儿园出新招了
    【NODE.JS】Buffer
    RedCap推动5G规模应用,紫光展锐赋能产业高质量发展
    前端 WebSocket 的一些使用
    深度学习快速入门----Pytorch 系列1
    PyTorch 张量数据类型
    MySQL技能树学习总结
  • 原文地址:https://blog.csdn.net/Yan_she_He/article/details/133379221