吴虎胜, 张凤鸣, 吴庐山. 一种新的群体智能算法 ——狼群算法[J]. 系统工程与电子技术, 2013, 35(11): 2430-2438.
周强,周永权.一种基于领导者策略的狼群搜索算法[J].计 算机应用研究,2013,30(9):2629-2632.
WPA.py
为算法具体实现,游走部分是基于领导者策略的方法。- 在
function.py
中添加func
写需要测试的函数,传入参数X
为[人工狼数][参数量]的一个矩阵
.当前调用为func6
参数为6个
测试下来前期收敛还是非常快滴,后期速度比较慢。结果的精度和变量的取值范围min_d,max_d
有蛮大的关系。