使用遗传算法的时间表调度。
项目描述
遗传表
使用遗传算法的时间表调度。
由Dipan Nanda和Ashish Shah (c) 2021开发
使用示例
from genetictabler import generate_timetable
total_classes = 4
no_courses = 8
slots = 6
total_days = 7
daily_repetition = 3
"""
Variable Definitions:
-total_classes: It is the count of total number of
timetables you want. Suppose If you
4 batches/student groups for CS freshmen
all studying the same courses/modules/subjects
you can generate 4 different yet coherent
yet timetables without having any clashes.
-no_courses: It is the count of total number of
courses/modules/subjects that a class
or classes are going to be taught.
For example if a class is going to be
taught only maths, physics, chemistry and CS
then total count will be 4.
-slots: it is the count of total lectures that are
to be scheduled each day.
-total_days: It is the count of total number of days for
which you want to schedule the timetable.
For example a weekly timetable will have total
5/6 days. A monthly schedule can be of 25 days.
-daily_repitition:
It is the maximum allowed number of times a
course/subject/module can have lectures per day.
It is used when the slots count is more than
no_courses
"""
table = generate_timetable(
total_classes,
no_courses,
slots,
total_days,
daily_repetition,
)
# The table returned by the above function call is a 3-dimensional list/array
# It is a list of timetables for each class which in itself are 2d arrays.
# Loop to print all the timetables.
for i in table:
for j in class:
print(j)
print("-----------------------------------")
变更日志
去这里查看完整的变更日志。
执照
这是在 GNU GPL v3.0 许可下
项目详情
下载文件
下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。
源分布
generictabler-1.0.3.tar.gz
(6.6 kB
查看哈希)
内置分布
generictabler-1.0.3-py3-none-any.whl
(7.1 kB
查看哈希)
关
generictabler -1.0.3.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 5c3f158d6cd6a12f97ee8158f085311f1d4bdd8ff8afca1db8b6b840ef319fe4 |
|
MD5 | e5a905ad21199ca8e06215d7dd577a59 |
|
布莱克2-256 | e99dd43c0f852a655ef23cf9b3243a5ee9c97c1523a28c5a153c01cd7b3411ad |
关
generictabler -1.0.3-py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | f62773647fd1e6e6d07cd3ddaf4f3938bf641563561f72d1186eb2cfb6d7c1a7 |
|
MD5 | fb86e4baf2236593a97604d243191917 |
|
布莱克2-256 | 1a3132835efcd3c2d543ae6a003de707d9f260ea2679b2656e404dc685a0bd92 |