基于分布式势博弈算法的排课方法研究

2018-01-09 13:37:45郑加石廉政
软件导刊 2017年12期

郑加石+廉政

摘要:排课问题已被证明是NP完全问题,排课问题的难度随课表规模的增大而增加。通过对排课问题建立图形着色模型,采用分布式勢博弈算法求解。分布式势博弈算法从局部最优入手,最终形成全局最优,适用于排课问题求解;同时势博弈算法对排课问题中课表微调问题的响应是高效的。实践表明,相较于遗传算法、模拟退火算法,分布式势博弈算法对解决排课系统问题具有独特优势。

关键词:NP完全问题;势博弈;分布式势博弈算法;图形着色

DOIDOI:10.11907/rjdk.171696

中图分类号:TP319

文献标识码:A 文章编号:1672-7800(2017)012-0152-03

Abstract:Scheduling Problem has been proved to be an NP-complete problem, the difficulty of scheduling problem increases with increasing size of the curriculum. Through establishing graphics rendering model and applying to scheduling problem, a distributed potential algorithm is introduced. Distributed potential game algorithm starts to solve the problem from local optimum, which eventually forms the global optimum for the Scheduling Problem. At the same time the potential game algorithm is efficient in response to the course arrangement where there is a micro change in timetable. Practice shows that compared to genetic algorithms, simulated annealing algorithm, distributed game algorithm is unique and effective to solve the Scheduling Problem.

Key Words:scheduling problem; distributed; potential game; graphics rendering

0 引言

早在20世纪70年代,排课问题就被证明是NP完全问题[1]。排课问题的复杂度随问题规模的增大而剧烈增加。目前,对于NP完全问题求解主要是通过寻找一些降低计算复杂度的近似算法,没有通用算法,因而诸如动态规划[2]、遗传算法[3]、模拟退火算法[4]等用于近似求解NP完全问题的算法都可以用于解决排课问题。这类算法的共同特征是集中式处理,如果已排好的课表出现了某些变动而需要重排,则算法对这种动态变化响应并不及时。针对上述问题,建立排课问题的图论模型,提出使用多代理系统的分布式博弈算法[5]对课表进行编排。使用多代理系统的分布式博弈学习算法对课表进行编排的优点是:对于已经编排好的课表,如果某一部分课表发生变动,只需进行局部调整便可生成新的课表,效率得到极大提高。

1 问题描述

影响排课的因素是多方面的,主要是由教师、教室、课程、班级和时间组成的五元组,排课目标是实现这5个元素配置的最优化,使得教学资源得到合理分配及利用。……

登录APP查看全文