Automatic class scheduling method, device, equipment and storage medium
By determining the target process and preset conditions during the course scheduling process, and providing a confirmation and adjustment interface at each step, the problems of slow course scheduling and large deviations in the existing technology are solved, and more efficient course scheduling results are achieved.
Patent Information
- Application Number
- CN202110591873.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-28
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-05-28
AI Technical Summary
There is no intervention process in the existing class scheduling method, which results in slow class scheduling, large deviations, the need for multiple class scheduling, and low efficiency.
When a class scheduling instruction is detected, the target class scheduling process and preset constraints are determined, the class scheduling is processed according to the preset algorithm, and a confirmation and adjustment interface is provided after each step is completed, allowing user intervention to reduce the deviation of the final result. .
Through a transparent and controllable course scheduling process, the deviation of the final results is reduced, multiple course scheduling is avoided, and the efficiency of course scheduling is improved.
Smart Images

Figure CN113393205B
Abstract
Description
Technical Field
[0001] The present application relates to the field of software technology, and in particular to an automatic class scheduling method, device, equipment and storage medium. Background Art
[0002] With the reform of the curriculum, arranging a satisfactory timetable is an important issue that needs to be solved urgently.
[0003] Currently, classes can be scheduled for users through software. Specifically, the software is based on the constraints set by the user before scheduling classes. After processing the corresponding data of the constraint settings through the simulated manual scheduling method, graph theory method, Lagrangian method and quadratic distribution method in the software, the scheduling results are directly sent to the user.
[0004] That is, in the existing course scheduling process, the software schedules courses based on a non-intervention course scheduling process, which means that users cannot view and intervene in the course scheduling results during the course scheduling process. If the final course scheduling result does not meet the user's requirements, the user may change the course scheduling constraints or add new course scheduling constraints. If the user changes the course scheduling constraints or adds new course scheduling constraints, this may cause a very large change in the course scheduling results, that is, the course scheduling results after adding new constraints may be very different from the previous course scheduling.
[0005] In other words, there is currently no intervention in the scheduling process, which results in large deviations in the required scheduling and low efficiency. Summary of the invention
[0006] The main purpose of this application is to provide an automatic class scheduling method, device, equipment and storage medium, aiming to solve the technical problems in the prior art of requiring multiple class scheduling, large class scheduling deviation and low efficiency.
[0007] To achieve the above objectives, the present application provides an automatic class scheduling method, the automatic class scheduling method comprising:
[0008] When a class scheduling instruction is detected, determining a target class scheduling process of the class scheduling instruction;
[0009] Determine the preset constraint conditions corresponding to each target course scheduling step of the target course scheduling process, and the preset course scheduling algorithm for each target course scheduling step;
[0010] According to the preset constraint conditions and the preset course scheduling algorithm, the course scheduling object corresponding to the course scheduling instruction is processed to obtain a target course scheduling result;
[0011] Among them, if the previous course scheduling result corresponding to the previous target course scheduling step is detected and a confirmation instruction for the previous course scheduling result is received, the next target course scheduling step is executed.
[0012] Optionally, when a class scheduling instruction is detected, the step of determining a target class scheduling process of the class scheduling instruction includes:
[0013] When a class scheduling instruction is detected, a target class scheduling step is selected from a preset class scheduling step set according to the class scheduling information carried in the class scheduling instruction, or the target class scheduling step is generated;
[0014] Determining the arrangement order of the target course scheduling steps;
[0015] According to the target course scheduling steps and the arrangement order, the target course scheduling process of the course scheduling instruction is determined.
[0016] Optionally, the step of performing class scheduling processing on the class scheduling object corresponding to the class scheduling instruction according to the preset constraint condition and the preset class scheduling algorithm to obtain a target class scheduling result includes:
[0017] According to the preset constraint conditions and the preset course scheduling algorithm, the course scheduling object corresponding to the course scheduling instruction is processed;
[0018] Determining whether an adjustment instruction is received, wherein the adjustment instruction includes at least one of an intervention instruction or a change instruction, wherein the intervention instruction is generated after intervening in the intermediate course scheduling result according to a preset pause point, and the change instruction is generated after changing the arrangement order;
[0019] If an adjustment instruction is detected, the target class scheduling of the class scheduling instruction is re-scheduled according to the adjustment instruction to obtain the target class scheduling result.
[0020] Optionally, the target class scheduling step includes a general class scheduling step, the preset constraint conditions of the general class scheduling step include the constraint conditions of the teaching time, and the preset class scheduling algorithm includes a set difference algorithm;
[0021] The step of performing class scheduling processing on the class scheduling object corresponding to the class scheduling instruction according to the preset constraint conditions and the preset class scheduling algorithm to obtain a target class scheduling result includes:
[0022] Based on the course scheduling instruction, determine the course schedule and target teacher corresponding to each class, and determine the target class to be taught by the target teacher;
[0023] Determine a set of empty time points of the target class, wherein the set of empty time points is a set of time points in the course schedule of the target class that have not yet been assigned a course;
[0024] According to the constraint conditions of the target teacher's teaching time, the set difference algorithm and the empty time point set, the target teacher corresponding to the class scheduling instruction is
[0025] Optionally, the step of performing class scheduling processing on the class scheduling object corresponding to the class scheduling instruction according to the constraint condition of the target teacher's teaching time, the set difference algorithm and the empty time point set to obtain a target class scheduling result includes:
[0026] Obtain the teacher's scheduled class time points;
[0027] Based on the set difference algorithm, the difference between the empty time point set and the scheduled time point set is calculated to obtain the empty time point set to be scheduled;
[0028] According to the constraints of the target teacher's teaching time and the set of empty time points to be scheduled, the scheduling object corresponding to the scheduling instruction is scheduled to obtain the target scheduling result.
[0029] Optionally, the target class scheduling step includes a class scheduling step;
[0030] The step of performing class scheduling processing on the class scheduling object corresponding to the class scheduling instruction according to the preset constraint conditions and the preset class scheduling algorithm to obtain a target class scheduling result includes:
[0031] According to the class merging constraint in the preset constraint and the preset class scheduling algorithm, the intersection between the sets of empty time points to be scheduled for each class is calculated;
[0032] Based on the intersection of the set of empty time points to be scheduled, the course scheduling object corresponding to the course scheduling instruction is processed to obtain a target course scheduling result.
[0033] Optionally, the target class scheduling step includes morning reading class scheduling, and the preset constraint condition includes a morning reading consecutive class constraint condition;
[0034] The step of performing class scheduling processing on the class scheduling object corresponding to the class scheduling instruction according to the preset constraint conditions and the preset class scheduling algorithm to obtain a target class scheduling result includes:
[0035] According to the morning reading continuous class constraint conditions and the preset class scheduling algorithm, the class scheduling object corresponding to the class scheduling instruction is processed to obtain the target class scheduling result.
[0036] The present application also provides an automatic class scheduling device, the automatic class scheduling device comprising:
[0037] A first determination module is used to determine a target course scheduling process of the course scheduling instruction when a course scheduling instruction is detected;
[0038] A second determination module is used to determine the preset constraint conditions corresponding to each target course scheduling step of the target course scheduling process, and the preset course scheduling algorithm of each target course scheduling step;
[0039] A course scheduling module, used for performing course scheduling processing on the course scheduling object corresponding to the course scheduling instruction according to the preset constraint conditions and the preset course scheduling algorithm, to obtain a target course scheduling result;
[0040] Among them, if the previous course scheduling result corresponding to the previous target course scheduling step is detected and a confirmation instruction for the previous course scheduling result is received, the next target course scheduling step is executed.
[0041] Optionally, the first determining module includes:
[0042] A selection unit, configured to select a target class scheduling step from a preset class scheduling step set or generate the target class scheduling step according to the class scheduling information carried in the class scheduling instruction when a class scheduling instruction is detected;
[0043] A first determining unit, used to determine the arrangement order of the target course scheduling steps;
[0044] The second determining unit is used to determine the target course scheduling process of the course scheduling instruction according to the target course scheduling steps and the scheduling order.
[0045] Optionally, the course scheduling module includes:
[0046] A first course scheduling unit, configured to schedule a course for a course scheduling object corresponding to the course scheduling instruction according to the preset constraint conditions and the preset course scheduling algorithm;
[0047] A third determining unit is used to determine whether an adjustment instruction is received, wherein the adjustment instruction includes at least one of an intervention instruction or a change instruction, the intervention instruction is generated after intervening in the intermediate course scheduling result according to a preset pause point, and the change instruction is generated after changing the arrangement order;
[0048] The second class scheduling unit is used for, if an adjustment instruction is detected, rescheduling the target class scheduling of the class scheduling instruction according to the adjustment instruction to obtain the target class scheduling result.
[0049] Optionally, the target class scheduling step includes a general class scheduling step, the preset constraint conditions of the general class scheduling step include the constraint conditions of the teaching time, and the preset class scheduling algorithm includes a set difference algorithm;
[0050] The course scheduling module includes:
[0051] A fourth determining unit is used to determine the course schedule and target teacher corresponding to each class based on the course scheduling instruction, and determine the target class to be taught by the target teacher;
[0052] A fifth determining unit is used to determine a set of empty time points of the target class, wherein the set of empty time points is a set of time points in the course schedule of the target class to which no courses have been assigned;
[0053] The third class scheduling unit is used to schedule classes for the target teacher corresponding to the class scheduling instruction according to the constraints of the target teacher's teaching time, the set difference algorithm and the empty time point set to obtain a target class scheduling result.
[0054] Optionally, the third course scheduling unit includes:
[0055] An acquisition subunit, used to acquire a set of scheduled class time points of the teacher;
[0056] A calculation subunit, configured to calculate the difference between the empty time point set and the scheduled time point set based on the set difference algorithm, to obtain the empty time point set to be scheduled;
[0057] The class scheduling sub-unit is used to schedule the class scheduling objects corresponding to the class scheduling instructions according to the constraints of the teaching time of the target teacher and the set of empty time points to be scheduled, so as to obtain the target class scheduling result.
[0058] Optionally, the target class scheduling step includes a class scheduling step;
[0059] The course scheduling module includes:
[0060] A calculation unit, configured to calculate the intersection of the sets of empty time points to be scheduled for each class according to the class merging constraint in the preset constraint and the preset class scheduling algorithm;
[0061] The first acquisition unit is used to perform class scheduling processing on the class scheduling object corresponding to the class scheduling instruction based on the intersection of the empty time point sets to be scheduled, so as to obtain a target class scheduling result.
[0062] Optionally, the target class scheduling step includes morning reading class scheduling, and the preset constraint condition includes a morning reading consecutive class constraint condition;
[0063] The course scheduling module includes:
[0064] The second acquisition unit is used to schedule the class objects corresponding to the class scheduling instructions according to the morning reading continuous class constraint conditions and the preset class scheduling algorithm to obtain the target class scheduling result.
[0065] The present application also provides an automatic class scheduling device, which is a physical node device. The automatic class scheduling device includes: a memory, a processor, and a program of the automatic class scheduling method stored in the memory and executable on the processor. When the program of the automatic class scheduling method is executed by the processor, the steps of the automatic class scheduling method as described above can be implemented.
[0066] The present application also provides a storage medium, on which is stored a program for implementing the above-mentioned automatic class scheduling method. When the program of the automatic class scheduling method is executed by a processor, the steps of the automatic class scheduling method as described above are implemented.
[0067] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned automatic class scheduling method when executed by a processor.
[0068] The present application provides an automatic class scheduling method, device, equipment and storage medium. Compared with the prior art of non-intervention class scheduling based on software, which results in slow class scheduling and large deviation, in the present application, when a class scheduling instruction is detected, a target class scheduling process of the class scheduling instruction is determined; preset constraints of each target class scheduling step corresponding to the target class scheduling process and a preset class scheduling algorithm of each target class scheduling step are determined; according to the preset constraints and the preset class scheduling algorithm, the class scheduling object corresponding to the class scheduling instruction is scheduled to obtain a target class scheduling result; wherein, if a prior class scheduling result corresponding to the prior target class scheduling step is detected and a confirmation instruction for the prior class scheduling result is received, the subsequent target class scheduling step is executed. In this application, when a class scheduling instruction is detected, the corresponding target class scheduling process is first determined, and then preset constraints and corresponding preset class scheduling algorithms are set for each target class scheduling step in the target class scheduling process. If the previous class scheduling result corresponding to the previous target class scheduling step is detected, and a confirmation instruction for the previous class scheduling result is received, the next target class scheduling step is executed, that is, after the class scheduling process of the previous step is completed, a display and adjustment interface can be provided for the user to make necessary adjustments, so that each step becomes transparent and controllable, and then the next class scheduling process is performed. In this way, the class scheduling process can be tracked, and the intermediate class scheduling results are confirmed by the user, which can reduce the deviation of the final class scheduling result, thereby avoiding multiple class scheduling and improving class scheduling efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0070] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0071] Figure 1 This is a flow chart of the first embodiment of the automatic class scheduling method of this application;
[0072] Figure 2 This is a detailed flowchart of step S10 in the automatic class scheduling method of this application;
[0073] Figure 3 A schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present application;
[0074] Figure 4 This is a schematic diagram of the scenario in the embodiment of the automatic class scheduling method of this application.
[0075] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0076] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0077] The present application embodiment provides an automatic class scheduling method. In the first embodiment of the automatic class scheduling method of the present application, refer to Figure 1 , the automatic course scheduling method includes:
[0078] Step S10, when a class scheduling instruction is detected, determining a target class scheduling process of the class scheduling instruction;
[0079] Step S20, determining the preset constraint conditions corresponding to each target course scheduling step of the target course scheduling process, and the preset course scheduling algorithm of each target course scheduling step;
[0080] Step S30, according to the preset constraint conditions and the preset course scheduling algorithm, performing course scheduling processing on the course scheduling object corresponding to the course scheduling instruction to obtain a target course scheduling result;
[0081] Among them, if the previous course scheduling result corresponding to the previous target course scheduling step is detected and a confirmation instruction for the previous course scheduling result is received, the next target course scheduling step is executed.
[0082] The specific steps are as follows:
[0083] Step S10, when a class scheduling instruction is detected, determining a target class scheduling process of the class scheduling instruction;
[0084] In this embodiment, it should be noted that the automatic course scheduling method can be applied to an automatic course scheduling system, which is subordinate to the automatic course scheduling device.
[0085] In this embodiment, the automatic class scheduling system (software) will display a class scheduling interface, on which various class scheduling items can be set, wherein the class scheduling items include but are not limited to class scheduling constraints, class scheduling process, class scheduling algorithm, class scheduling objects, etc. Specifically, the class scheduling items include teaching parameter settings, such as the number of class days per week for each grade, the number of class hours per day, the weekly class hours for each grade and subject, the setting of subject and elective class hours, etc. In addition, the class scheduling items also include teaching relationship management settings, such as the teaching relationship of each grade, class, teacher, subject, the setting of the teacher of a certain subject in a certain class, etc. In this embodiment, the class scheduling items also include class categories and registration management, combined class settings, specifically, the registration status settings of each class category, the settings of virtual classes that can be combined and the corresponding subjects, etc. In this embodiment, the class scheduling items also include class scheduling step settings and management, that is, setting the step priority of each target class scheduling step and whether to allow intervention, setting the corresponding constraints of each target class scheduling step, etc.
[0086] In this embodiment, it should be noted that the preset constraints of each target scheduling step, as well as the preset scheduling algorithm of each target scheduling step and other data can be determined directly by importing, and of course, can also be determined by selecting one by one.
[0087] After the class scheduling items are set up, the user can trigger the class scheduling instruction based on the class scheduling button or class scheduling icon on the class scheduling interface. The method of triggering the class scheduling instruction can be touch trigger, click trigger or voice trigger, etc., which is not specifically limited here. In addition, it should be noted that the triggering timing of the class scheduling instruction can be a timed trigger, such as triggering the class scheduling instruction at 7 o'clock every evening.
[0088] In this embodiment, when a class scheduling instruction is detected, a target class scheduling process of the class scheduling instruction is determined. Specifically, when a class scheduling instruction is detected, the target class scheduling process of the class scheduling instruction can be selected from a preset class scheduling process, or when a class scheduling instruction is detected, the target class scheduling steps are first determined, and then the target class scheduling process is determined based on the target class scheduling steps.
[0089] That is, in this embodiment, based on the nature of class scheduling, such as whether class scheduling is a relatively fixed class scheduling step or a non-fixed class scheduling step, different methods are selected to generate a target class scheduling process, wherein, if class scheduling is a relatively fixed class scheduling step, the target class scheduling process of the class scheduling instruction is selected from the preset class scheduling process; if class scheduling is not a relatively fixed class scheduling step, the target class scheduling step is first determined, and then based on the target class scheduling step, the target class scheduling process is determined.
[0090] In this embodiment, the target scheduling process can be: first determine the classes that must be arranged (such as class meetings, physical education classes, etc.), then determine the morning reading classes, then determine the consecutive classes, then determine the day school classes, then determine the general classes, etc.
[0091] Reference Figure 2 , when the class scheduling instruction is detected, the step of determining the target class scheduling process of the class scheduling instruction comprises:
[0092] Step S11, when a class scheduling instruction is detected, a target class scheduling step is selected from a preset class scheduling step set according to the class scheduling information carried in the class scheduling instruction, or the target class scheduling step is generated;
[0093] Specifically, in this embodiment, the course scheduling steps are first determined, and then the target course scheduling process is determined. When a course scheduling instruction is detected, the course scheduling information carried in the course scheduling instruction is obtained, and then the course scheduling steps are determined.
[0094] In this embodiment, it should be noted that the class scheduling information carried in the class scheduling instruction can be determined according to the information selected by the user on the interface.
[0095] The method of determining the target course scheduling step according to the course scheduling information may be:
[0096] Method 1: Determine the target course scheduling step according to the course scheduling step information in the course scheduling information;
[0097] Method 2: Determine the target course scheduling steps according to the course scheduling controls or control identifiers in the course scheduling information.
[0098] The method of determining the target course scheduling step according to the control identifier in the course scheduling information may be:
[0099] Select the course scheduling parameters and course scheduling parameter contents from the course scheduling information, and determine the target course scheduling steps based on the course scheduling parameters, course scheduling parameter contents and course scheduling controls.
[0100] Step S12, determining the arrangement order of the target course scheduling steps;
[0101] In this embodiment, the arrangement order of the target course scheduling steps is determined. Specifically, the arrangement order of the target course scheduling steps is determined according to the course scheduling information.
[0102] Step S13, determining the target course scheduling process of the course scheduling instruction according to the target course scheduling steps and the arrangement order.
[0103] In this embodiment, the target class scheduling process of the class scheduling instruction is determined according to the target class scheduling step and the arrangement order. Specifically, each target class scheduling step is arranged according to the arrangement order to obtain the target class scheduling process of the class scheduling instruction.
[0104] Step S20, determining the preset constraint conditions corresponding to each target course scheduling step of the target course scheduling process, and the preset course scheduling algorithm of each target course scheduling step;
[0105] In this embodiment, after the target class scheduling process is determined, the preset constraints corresponding to each target class scheduling step of the target class scheduling process, and the preset class scheduling algorithm of each target class scheduling step can be determined simultaneously, or after the target class scheduling process is determined, the preset constraints corresponding to each target class scheduling step, and the preset class scheduling algorithm of each target class scheduling step need to be determined separately.
[0106] In this embodiment, the preset constraints corresponding to each target class scheduling step of the target class scheduling process and the preset class scheduling algorithm of each target class scheduling step are determined, wherein after the preset constraints of the target class scheduling step are determined, the preset class scheduling algorithm of each target class scheduling step can also be determined synchronously, or after the preset constraints of the target class scheduling step are determined, it is also necessary to separately determine the preset class scheduling algorithm of each target class scheduling step, that is, in this embodiment, the preset constraints and the preset class scheduling algorithm can be correspondingly associated, or the preset constraints and the preset class scheduling algorithm can be unrelated.
[0107] In this embodiment, the preset constraint condition of the target course scheduling step may be a class time constraint condition, or a course constraint condition, etc., wherein the preset course scheduling algorithm may be a simulated manual course scheduling method, a graph theory method, a Lagrangian method, a quadratic distribution method, etc. In this embodiment, the preset course scheduling algorithm may also be a set difference algorithm.
[0108] In this embodiment, it should be noted that the constraints of each target step may be the same or different, and the preset class scheduling algorithms of each target step may be the same or different.
[0109] Step S30, according to the preset constraint conditions and the preset course scheduling algorithm, performing course scheduling processing on the course scheduling object corresponding to the course scheduling instruction to obtain a target course scheduling result;
[0110] Among them, if the previous course scheduling result corresponding to the previous target course scheduling step is detected and a confirmation instruction for the previous course scheduling result is received, the next target course scheduling step is executed.
[0111] In this embodiment, according to preset constraints and a preset scheduling algorithm, the scheduling object corresponding to the scheduling instruction is scheduled to obtain a target scheduling result, wherein after the target scheduling step, an intermediate scheduling result (prior scheduling result) will be obtained. In this embodiment, if a prior scheduling result corresponding to the prior target scheduling step is detected and a confirmation instruction for the prior scheduling result is received, the subsequent target scheduling step is executed, that is, after each prior target scheduling step is completed, the prior scheduling result will be displayed to the user (whether to display it to the user can be achieved through settings, and only part of the scheduling results can be displayed to the user), and the user will adjust and modify it. After the user modifies it, the user confirms it. For the system, after receiving the confirmation instruction for the prior scheduling result, the subsequent target scheduling step is executed. In this embodiment, after the user modifies the prior scheduling result, if the user's confirmation result is not detected within the preset time period, the user confirmation is assumed, and the subsequent target scheduling step is directly executed.
[0112] Among them, when the previous class scheduling result corresponding to the previous target class scheduling step is detected, the user can not only modify the previous class scheduling result, but also modify the constraint conditions of the target class scheduling step after the previous target class scheduling step (including the subsequent target class scheduling step) and the execution order between the steps to obtain the modified target class scheduling step, so as to perform subsequent class scheduling processing through the modified target class scheduling step, thereby making the class scheduling process more flexible and controllable.
[0113] The step of performing class scheduling processing on the class scheduling object corresponding to the class scheduling instruction according to the preset constraint conditions and the preset class scheduling algorithm to obtain the target class scheduling result includes:
[0114] Step S31, performing class scheduling processing on the class scheduling object corresponding to the class scheduling instruction according to the preset constraint conditions and the preset class scheduling algorithm;
[0115] In this embodiment, the class scheduling object may be a teacher for scheduling classes, or a class schedule, etc., without any specific limitation.
[0116] Step S32, determining whether an adjustment instruction is received, wherein the adjustment instruction includes at least one of an intervention instruction or a change instruction, wherein the intervention instruction is generated after intervening in the intermediate course scheduling result according to a preset pause point, and the change instruction is generated after changing the arrangement order;
[0117] In this embodiment, during the course scheduling process, it is determined whether an adjustment instruction is received, wherein the adjustment instruction includes at least one of an intervention instruction or a change instruction, such as only an intervention instruction is received, or only a change instruction is received, or both the intervention instruction and the change instruction are received.
[0118] The intervention instruction is generated after intervening in the intermediate course scheduling result (or the previous course scheduling result) according to the preset pause point, and the change instruction is generated after changing the arrangement order or constraint condition;
[0119] Step S33: if an adjustment instruction is detected, the target course scheduling of the course scheduling instruction is re-performed according to the adjustment instruction to obtain the target course scheduling result.
[0120] In this embodiment, when an adjustment instruction is detected, the target class scheduling of the class scheduling instruction is immediately rescheduled according to the adjustment instruction to obtain the target class scheduling result, rather than performing adjustments after all class scheduling is completed and the final result is obtained. Therefore, the scheduling efficiency can be improved.
[0121] Wherein, the target class scheduling step includes morning reading class scheduling, and the preset constraint condition includes morning reading continuous class constraint condition;
[0122] The step of performing class scheduling processing on the class scheduling object corresponding to the class scheduling instruction according to the preset constraint conditions and the preset class scheduling algorithm to obtain a target class scheduling result includes:
[0123] According to the morning reading continuous class constraint conditions and the preset class scheduling algorithm, the class scheduling object corresponding to the class scheduling instruction is processed to obtain the target class scheduling result.
[0124] In this embodiment, according to the morning reading continuous class constraint condition and the preset scheduling algorithm, the scheduling object corresponding to the scheduling instruction is scheduled to obtain the target scheduling result. The morning reading continuous class constraint condition can be that the first class of each class is consistent with the course set for morning reading.
[0125] The present application provides an automatic class scheduling method, device, equipment and storage medium. Compared with the prior art of non-intervention class scheduling based on software, which results in slow class scheduling and large deviation, in the present application, when a class scheduling instruction is detected, a target class scheduling process of the class scheduling instruction is determined; preset constraints of each target class scheduling step corresponding to the target class scheduling process and a preset class scheduling algorithm of each target class scheduling step are determined; according to the preset constraints and the preset class scheduling algorithm, the class scheduling object corresponding to the class scheduling instruction is scheduled to obtain a target class scheduling result; wherein, if a prior class scheduling result corresponding to the prior target class scheduling step is detected and a confirmation instruction for the prior class scheduling result is received, the subsequent target class scheduling step is executed. In this application, when a class scheduling instruction is detected, the corresponding target class scheduling process is first determined, and then preset constraints and corresponding preset class scheduling algorithms are set for each target class scheduling step in the target class scheduling process. If the previous class scheduling result corresponding to the previous target class scheduling step is detected, and a confirmation instruction for the previous class scheduling result is received, the next target class scheduling step is executed, that is, after the class scheduling process of the previous step is completed, a display and adjustment interface can be provided for the user to make necessary adjustments, so that each step becomes transparent and controllable, and then the next class scheduling process is performed. In this way, the class scheduling process can be tracked, and the intermediate class scheduling results are confirmed by the user, which can reduce the deviation of the final class scheduling result, thereby avoiding multiple class scheduling and improving class scheduling efficiency.
[0126] Further, based on the first embodiment of the present application, another embodiment of the present application is provided, wherein the target class scheduling step includes a general class scheduling step, the preset constraint condition of the general class scheduling step includes a constraint condition of the teaching time, and the preset class scheduling algorithm includes a set difference algorithm;
[0127] The step of performing class scheduling processing on the class scheduling object corresponding to the class scheduling instruction according to the preset constraint conditions and the preset class scheduling algorithm to obtain a target class scheduling result includes:
[0128] Step B1, based on the course scheduling instruction, determining the course schedule and target teacher corresponding to each class, and determining the target class to be taught by the target teacher;
[0129] In this embodiment, class scheduling includes general class scheduling, wherein the courses corresponding to the general class scheduling are courses that all students in the class (administrative class) can study together. Of course, some courses cannot be studied together by all students in the class. Courses that not all students can study together can be achieved by moving classes or merging classes.
[0130] In this embodiment, students need to take different general courses, including Chinese, mathematics, English, etc., and it is impossible for one teacher to teach all courses to students. Generally, teachers have specific professional directions.
[0131] Specifically, in this embodiment, based on the scheduling instruction, the course schedule information and target teacher information corresponding to each class are extracted, wherein the course schedule records the classes that each class needs to take within a period of time, such as classes within a week. Taking the example that the class needs to take classes 5 days a week and 8 classes a day, the course schedule needs to be filled with 40 classes, and the 40 classes are taught by different teachers.
[0132] Among them, there will be no overlap between the class times of the 40 classes. It is understandable that if there is an overlap, it means that one class is taught by multiple teachers at the same time, which is obviously unreasonable. Therefore, 40 classes correspond to 40 time points, among which the numbers of the 40 time points are subject to the preset sorting rules. The preset sorting rules are that the numbers are affected by the order of time. The larger the number, the later the time, and the smaller the number, the earlier the time. For example, time point 1 is the first class of the week, and time point 8 is the eighth class of the week.
[0133] In this embodiment, after determining the course schedule and target teacher corresponding to each class, the target class to be taught by the target teacher is determined.
[0134] Step B2, determining a set of empty time points of the target class, wherein the set of empty time points is a set of time points in the course schedule of the target class to which no courses have been assigned;
[0135] In this embodiment, the class schedule may contain occupied time points to which courses have been assigned, or may contain all empty time points to which courses have not been assigned. For occupied time points to which courses have been assigned, courses cannot be assigned to these time points again.
[0136] Specifically, the empty time point set of the class is determined, wherein the empty time point set is a set of empty time points in the class schedule that have not been assigned to courses, that is, the empty time point set excludes the occupied time points in the schedule that have been assigned to courses. For example, there are time points 1 to 40 in the schedule, wherein time points 1 to 20 are occupied time points with assigned courses, and time points 21 to 40 are empty time points, that is, the empty time point set excludes the occupied time points 1 to 20 with assigned courses in the schedule, and retains the empty time points 21 to 40.
[0137] Step B3, according to the constraint conditions of the target teacher's teaching time, the set difference algorithm and the empty time point set, schedule the target teacher corresponding to the schedule instruction to obtain the target schedule result.
[0138] In this embodiment, according to the constraints of the target teacher's teaching time such as holidays, the set difference algorithm and the set of empty time points, the target teacher corresponding to the scheduling instruction is scheduled to obtain a target scheduling result, instead of directly scheduling classes for the teacher through all the time points existing in the course schedule.
[0139] The step of performing class scheduling processing on the class scheduling object corresponding to the class scheduling instruction according to the constraint condition of the target teacher's teaching time, the set difference algorithm and the empty time point set to obtain the target class scheduling result includes:
[0140] Step B1, obtaining a set of scheduled class time points of the teacher;
[0141] Step B2, based on the set difference algorithm, calculate the difference between the empty time point set and the scheduled time point set to obtain the empty time point set to be scheduled;
[0142] In this embodiment, the difference between the empty time point set and the scheduled time point set is calculated to determine the empty time points in the empty time point set that can still be used to schedule classes for teachers, and obtain the empty time point set to be scheduled. For example, teacher T teaches administrative class A, the empty time point set is Oa, the scheduled time point set is St, and the difference between Oa and St is Ta.
[0143] Step B3, according to the constraints of the teaching time of the target teacher and the set of empty time points to be scheduled, schedule the class objects corresponding to the class scheduling instructions to obtain the target class scheduling result.
[0144] In this embodiment, according to the constraints of the target teacher's teaching time and the set of empty time points to be scheduled, the scheduling object corresponding to the scheduling instruction is scheduled to obtain the target scheduling result, thereby avoiding repeated general scheduling of multiple courses for teachers at the same time point, and avoiding the teacher's inability to attend classes in time after scheduling, thereby avoiding errors in general scheduling for teachers.
[0145] In this embodiment, by determining the course schedule and target teacher corresponding to each class based on the course scheduling instruction, the target class to be taught by the target teacher is determined; the empty time point set of the target class is determined, wherein the empty time point set is a set of time points in the course schedule of the target class that have not yet been assigned a course; and according to the constraint conditions of the target teacher's teaching time, the set difference algorithm and the empty time point set, the target teacher corresponding to the course scheduling instruction is scheduled to obtain a target course scheduling result. In this embodiment, errors in general course scheduling for teachers are accurately avoided, and course scheduling efficiency is improved.
[0146] Further, based on the first embodiment and the second embodiment of the present application, another embodiment of the present application is provided. In this embodiment, the target class scheduling step includes a class scheduling step;
[0147] The step of performing class scheduling processing on the class scheduling object corresponding to the class scheduling instruction according to the preset constraint conditions and the preset class scheduling algorithm to obtain a target class scheduling result includes:
[0148] Step S34, calculating the intersection of the sets of empty time points to be scheduled for each class according to the class merging constraint in the preset constraint and the preset class scheduling algorithm;
[0149] In this embodiment, an administrative class may include one or more classes (for example, in an administrative class of 40 people, 10 of them choose geography and 30 choose chemistry, then the 10 people who choose geography are one class, and the 30 people who choose chemistry are one class). That is, the classes are generated by different teaching needs in the administrative class. Specifically, Figure 4 As shown, there are 40 students in administrative class C202010, 20 of whom choose geography and politics, forming a combined class of physics, chemistry and geography, and another 20 students take geography and politics, forming a combined class of physics, chemistry and politics; while if there are 50 students in administrative class C202013, 30 of whom choose geography and chemistry, forming a combined class of physics, biology and geography, and another 20 students take geography and choose chemistry, forming a combined class of physics, chemistry and biology. In the above example, since the combined class of physics, chemistry and geography in administrative class C202010 and the combined class of physics, biology and geography in administrative class C202013 both choose geography, a combined class can be formed by physics, chemistry and geography and physics, biology and geography.
[0150] In this embodiment, based on the class merging constraint conditions in the preset constraint conditions, such as the class merging number constraint condition, and the preset class scheduling algorithm, the intersection between the sets of empty time points to be scheduled for each class is calculated.
[0151] Step S35, based on the intersection of the set of empty time points to be scheduled, schedule the course objects corresponding to the course scheduling instructions to obtain the target course scheduling result.
[0152] In this embodiment, class scheduling is performed for teachers based on the intersection, which is similar to the general class scheduling for teachers in administrative classes mentioned above. Empty time points are randomly selected from the intersection based on the number of class hours corresponding to the courses, and class scheduling is performed for teachers based on the empty time points.
[0153] In this embodiment, according to the class merging constraint in the preset constraint and the preset class scheduling algorithm, the intersection between the empty time point sets to be scheduled for each class is calculated; based on the intersection between the empty time point sets to be scheduled, the class scheduling object corresponding to the class scheduling instruction is scheduled to obtain the target class scheduling result. In this embodiment, when there is a need to merge classes, the target class scheduling result is accurately obtained.
[0154] Reference Figure 3 , Figure 3 It is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present application.
[0155] like Figure 3 As shown, the automatic class scheduling device may include: a processor 1001, such as a CPU, a memory 1005, and a communication bus 1002. The communication bus 1002 is used to realize the connection and communication between the processor 1001 and the memory 1005. The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0156] Optionally, the automatic class scheduling device may also include a rectangular user interface, a network interface, a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, etc. The rectangular user interface may include a display screen (Display), an input submodule such as a keyboard (Keyboard), and the optional rectangular user interface may also include a standard wired interface and a wireless interface. The network interface may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).
[0157] Those skilled in the art will understand that Figure 3 The structure of the automatic course scheduling device shown in the figure does not constitute a limitation of the automatic course scheduling device, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0158] like Figure 3 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module and an automatic class scheduling program. The operating system is a program that manages and controls the hardware and software resources of the automatic class scheduling device, and supports the operation of the automatic class scheduling program and other software and / or programs. The network communication module is used to realize the communication between the components inside the memory 1005, and the communication with other hardware and software in the automatic class scheduling system.
[0159] exist Figure 3In the automatic class scheduling device shown, the processor 1001 is used to execute the automatic class scheduling program stored in the memory 1005 to implement the steps of any of the automatic class scheduling methods described above.
[0160] The specific implementation method of the automatic class scheduling device of the present application is basically the same as the embodiments of the automatic class scheduling method described above, and will not be repeated here.
[0161] The present application also provides an automatic class scheduling device, the automatic class scheduling device comprising:
[0162] A first determination module is used to determine a target course scheduling process of the course scheduling instruction when a course scheduling instruction is detected;
[0163] A second determination module is used to determine the preset constraint conditions corresponding to each target course scheduling step of the target course scheduling process, and the preset course scheduling algorithm of each target course scheduling step;
[0164] A course scheduling module, used for performing course scheduling processing on the course scheduling object corresponding to the course scheduling instruction according to the preset constraint conditions and the preset course scheduling algorithm, to obtain a target course scheduling result;
[0165] Among them, if the previous course scheduling result corresponding to the previous target course scheduling step is detected and a confirmation instruction for the previous course scheduling result is received, the next target course scheduling step is executed.
[0166] Optionally, the first determining module includes:
[0167] A selection unit, configured to select a target class scheduling step from a preset class scheduling step set or generate the target class scheduling step according to the class scheduling information carried in the class scheduling instruction when a class scheduling instruction is detected;
[0168] A first determining unit, used to determine the arrangement order of the target course scheduling steps;
[0169] The second determining unit is used to determine the target course scheduling process of the course scheduling instruction according to the target course scheduling steps and the scheduling order.
[0170] Optionally, the course scheduling module includes:
[0171] A first course scheduling unit, configured to schedule courses for the course scheduling object corresponding to the course scheduling instruction according to the preset constraint conditions and the preset course scheduling algorithm;
[0172] A third determining unit is used to determine whether an adjustment instruction is received, wherein the adjustment instruction includes at least one of an intervention instruction or a change instruction, the intervention instruction is generated after intervening in the intermediate course scheduling result according to a preset pause point, and the change instruction is generated after changing the arrangement order;
[0173] The second class scheduling unit is used for, if an adjustment instruction is detected, rescheduling the target class scheduling of the class scheduling instruction according to the adjustment instruction to obtain the target class scheduling result.
[0174] Optionally, the target class scheduling step includes a general class scheduling step, the preset constraint conditions of the general class scheduling step include the constraint conditions of the teaching time, and the preset class scheduling algorithm includes a set difference algorithm;
[0175] The course scheduling module includes:
[0176] A fourth determining unit is used to determine the course schedule and target teacher corresponding to each class based on the course scheduling instruction, and determine the target class to be taught by the target teacher;
[0177] A fifth determining unit is used to determine a set of empty time points of the target class, wherein the set of empty time points is a set of time points in the course schedule of the target class to which no courses have been assigned;
[0178] The third class scheduling unit is used to schedule classes for the target teacher corresponding to the class scheduling instruction according to the constraints of the target teacher's teaching time, the set difference algorithm and the empty time point set to obtain a target class scheduling result.
[0179] Optionally, the third course scheduling unit includes:
[0180] An acquisition subunit, used to acquire a set of scheduled class time points of the teacher;
[0181] A calculation subunit, configured to calculate the difference between the empty time point set and the scheduled time point set based on the set difference algorithm, to obtain the empty time point set to be scheduled;
[0182] The class scheduling sub-unit is used to schedule the class scheduling objects corresponding to the class scheduling instructions according to the constraints of the teaching time of the target teacher and the set of empty time points to be scheduled, so as to obtain the target class scheduling result.
[0183] Optionally, the target class scheduling step includes a class scheduling step;
[0184] The course scheduling module includes:
[0185] A calculation unit, configured to calculate the intersection of the sets of empty time points to be scheduled for each class according to the class merging constraint in the preset constraint and the preset class scheduling algorithm;
[0186] The first acquisition unit is used to perform class scheduling processing on the class scheduling object corresponding to the class scheduling instruction based on the intersection of the empty time point sets to be scheduled, so as to obtain a target class scheduling result.
[0187] Optionally, the target class scheduling step includes morning reading class scheduling, and the preset constraint condition includes a morning reading consecutive class constraint condition;
[0188] The course scheduling module includes:
[0189] The second acquisition unit is used to schedule the class objects corresponding to the class scheduling instructions according to the morning reading continuous class constraint conditions and the preset class scheduling algorithm to obtain the target class scheduling result.
[0190] The specific implementation of the automatic course scheduling device of the present application is basically the same as the various embodiments of the automatic course scheduling method described above, and will not be repeated here.
[0191] An embodiment of the present application provides a storage medium, and the storage medium stores one or more programs, and the one or more programs can also be executed by one or more processors to implement the steps of any of the above-mentioned automatic class scheduling methods.
[0192] The specific implementation method of the storage medium of the present application is basically the same as the embodiments of the above-mentioned automatic class scheduling method, and will not be repeated here.
[0193] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned automatic class scheduling method when executed by a processor.
[0194] The specific implementation of the computer program product of the present application is basically the same as the various embodiments of the above-mentioned automatic class scheduling method, and will not be repeated here.
[0195] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0196] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0197] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0198] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. An automatic class scheduling method, characterized in that: The automatic course scheduling method comprises: When a class scheduling instruction is detected, determining a target class scheduling process of the class scheduling instruction; The step of determining a target course scheduling process of the course scheduling instruction when the course scheduling instruction is detected comprises: When a class scheduling instruction is detected, a target class scheduling step is selected from a preset class scheduling step set according to the class scheduling information carried in the class scheduling instruction, or the target class scheduling step is generated; Determining the arrangement order of the target course scheduling steps; Determining a target course scheduling process of the course scheduling instruction according to the target course scheduling steps and the scheduling order; Determine the preset constraint conditions corresponding to each target course scheduling step of the target course scheduling process, and the preset course scheduling algorithm of each target course scheduling step; According to the preset constraint conditions and the preset course scheduling algorithm, the course scheduling object corresponding to the course scheduling instruction is processed to obtain a target course scheduling result; The step of performing class scheduling processing on the class scheduling object corresponding to the class scheduling instruction according to the preset constraint conditions and the preset class scheduling algorithm to obtain a target class scheduling result includes: According to the preset constraint conditions and the preset course scheduling algorithm, the course scheduling object corresponding to the course scheduling instruction is processed; Determining whether an adjustment instruction is received, wherein the adjustment instruction includes at least one of an intervention instruction or a change instruction, wherein the intervention instruction is generated after intervening in the intermediate course scheduling result according to a preset pause point, and the change instruction is generated after changing the arrangement order; If an adjustment instruction is detected, rescheduling the target course schedule of the course scheduling instruction according to the adjustment instruction to obtain the target course scheduling result; Among them, if the previous class scheduling result corresponding to the previous target class scheduling step is detected and a confirmation instruction for the previous class scheduling result is received, the next target class scheduling step will be executed. That is, after the class scheduling processing of the previous step is completed, a display and adjustment interface is provided for the user to make necessary adjustments, so that each step becomes transparent and controllable, and then the next step of class scheduling processing is carried out.
2. The automatic course scheduling method according to claim 1, characterized in that: The target class scheduling step includes a general class scheduling step, the preset constraint conditions of the general class scheduling step include the constraint conditions of the teaching time, and the preset class scheduling algorithm includes a set difference algorithm; The step of performing class scheduling processing on the class scheduling object corresponding to the class scheduling instruction according to the preset constraint conditions and the preset class scheduling algorithm to obtain a target class scheduling result includes: Based on the course scheduling instruction, determine the course schedule and target teacher corresponding to each class, and determine the target class to be taught by the target teacher; Determine a set of empty time points of the target class, wherein the set of empty time points is a set of time points in the course schedule of the target class that have not yet been assigned a course; According to the constraints of the target teacher's teaching time, the set difference algorithm and the empty time point set, the target teacher corresponding to the class scheduling instruction is scheduled to obtain a target class scheduling result.
3. The automatic course scheduling method according to claim 2, characterized in that: The step of performing class scheduling processing on the class scheduling object corresponding to the class scheduling instruction according to the constraint condition of the target teacher's teaching time, the set difference algorithm and the empty time point set to obtain the target class scheduling result includes: Obtain the teacher's scheduled class time points; Based on the set difference algorithm, the difference between the empty time point set and the scheduled time point set is calculated to obtain the empty time point set to be scheduled; According to the constraints of the target teacher's teaching time and the set of empty time points to be scheduled, the scheduling object corresponding to the scheduling instruction is scheduled to obtain the target scheduling result.
4. The automatic course scheduling method according to claim 1, characterized in that: The target class scheduling step includes a class scheduling step; The step of performing class scheduling processing on the class scheduling object corresponding to the class scheduling instruction according to the preset constraint conditions and the preset class scheduling algorithm to obtain a target class scheduling result includes: According to the class merging constraint in the preset constraint and the preset class scheduling algorithm, the intersection between the sets of empty time points to be scheduled for each class is calculated; Based on the intersection of the set of empty time points to be scheduled, the course scheduling object corresponding to the course scheduling instruction is processed to obtain a target course scheduling result.
5. The automatic course scheduling method according to claim 1, characterized in that: The target class scheduling step includes morning reading class scheduling, and the preset constraint condition includes morning reading consecutive class constraint condition; The step of performing class scheduling processing on the class scheduling object corresponding to the class scheduling instruction according to the preset constraint conditions and the preset class scheduling algorithm to obtain a target class scheduling result includes: According to the morning reading continuous class constraint conditions and the preset class scheduling algorithm, the class scheduling object corresponding to the class scheduling instruction is processed to obtain the target class scheduling result.
6. An automatic class scheduling device, characterized in that: The automatic course scheduling device comprises: A first determination module is used to determine a target course scheduling process of the course scheduling instruction when a course scheduling instruction is detected; The first determining module includes: A selection unit, configured to select a target class scheduling step from a preset class scheduling step set or generate the target class scheduling step according to the class scheduling information carried in the class scheduling instruction when a class scheduling instruction is detected; A first determining unit, used to determine the arrangement order of the target course scheduling steps; A second determining unit, configured to determine a target course scheduling process of the course scheduling instruction according to the target course scheduling steps and the scheduling order; A second determination module is used to determine the preset constraint conditions corresponding to each target course scheduling step of the target course scheduling process, and the preset course scheduling algorithm of each target course scheduling step; A course scheduling module, used for performing course scheduling processing on the course scheduling object corresponding to the course scheduling instruction according to the preset constraint conditions and the preset course scheduling algorithm, to obtain a target course scheduling result; The course scheduling module includes: A first course scheduling unit, configured to schedule a course for a course scheduling object corresponding to the course scheduling instruction according to the preset constraint conditions and the preset course scheduling algorithm; A third determining unit is used to determine whether an adjustment instruction is received, wherein the adjustment instruction includes at least one of an intervention instruction or a change instruction, the intervention instruction is generated after intervening in the intermediate course scheduling result according to a preset pause point, and the change instruction is generated after changing the arrangement order; A second course scheduling unit is used for, if an adjustment instruction is detected, rescheduling the target course scheduling of the course scheduling instruction according to the adjustment instruction to obtain the target course scheduling result; Among them, if the previous class scheduling result corresponding to the previous target class scheduling step is detected and a confirmation instruction for the previous class scheduling result is received, the next target class scheduling step will be executed. That is, after the class scheduling processing of the previous step is completed, a display and adjustment interface is provided for the user to make necessary adjustments, so that each step becomes transparent and controllable, and then the next step of class scheduling processing is carried out.
7. An automatic class scheduling device, characterized in that: The automatic class scheduling device comprises: a memory, a processor, and a program stored in the memory for implementing the automatic class scheduling method. The memory is used to store a program for implementing the automatic class scheduling method; The processor is used to execute a program for implementing the automatic class scheduling method to implement the steps of the automatic class scheduling method as described in any one of claims 1 to 5.
8. A storage medium, characterized in that: The storage medium stores a program for implementing the automatic class scheduling method, and the program for implementing the automatic class scheduling method is executed by a processor to implement the steps of the automatic class scheduling method as described in any one of claims 1 to 5.
