摘要
针对传统方法求解投资问题难度大、不易实现等问题,通过分析基本萤火虫算法缺点,设计了一种改进的自适应步长萤火虫算法用于求解该问题.利用正切函数使步长自适应变化,为算法加入了惯性线性因子,利用种群最优个体重新定义位置更新公式;为了避免算法陷入局部最优,为算法设计了两种变异操作;最后,将改进萤火虫算法应用于投资组合问题中.计算结果表明:改进萤火虫算法求解该问题具有明显优势.
Aiming at the difficulty of solving the investment problem by the traditional method,an improved adaptive step size firefly algorithm is designed to solve it by analyzing the shortcomings of the basic firefly algorithm.The tangent function is used to make the step size change adaptable.The inertial linear factor is added to the algorithm,and the position updating formula is redefined by using the optimal individual of the population.In order to avoid the algorithm falling into the local optimum,two kinds of mutation operations are designed for the algorithm.Finally,the improved firefly algorithm is applied to the portfolio problem,and the results show that the improved firefly algorithm has obvious advantages in solving the problem.
作者
汤涛
王付宇
TANG Tao;WANG Fuyu(School of Management Science and Engineering,Anhui University of Technology,Ma’anshan 243032,China)
出处
《广西科技大学学报》
2021年第1期121-125,共5页
Journal of Guangxi University of Science and Technology
基金
国家自然科学基金项目(71872002)资助。
关键词
投资组合
萤火虫算法
自适应步长
惯性因子
变异
investment portfolio
firefly algorithm
adaptive step size
inertia factor
variation