欢迎访问《兵工学报》官方网站,今天是 分享到:

兵工学报 ›› 2019, Vol. 40 ›› Issue (6): 1310-1316.doi: 10.3969/j.issn.1000-1093.2019.06.023

• 研究简报 • 上一篇    下一篇

基于蚁群算法的测试任务调度优化方法

胡涛1, 马晨辉2, 申立群1, 梁洁1   

  1. (1.哈尔滨工业大学 仪器科学与工程学院, 黑龙江 哈尔滨 150001; 2.北京宇航系统工程研究所, 北京 100076)
  • 收稿日期:2018-07-30 修回日期:2018-07-30 上线日期:2019-08-14
  • 作者简介:胡涛(1976—), 男, 副教授, 博士, 硕士生导师。 E-mail: hutao@hit.edu.cn

Scheduling Optimization of Test Tasks Based on Ant Colony Algorithm

HU Tao1, MA Chenhui2, SHEN Liqun1, LIANG Jie1   

  1. (1.School of Instrumentation Science and Engineering, Harbin Institute of Technology, Harbin 150001, Heilongjiang, China; 2.Beijing Institute of Aerospace Systems Engineering, Beijing 100076, China)
  • Received:2018-07-30 Revised:2018-07-30 Online:2019-08-14

摘要: 复杂系统测试通常存在任务复杂、测试时间长、资源浪费等问题,对资源和任务进行合理调度具有重要实用价值。提出基于蚁群算法的测试任务并行任务调度优化方法,对测试问题进行描述,与蚁群算法结合,设计了启发函数、状态转移规则;根据算法流程获得测试时间最短的任务调度序列;针对任务序列多解的问题,提出资源均衡度的评价标准,得到最优的资源任务调度序列。基于蚁群算法解决了复杂测试系统任务调度问题,对某实际测试系统资源任务集进行调度仿真,并与随机穷举法对比验证算法的有效性,结果表明该方法能大大节约测试时间。测试实例与当前常用的半串行测试进行对比,测试效率提升了43.07%;所得结果为最短测试时间任务调度序列中资源均衡度最高的。

关键词: 任务调度, 并行测试, 蚁群算法, 资源均衡度

Abstract: The problems of complex tasks, long test time, and wasting of resources exist in the test of complex system. The reasonable scheduling of the resources and tasks is of great importance in real application. An optimization method for parallel task scheduling of test process based on ant colony algorithm is proposed. Considering ant colony algorithm, the heuristic function and state transition rule are designed to describe test problem. The task scheduling sequence with the shortest test time can be obtained according to the algorithm flow. To solve the multi solution problem of task sequence, an evaluation criterion based on resource balance degree is proposed to get the optimal task scheduling sequence. The task scheduling problem of complex system is solved by using the ant colony algorithm. A real test task was scheduled and simulated. Effectiveness of the proposed method is verified by comparing with the random exhaustive method. Results show that the proposed method can save test time greatly and improve the test efficiency by 43.07% compared with the semi-serial test, and the balance degree of resources in the task scheduling sequence with the shortest test time is the highest. Key

Key words: taskscheduling, paralleltest, antcolonyalgorithm, resourcebalancedegree

中图分类号: