CN109255512B - University course arrangement method based on Monte Carlo genetic algorithm - Google Patents

University course arrangement method based on Monte Carlo genetic algorithm Download PDF

Info

Publication number
CN109255512B
CN109255512B CN201810763134.7A CN201810763134A CN109255512B CN 109255512 B CN109255512 B CN 109255512B CN 201810763134 A CN201810763134 A CN 201810763134A CN 109255512 B CN109255512 B CN 109255512B
Authority
CN
China
Prior art keywords
time
class
population
course
individual
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810763134.7A
Other languages
Chinese (zh)
Other versions
CN109255512A (en
Inventor
张贵军
陈安
谢腾宇
孙科
宋焦朋
魏遥
周晓根
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang University of Technology ZJUT
Original Assignee
Zhejiang University of Technology ZJUT
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang University of Technology ZJUT filed Critical Zhejiang University of Technology ZJUT
Priority to CN201810763134.7A priority Critical patent/CN109255512B/en
Publication of CN109255512A publication Critical patent/CN109255512A/en
Application granted granted Critical
Publication of CN109255512B publication Critical patent/CN109255512B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06316Sequencing of tasks or work
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/12Computing arrangements based on biological models using genetic models
    • G06N3/126Evolutionary algorithms, e.g. genetic algorithms or genetic programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/20Education
    • G06Q50/205Education administration or guidance

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Theoretical Computer Science (AREA)
  • Strategic Management (AREA)
  • Biophysics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Educational Administration (AREA)
  • Economics (AREA)
  • General Physics & Mathematics (AREA)
  • Tourism & Hospitality (AREA)
  • Marketing (AREA)
  • Evolutionary Biology (AREA)
  • Educational Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • General Business, Economics & Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Biomedical Technology (AREA)
  • Operations Research (AREA)
  • Physiology (AREA)
  • Genetics & Genomics (AREA)
  • Artificial Intelligence (AREA)
  • Game Theory and Decision Science (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Development Economics (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Primary Health Care (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

A university course arrangement method based on Monte Carlo genetic algorithm, carry on splice form a time strip at random to the class, course, teacher, time and classroom information obtained at first, then, form an individual, namely the school timetable, a plurality of individuals form a group by a plurality of time strips that meet constraint condition; selecting an individual with the optimal fitness of the current population, carrying out cross variation on the individual, and adopting a Monte Carlo probability receiving method in the cross process; and finally, transforming according to the set iteration times, and taking the optimal individual in the population of the last generation as a final prediction result. The invention provides a course arrangement method for colleges and universities, which can reasonably allocate various teaching resources.

Description

University course arrangement method based on Monte Carlo genetic algorithm
Technical Field
The invention relates to the fields of course arrangement in teaching, intelligent optimization and computer application in colleges and universities, in particular to a course arrangement method in colleges and universities based on a Monte Carlo genetic algorithm.
Background
In recent years, with the implementation of national talent plans, the demand of colleges and universities for students is increased, and meanwhile, the phenomena of shortage of college resource handling, increased pressure of teaching management and the like occur. Especially in the aspect of course arrangement in colleges and universities, before the course is opened in each school period, the educational administration staff arranges a group of proper teaching time and space, namely a school timetable, for the opened course by utilizing the existing teaching resources, so that students can reasonably arrange the time, the learning efficiency is improved, and the teaching work can normally and orderly run. At present, most institutes and universities still adopt manual course arrangement, with the gradual expansion of the study scale of colleges and universities, the types of subjects, the professional number, the class number, the number of classes and the number of students are increased, the situation that classroom resource conflict or teacher resource conflict is difficult to solve by manual course arrangement is more and more, the inevitable work is complicated, the workload is huge, the defects of low efficiency are more and more prominent, and meanwhile, the manual operation is not easy to fully utilize resources to meet the constantly changing requirements.
The randomness of relying on human brain is strong when people arrange classes manually, and the people do not have strict working steps, think which arranges which, so the people can be out of consideration. The computer works in a mode different from that of the human brain, does not have the divergent thinking ability of the human brain, converts all information into data, converts the human thinking into specific rules and algorithms, and processes the data by using the algorithms through the computer language. If the computer is used for simulating the thinking process of the human brain to carry out course arrangement, the computer has high running speed and high processing capacity, and can quickly obtain a feasible scheme meeting the constraint, so that a plurality of scientific, accurate and used course arrangement schemes are compiled for teachers to select and then are manually finely adjusted, the workload of the teachers can be greatly reduced, the teachers can finish other work within more time, the teaching management work efficiency is improved, various teaching resources are optimized and configured, the teaching management quality of the whole school is also improved, and the informatization process of teaching reform of colleges and universities is promoted.
Disclosure of Invention
In order to overcome the defects that the situation that classroom resource conflict or teacher resource conflict is difficult to solve in manual course arrangement and inevitable work is complicated, the workload is huge and the efficiency is low in course arrangement, the invention provides a university course arrangement method based on a Monte Carlo genetic algorithm.
The technical scheme adopted by the invention for solving the technical problems is as follows:
a university course arrangement method based on a Monte Carlo genetic algorithm comprises the following steps:
1) and (3) encoding: acquiring class basic information C ═ { C ═ C1,c2,c3,…,cj,…,cnThe basic information W ═ W1,w2,w3,…,wh,…,wmThe teacher basic information T ═ T1,t2,t3,…,tu,…,tvThe class time information D ═ D }1,d2,d3,…,dy,…,dlAnd classroom basic information P ═ P1,p2,p3,…,pr,…,pbWhere n denotes the total number of classes, m denotes the total number of classes, v denotes the total number of teachers, l denotes the total number of hours in class, b denotes the total number of classrooms, c denotes the total number of classroomsj、wh、tu、dy、prThe inner codes are each composed of 4 decimal numbers. For a period of time dyWhen coding, dy=dy1dy2dy3dy4Dividing a day into five time segments, wherein dy1Indicating that the course is first on the day of the week, dy2Indicating the time period during which the lesson was first attended, dy3Indicating that the course is on the second day of the week, dy4Indicating the time period during which the lesson is to be taken for the second time, e.g. dy1225 represents the second lesson day of the week, the first lesson day, and the fifth lesson day of the week. For course whWhen coding, each course has a corresponding one-day time period class efficiency value wh={wh1,wh2,wh3,wh4,wh5In which wh1A class efficiency value representing a first time period. For teacher tuWhen coding, each timeEach teacher has an efficiency value t corresponding to the time period of one dayu={tu1,tu2,tu3,tu4,tu5}. Through the analysis and classification of class, course, teacher, class time and classroom information, the class, the teacher and the classroom information are finally expressed as Ai=cj~wh~tu~dy~prForm is coded, wherein AiThe time bar is called the ith time bar in a population, the time bar represents that j classes teach h courses in r classrooms by u teachers in y time periods, and individuals in the population are formed by j x h time bars;
2) the fitness function of an individual is shown in equation (1),
Figure BDA0001728359470000021
wherein f isi=k1*fi1+k2*fi2+k3*fi3Indicating the fitness of the ith time bar in the individual, wherein
Figure BDA0001728359470000022
Shows the influence of the interval between two sessions in a week,
Figure BDA0001728359470000023
representing the impact of the course scheduling during a week, wherein z1,z2Respectively represents dy2And dy4Index of corresponding time period, e.g. if dy2When representing a second time period, z1Then is 2, therefore
Figure BDA0001728359470000024
Is denoted as wh2The efficiency value of the air conditioner is improved,
Figure BDA0001728359470000031
represents the impact of the teacher's schedule over the week, where x1,x2Respectively represents dy2And dy4Index of corresponding time period, e.g. if dy2When representing the second time period, x1Then is 2, therefore
Figure BDA0001728359470000032
Then it is denoted as tu2Efficiency value, k1,k2,k3Representing their corresponding weights;
3) population initialization, the process is as follows:
the population size NP is characterized in that the current population algebra stage is 1, the variation probability is mutate, the maximum iteration number is N, and the constraint condition of the population is as follows: a teacher can only arrange one course in the same time period, one class can only arrange one course in the same time period, the same classroom can only arrange one course in the same time period, and the capacity of the classroom should be larger than the number of people in class; randomly generating initial population Q meeting constraint conditionsinit={S1,S2,…,SNPIn which S isNPRepresents the Nth class schedule, i.e. the individual;
4) population crossing, the process is as follows:
4.1) calculating the current population QcurrentSelecting the optimal individual S according to the fitness of each individualbest
4.2) in the optimal Individual SbestRandomly selecting a time bar SbestArandomThen randomly selecting a time bar S from other individuals in the populationotherAotherrandomThe class time d in the two time barsyAnd classroom prCarrying out exchange;
4.3) in the optimal Individual SbestJudging whether the exchanged individuals meet constraint conditions, if so, continuing to execute the next step, and if not, returning to the step 4.2);
4.4) calculating the individual fitness S after exchangebestFbehindAnd the optimal individual fitness S before exchangebestFfrontDifference between them Δ Fbehind-front=SbestFbehind-SbestFfrontIf Δ Fbehind-frontIf the number is more than 0, the individuals with better cross yield are received as next generation individuals, other individuals are not changed, and finally the generation is carried outProgeny population Qreproduct(ii) a If Δ Fbehind-front< 0 using the Monte Carlo probability
Figure BDA0001728359470000033
Receiving, where KT is the temperature coefficient, if ZMontoIf > rand (0,1), receiving the exchange of the time bar; otherwise, refusing the time bar exchange;
5) population variation, the process is as follows:
calculating newly generated offspring population QreproductSelecting the optimal individual S according to the fitness of each individualreproductbestRandomly selecting a time bar S from the optimal individualsreproductbestArandomIf the mute is more than random (0,1), the class time and the classroom information are randomly selected from the class time D and the classroom information P to re-time the time bar SreproductbestArandomAssembling the class time and classroom information; otherwise, no operation is performed;
6) updating the current population algebra stage to stage +1, and returning to the step 4 if the stage is less than N; otherwise, the maximum iteration number is met, and the population optimization is finished.
The technical conception of the invention is as follows: firstly, randomly splicing acquired class, course, teacher, time and classroom information to form a time bar, then forming an individual, namely a class schedule, by a plurality of time bars meeting constraint conditions, and forming a group by a plurality of individuals; selecting an individual with the optimal fitness of the current population, carrying out cross variation on the individual, and adopting a Monte Carlo probability receiving method in the cross process; and finally, transforming according to the set iteration times, and taking the optimal individual in the population of the last generation as a final prediction result.
The beneficial effects of the invention are as follows: the Monte Carlo probability receiving method is integrated into the intersection of the genetic algorithm, so that the population can better jump out of the local optimal condition, and the population is closer to the optimal solution.
Drawings
FIG. 1 is a basic flow chart of a monte Carlo genetic algorithm course arrangement method.
Fig. 2 is a school timetable diagram obtained by the monte carlo genetic algorithm course arrangement method.
Detailed Description
The invention is further described below with reference to the accompanying drawings.
Referring to fig. 1 and 2, a university course scheduling method based on a monte carlo genetic algorithm includes the following steps:
1) and (3) encoding: acquiring class basic information C ═ { C ═ C1,c2,c3,…,cj,…,cnThe basic information W ═ W1,w2,w3,…,wh,…,wmThe teacher basic information T ═ T1,t2,t3,…,tu,…,tvThe class time information D ═ D }1,d2,d3,…,dy,…,dlAnd classroom basic information P ═ P1,p2,p3,…,pr,…,pbWhere n denotes the total number of classes, m denotes the total number of classes, v denotes the total number of teachers, l denotes the total number of hours in class, b denotes the total number of classrooms, c denotes the total number of classroomsj、wh、tu、dy、prThe inner codes are each composed of 4 decimal numbers. For a period of time dyWhen coding, dy=dy1dy2dy3dy4Dividing a day into five time segments, wherein dy1Indicating that the course is first on the day of the week, dy2Indicating the time period during which the lesson was first attended, dy3Indicating that the course is on the second day of the week, dy4Indicating the time period during which the lesson is to be taken for the second time, e.g. dy1225 represents the second lesson day of the week, the first lesson day, and the fifth lesson day of the week. For course whWhen coding, each course has a corresponding one-day time period class efficiency value wh:{wh1,wh2,wh3,wh4,wh5In which wh1A class efficiency value representing a first time period. For teacher tuWhen coding, each teacher has a corresponding one-day time periodEfficiency value t in classu:{tu1,tu2,tu3,tu4,tu5}. Through the analysis and classification of class, course, teacher, class time and classroom information, the class, the teacher and the classroom information are finally expressed as Ai=cj~wh~tu~dy~prForm is coded, wherein AiThe time bar is called the ith time bar in a population, the time bar represents that j classes teach h courses in r classrooms by u teachers in y time periods, and individuals in the population are formed by j x h time bars;
2) the fitness function of an individual is shown in equation (1),
Figure BDA0001728359470000051
wherein f isi=k1*fi1+k2*fi2+k3*fi3Indicating the fitness of the ith time bar in the individual, wherein
Figure BDA0001728359470000052
Shows the influence of the interval between two sessions in a week,
Figure BDA0001728359470000053
representing the impact of the course scheduling during a week, wherein z1,z2Respectively represents dy2And dy4Index of corresponding time period, e.g. if dy2When representing a second time period, z1Then is 2, therefore
Figure BDA0001728359470000054
Is denoted as wh2The efficiency value of the air conditioner is improved,
Figure BDA0001728359470000055
represents the impact of the teacher's schedule over the week, where x1,x2Respectively represents dy2And dy4Index of corresponding time period, e.g. if dy2When representing the second time period, x1Then is 2, therefore tuz1Then watchShown as tu2Efficiency value, k1,k2,k3Representing their corresponding weights;
3) population initialization, the process is as follows:
the population size NP is characterized in that the current population algebra stage is 1, the variation probability is mutate, the maximum iteration number is N, and the constraint condition of the population is as follows: a teacher can only arrange one course in the same time period, one class can only arrange one course in the same time period, and the capacity of the classroom should be larger than the number of people in the class; randomly generating initial population Q meeting constraint conditionsinit={S1,S2,…,SNPIn which S isNPRepresents the Nth class schedule, i.e. the individual;
4) population crossing, the process is as follows:
4.1) calculating the current population QcurrentSelecting the optimal individual S according to the fitness of each individualbest
4.2) in the optimal Individual SbestRandomly selecting a time bar SbestArandomThen randomly selecting a time bar S from other individuals in the populationotherAotherrandomThe class time d in the time baryAnd classroom prCarrying out exchange;
4.3) in the optimal Individual SbestJudging whether the individual meets the constraint condition in the exchanged time bar, if so, continuing to execute the next step, and if not, returning to the step 4.2);
4.4) calculating the exchanged individual fitness SbestFbehindAnd the optimal individual fitness S before exchangebestFfrontDifference between them Δ Fbehind-front=SbestFbehind-SbestFfrontIf Δ Fbehind-frontIf the number is more than 0, the better individuals are obtained through crossing, the better individuals are received as next generation individuals, other individuals are unchanged, and finally the offspring population Q is generatedreproduct(ii) a If Δ Fbehind-front< 0 using the Monte Carlo probability
Figure BDA0001728359470000061
Receiving, where KT is a temperature coefficient, is a constant, if ZMontoIf > rand (0,1), receiving the exchange of the time bar; otherwise, refusing the time bar exchange;
5) population variation, the process is as follows:
calculating the current population, namely the newly generated offspring population QreproductThe fitness of each individual is summed, and the optimal individual S is selectedreproductbestRandomly selecting a time bar S from the optimal individualsreproductbestArandomIf the mute is more than random (0,1), the class time and the classroom information are randomly selected from the class time D and the classroom information P to re-time the time bar SreproductbestArandomAssembling the class time and classroom information; otherwise, no operation is performed;
6) updating the current population algebra stage to stage +1, and returning to the step 4 if the stage is less than N; otherwise, the maximum iteration number is met, and the population optimization is finished.
The example takes a college of colleges and universities in Hangzhou as an example, and the college course arrangement method based on the Monte Carlo genetic algorithm comprises the following steps:
1) and (3) encoding: the obtained class, course, teacher, class time and classroom information are coded, wherein the code C of the class is {1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112}, the code W of the course is {1101,1102,1103,1104,1105,1106,1107,1108,1109,1110}, the code T of the teacher is {1101,1102,1103,1104,1105,1106,1107,1108,1109,1110}, and the code D of the class time is {1121,1122,1123,1124,1125,1131,1132,1133,1134,1135,1141,1142,1143,1144,1145,1151,1152,1153,1154,1155,1221,1222, 3,1224,1225,1231,1232,1233,1234, 1245, 1241,1242,1243,1244,1245,1251,1252,1253,1254,1255,1321, 1323,1324,1325, 1421, 1332,1333,1334, 1345, 1342,1343, 1353, 1553, 1551, 1553, 1551, 1554, 1553, 1433, 1431, 1433, 1554, 1553,1554, 1553, 1433, 1554, 1553,1554, 1553,1554, 1553, 1432, 1553, 1551, 1553,1554, 2141, 1553,1554, 1553, 1551, 1554, 1553, 1551, 1553,1554, 1553,1554, 1553, 1551, 1554, 1553, 3,1554, 1553,1554, 1553, 1551, 1554, 1551, 1553, 1551, 1553, 3, 1553,1554, 1533, 1554, 1551, 1553,1554, 1551, 1554, 3,1554,15551,2152,2153,2154,2155,2231,2232,2233,2234,2235,2241,2242,2243,2244,2245,2251,2252,2253,2254,2255,2331,2332,2333,2334,2335,2341,2342,2343,2344,2345,2351,2352,2353,2354,2355,2431,2432,2433,2434,2435,2441,2442,2443,2444,2445,2451,2452,2453,2454,2455,2531,2532,2533,2534,2535,2541,2542,2543,2544,2545,2551,2552,2553,2554,2555,3141,3142,3143,3144,3145,3151,3152,3153,3154,3155,3241,3242,3243,3244,3245,3251,3252,3253,3254,3255,3341,3342,3343,3344,3345,3351,3352,3353,3354,3355,3441,3442,3443,3444,3445,3451,3452,3453,3454,3455,3541,3542,3543,3544,3545,3551,3552,3553,3554,3555,4151,4152,4153,4154,4155,4251,4252,4253,4254,4255,4351,4352,4353,4354,4355,4451,4452,4453,4454,4455,4551,4552,4553,4554,4555} and a classroom encoding P ═ 0114,0125,0134,0211,0224,0234,0335,0334,0341, where for 1101 in the class encoding, the first digit represents the corresponding college, the second digit represents the corresponding specialty, the last two digits represent the class, for 1101 in the course encoding, the first digit represents the corresponding college, the second digit represents the corresponding specialty, the last two digits represent the course, for 1101 in the teacher encoding, the first digit represents the corresponding college, the second digit represents the corresponding specialty, the last two digits represent the teacher's job number, and for time period D encoding, the day is divided into five time periods, such as Dy1225 represents the second lesson day of the week, the first lesson day, and the fifth lesson day of the week. In course coding, each course has an efficiency value corresponding to a time of day, such as efficiency value 1101 corresponding to course 1101: {0.5,0.25,0,0.25,0.5}, representing 1101 class benefit values for the class over 5 time periods. In teacher coding, each teacher has efficiency values 1101 corresponding to the time period of one day, for example, the efficiency value 1101 corresponds to the teacher number 1101: {1,0,0.25,0.25,0.5}. Finally, integrating the class, the course, the teacher, the class time and the classroom codes to form a time bar;
2) the fitness function of an individual is shown in equation (1),
Figure BDA0001728359470000071
wherein f isi=k1*fi1+k2*fi2+k3*fi3Indicating the fitness of the ith time bar in the individual, wherein
Figure BDA0001728359470000072
Shows the influence of the interval between two sessions in a week,
Figure BDA0001728359470000073
representing the impact of the course scheduling during a week, wherein z1,z2Respectively represents dy2And dy4Index of corresponding time period, e.g. if dy2When representing a second time period, z1Then is 2, therefore
Figure BDA0001728359470000074
Is denoted as wh2The efficiency value of the air conditioner is improved,
Figure BDA0001728359470000081
represents the impact of the teacher's schedule over the week, where x1,x2Respectively represents dy2And dy4Index of corresponding time period, e.g. if dy2When representing the second time period, x1Then is 2, therefore
Figure BDA0001728359470000082
Then it is denoted as tu2Efficiency value, where k1=0.6,k2=0.3,k3=0.1;
3) Population initialization, the process is as follows:
the population scale is 50, the current population algebra stage is 1, the variation probability is 0.1, the maximum iteration number is 1000, and the constraint condition of the population is as follows: a teacher can only arrange one course in the same time period, one class can only arrange one course in the same time period, and the capacity of the classroom should be larger than the number of people in the class; randomly generating initial population Q meeting constraint conditionsinit={S1,S2,…,S50};
4) Population crossing, the process is as follows:
4.1) calculating the current population QcurrentSelecting the optimal individual S according to the fitness of each individualbest
4.2) in the optimal Individual SbestRandomly selecting a time bar SbestArandomThen randomly selecting a time bar S from other individuals in the populationotherAotherrandomThe class time d in the time baryAnd classroom prCarrying out exchange;
4.3) in the optimal Individual SbestJudging whether the individual meets the constraint condition in the exchanged time bar, if so, continuing to execute the next step, and if not, returning to the step 4.2);
4.4) calculating the exchanged individual fitness SbestFbehindAnd the optimal individual fitness S before exchangebestFfrontDifference between them Δ Fbehind-front=SbestFbehind-SbestFfrontIf Δ Fbehind-frontIf the number is more than 0, the better individuals are obtained through crossing, the better individuals are received as next generation individuals, other individuals are unchanged, and finally the offspring population Q is generatedreproduct(ii) a If Δ Fbehind-front< 0 using the Monte Carlo probability
Figure BDA0001728359470000083
Receiving, where KT ═ 2, is a constant, if ZMontoIf > rand (0,1), receiving the exchange of the time bar; otherwise, refusing the time bar exchange;
5) population variation, the process is as follows:
calculating the current population, namely the newly generated offspring population QreproductThe fitness of each individual is summed, and the optimal individual S is selectedreproductbestRandomly selecting a time bar S from the optimal individualsreproductbestArandomIf the mute is more than random (0,1), the class time and the classroom information are randomly selected from the class time D and the classroom information P to re-time the time bar SreproductbestArandomAssembling the class time and classroom information; whether or notThen, do not operate;
6) updating the current population algebra stage to stage +1, and returning to the step 4 if the stage is less than N; otherwise, the maximum iteration number is met, and the population optimization is finished.
While the foregoing has described the preferred embodiments of the present invention, it will be apparent that the invention is not limited to the embodiments described, but can be practiced with modification without departing from the essential spirit of the invention and without departing from the spirit of the invention.

Claims (1)

1. A university course arrangement method based on a Monte Carlo genetic algorithm is characterized by comprising the following steps:
1) and (3) encoding: acquiring class basic information C ═ { C ═ C1,c2,c3,…,cj,…,cnThe basic information W ═ W1,w2,w3,…,wh,…,wmThe teacher basic information T ═ T1,t2,t3,…,tu,…,tvThe class time information D ═ D }1,d2,d3,…,dy,…,dlAnd classroom basic information P ═ P1,p2,p3,…,pr,…,pbWhere n denotes the total number of classes, m denotes the total number of classes, v denotes the total number of teachers, l denotes the total number of hours in class, b denotes the total number of classrooms, c denotes the total number of classroomsj、wh、tu、dy、prThe inner codes are all composed of 4 decimal numbers; for a period of time dyWhen coding, dy=dy1dy2dy3dy4Dividing a day into five time segments, wherein dy1Indicating that the course is first on the day of the week, dy2Indicating the time period during which the lesson was first attended, dy3Indicating that the course is on the second day of the week, dy4Indicating the time period during which the lesson is to be taken for the second time, e.g. dy1225 represents the second lesson of the week with the first lesson time of Monday, the second lessonThe fifth section of the lesson time of tuesday; for course whWhen coding, each course has a corresponding one-day time period class efficiency value wh={wh1,wh2,wh3,wh4,wh5In which wh1A class efficiency value representing a first time period; for teacher tuDuring coding, each teacher has a corresponding class efficiency value t in one day time periodu={tu1,tu2,tu3,tu4,tu5}; through the analysis and classification of class, course, teacher, class time and classroom information, the class, the teacher and the classroom information are finally expressed as Ai=cj~wh~tu~dy~prForm is coded, wherein AiThe time bar is called the ith time bar in a population, the time bar represents that j classes teach h courses in r classrooms by u teachers in y time periods, and individuals in the population are formed by j x h time bars;
2) the fitness function of an individual is shown in equation (1),
Figure FDA0001728359460000011
wherein f isi=k1*fi1+k2*fi2+k3*fi3Indicating the fitness of the ith time bar in the individual, wherein
Figure FDA0001728359460000012
Shows the influence of the interval between two sessions in a week,
Figure FDA0001728359460000013
representing the impact of the course scheduling during a week, wherein z1,z2Respectively represents dy2And dy4Index of corresponding time period, e.g. if dy2When representing a second time period, z1Then is 2, therefore
Figure FDA0001728359460000014
Is denoted as wh2The efficiency value of the air conditioner is improved,
Figure FDA0001728359460000021
represents the impact of the teacher's schedule over the week, where x1,x2Respectively represents dy2And dy4Index of corresponding time period, e.g. if dy2When representing the second time period, x1Then is 2, therefore
Figure FDA0001728359460000022
Then it is denoted as tu2Efficiency value, k1,k2,k3Representing their corresponding weights;
3) population initialization, the process is as follows:
the population size NP is characterized in that the current population algebra stage is 1, the variation probability is mutate, the maximum iteration number is N, and the constraint condition of the population is as follows: a teacher can only arrange one course in the same time period, one class can only arrange one course in the same time period, the same classroom can only arrange one course in the same time period, and the capacity of the classroom should be larger than the number of people in class; randomly generating initial population Q meeting constraint conditionsinit={S1,S2,…,SNPIn which S isNPRepresents the Nth class schedule, i.e. the individual;
4) population crossing, the process is as follows:
4.1) calculating the current population QcurrentSelecting the optimal individual S according to the fitness of each individualbest
4.2) in the optimal Individual SbestRandomly selecting a time bar SbestArandomThen randomly selecting a time bar S from other individuals in the populationotherAotherrandomThe class time d in the two time barsyAnd classroom prCarrying out exchange;
4.3) in the optimal Individual SbestJudging whether the exchanged individuals meet constraint conditions, if so, continuing to execute the next step, and if not, returning to the step 4.2);
4.4) calculating the individual fitness S after exchangebestFbehindAnd the optimal individual fitness S before exchangebestFfrontDifference between them Δ Fbehind-front=SbestFbehind-SbestFfrontIf Δ Fbehind-frontIf the number is more than 0, the better individuals are obtained through crossing, the better individuals are received as next generation individuals, other individuals are unchanged, and finally the offspring population Q is generatedreproduct(ii) a If Δ Fbehind-front< 0 using the Monte Carlo probability
Figure FDA0001728359460000023
Receiving, where KT is the temperature coefficient, if ZMontoIf > rand (0,1), receiving the exchange of the time bar; otherwise, refusing the time bar exchange;
5) population variation, the process is as follows:
calculating newly generated offspring population QreproductSelecting the optimal individual S according to the fitness of each individualreproductbestRandomly selecting a time bar S from the optimal individualsreproductbestArandomIf the mute is more than random (0,1), the class time and the classroom information are randomly selected from the class time D and the classroom information P to re-time the time bar SreproductbestArandomAssembling the class time and classroom information; otherwise, no operation is performed;
6) updating the current population algebra stage to stage +1, and returning to the step 4 if the stage is less than N; otherwise, the maximum iteration number is met, and the population optimization is finished.
CN201810763134.7A 2018-07-12 2018-07-12 University course arrangement method based on Monte Carlo genetic algorithm Active CN109255512B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810763134.7A CN109255512B (en) 2018-07-12 2018-07-12 University course arrangement method based on Monte Carlo genetic algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810763134.7A CN109255512B (en) 2018-07-12 2018-07-12 University course arrangement method based on Monte Carlo genetic algorithm

Publications (2)

Publication Number Publication Date
CN109255512A CN109255512A (en) 2019-01-22
CN109255512B true CN109255512B (en) 2021-08-03

Family

ID=65051680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810763134.7A Active CN109255512B (en) 2018-07-12 2018-07-12 University course arrangement method based on Monte Carlo genetic algorithm

Country Status (1)

Country Link
CN (1) CN109255512B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110020831B (en) * 2019-03-29 2021-03-16 北京工业大学 Novel college entrance examination course arrangement method based on particle swarm optimization
CN110020805B (en) * 2019-04-11 2023-11-07 广东工业大学 Task schedule making method, device and medium
CN110610239B (en) * 2019-08-13 2022-04-05 浙江工业大学 Method for solving balanced transportation problem based on dynamic genetic algorithm
CN110738461B (en) * 2019-10-10 2022-09-30 青岛海信商用显示股份有限公司 Course arrangement method and equipment
CN111091344B (en) * 2019-11-15 2023-09-22 珠海丰实科技有限责任公司 Course arrangement method based on mountain climbing algorithm and parallel disturbance mixed search
CN111161112B (en) * 2019-12-27 2023-04-18 广东宜教通教育有限公司 Intelligent course scheduling method and system for administrative classes, computer equipment and storage medium
CN111178751B (en) * 2019-12-27 2024-01-23 广东宜教通教育有限公司 New college entrance examination shift intelligent course arrangement method, system, computer equipment and storage medium
CN111815279A (en) * 2020-07-08 2020-10-23 广州魔晶教育科技有限公司 Intelligent course arrangement method, device, terminal and storage medium based on genetic algorithm
CN114399191B (en) * 2022-01-11 2024-05-07 西安建筑科技大学 University course arrangement system and method based on building energy conservation

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104751388A (en) * 2015-03-01 2015-07-01 江西科技学院 Genetic algorithm based college course arranging method
CN106127355A (en) * 2016-07-19 2016-11-16 焦点科技股份有限公司 The cource arrangement method of a kind of high efficiency smart and system
CN107204133A (en) * 2017-06-15 2017-09-26 西安交通大学 A kind of automatic teaching and examination robot

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104751388A (en) * 2015-03-01 2015-07-01 江西科技学院 Genetic algorithm based college course arranging method
CN106127355A (en) * 2016-07-19 2016-11-16 焦点科技股份有限公司 The cource arrangement method of a kind of high efficiency smart and system
CN107204133A (en) * 2017-06-15 2017-09-26 西安交通大学 A kind of automatic teaching and examination robot

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
Maintenance Schedule Optimization Based on Failure Probability Distribution;Massaru Tezuka等;《Proceeding of the 2015 International Conference on Industrial Engineering and Operations Management》;20150325;全文 *
利用改进遗传算法破解排课难题;董玉锁等;《中国教育技术装备》;20180131(第1期);全文 *
基于遗传算法的排课系统;唐勇等;《计算机应用》;20021031(第10期);全文 *
基于遗传算法的排课系统的设计与实现;滕姿等;《计算机应用》;20071231;第27卷;全文 *
模块化柔性制造综合实训教学管理系统开发;张贵军等;《实验技术与管理》;20171231;第34卷(第12期);全文 *

Also Published As

Publication number Publication date
CN109255512A (en) 2019-01-22

Similar Documents

Publication Publication Date Title
CN109255512B (en) University course arrangement method based on Monte Carlo genetic algorithm
CN108280549A (en) A kind of senior middle school cource arrangement method under the class&#39;s of walking system based on improved adaptive GA-IAGA
CN109165799A (en) The class&#39;s of walking education course arrangement system based on genetic algorithm
Modupe et al. Development of a university lecture timetable using modified genetic algorithms approach
Prabodanie An integer programming model for a complex university timetabling problem: A case study
CN111784127A (en) Course arrangement system design method based on genetic algorithm
Spielauer What is dynamic social science microsimulation
Alnowaini et al. Genetic Algorithm for solving university course timetabling problem using dynamic chromosomes
Amburgey et al. Using business intelligence in college admissions: a strategic approach
Austero et al. Solving course timetabling problem using Whale Optimization Algorithm
CN114781806A (en) Multi-combination course arrangement method and device based on multi-objective evolutionary algorithm and readable medium
Cazarez-Castro et al. Fuzzy differential equations as a tool for teaching uncertainty in engineering and science
Ulum et al. Implementation of genetic algorithm in the current scheduling system
Ferdoushi et al. Highly constrained university course scheduling using modified hybrid particle swarm optimization
Faisal Dynamic Monitoring and Assessment for Digital Transformation in Higher Education
Long A genetic algorithm based method for timetabling problems using linguistics of hedge algebra in constraints
Aristayudha et al. Overview of Self Leadership during the COVID-19 Pandemic
Abdelhamid et al. Agent-based intelligent academic advisor system
Yuliaty Human resources management in developing learning strategies in the new normal era
Katz The historical relationship between affective variables and ICT based learning and instruction and achievement in the Israeli school system
Boldyreva et al. Automation of e-workshop project control for knowledge-intensive areas
Haynes Complexity, quantification and the management of policy
Gabriel et al. Faculty course scheduling optimization
Chen et al. Research Article A Novel Optimization Approach for Educational Class Scheduling with considering the Students and Teachers’ Preferences
Fakhurazi et al. AN APPLICATION OF INTEGER LINEAR PROGRAMMING TOWARDS UNIVERSITI MALAYSIA TERENGGANU COURSE SCHEDULING PROBLEM

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant