CN109657853A - A kind of cource arrangement method and device of dual temperature control - Google Patents

A kind of cource arrangement method and device of dual temperature control Download PDF

Info

Publication number
CN109657853A
CN109657853A CN201811518914.1A CN201811518914A CN109657853A CN 109657853 A CN109657853 A CN 109657853A CN 201811518914 A CN201811518914 A CN 201811518914A CN 109657853 A CN109657853 A CN 109657853A
Authority
CN
China
Prior art keywords
solution
course
initial
temperature
temperature control
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.)
Pending
Application number
CN201811518914.1A
Other languages
Chinese (zh)
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.)
Huazhong Normal University
Central China Normal University
Original Assignee
Huazhong Normal University
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 Huazhong Normal University filed Critical Huazhong Normal University
Priority to CN201811518914.1A priority Critical patent/CN109657853A/en
Publication of CN109657853A publication Critical patent/CN109657853A/en
Pending legal-status Critical Current

Links

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/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • 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/10Office automation; Time management
    • G06Q10/109Time management, e.g. calendars, reminders, meetings or time accounting
    • G06Q10/1093Calendar-based scheduling for persons or groups
    • 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

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Theoretical Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • Educational Administration (AREA)
  • Educational Technology (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Development Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention provides the cource arrangement method and device of a kind of dual temperature control, comprising: obtains initial solution, the initial solution is to meet the scheme of all hard constraint conditions;Neighbour structure is obtained, the neighbour structure is the corresponding scheme of soft-constraint condition;Feasible solution is obtained according to the simulated annealing processing that the initial solution and the neighbour structure carry out dual temperature control, analyzes whether the feasible solution is current globally optimal solution, if so, updating globally optimal solution;Judge whether to reach termination condition, if so, exporting the globally optimal solution.Intelligent control is controlled using dual temperature in the simulated annealing stage, increases the search range of solution space and avoids precocity.Neighbour structure design based on binding characteristic improves the search precision of algorithm, accelerates global convergence speed, can be quickly obtained the more individual requirements of satisfaction, the optimal optimizing scheme of resultant effect.

Description

A kind of cource arrangement method and device of dual temperature control
Technical field
The present invention relates to teaching management technical fields, in particular to the cource arrangement method and device of a kind of control of dual temperature.
Background technique
The work of row's class is an important groundwork in various kinds of schools's teaching management, and traditional artificial row's class occupies a large amount of Time and efforts.With the propulsion of school's enrollment quantity to increase sharply and the new college entrance examination of senior middle school is reformed, bigger problem rule Mould and the requirement of more flexible row's class propose new choose to the efficient allotment of the resources such as the teacher of school, classroom, teaching equipment War.It can not adapt to be actually needed by artificial row's class, design automation algorithm, which solves timetabling arithmetic, becomes inevitable choice.But It is that existing cource arrangement method requires to become increasingly complex with row's class, it is difficult to find optimal case or even miss optimal case.
Summary of the invention
In order to overcome the deficiencies in the prior art described above, the present invention provides the cource arrangement method and device of a kind of dual temperature control, To solve the above problems.
To achieve the goals above, technical solution provided by the embodiment of the present invention is as follows:
In a first aspect, the embodiment of the present invention provides a kind of cource arrangement method of dual temperature control, comprising: initial solution is obtained, it is described Initial solution is to meet the scheme of all hard constraint conditions;Neighbour structure is obtained, the neighbour structure is that soft-constraint condition is corresponding Scheme;Feasible solution is obtained according to the simulated annealing processing that the initial solution and the neighbour structure carry out dual temperature control, analyzes institute State whether feasible solution is current globally optimal solution, if so, updating globally optimal solution;Judge whether to reach termination condition, if so, Then export the globally optimal solution.
Optionally, described to judge whether the step of reaching termination condition, further includes: if it is not, then most to the current overall situation Excellent solution is heated up again, carries out the simulated annealing processing of the dual temperature control again.
Optionally, the method also includes: initial solution is established according to the hard constraint condition, the hard constraint condition includes Classroom, time, student's conflict, teacher's conflict;Neighbour structure is established according to the soft-constraint condition, the soft-constraint condition is row Preset requirement during class.
Optionally, the neighbour structure includes: that classroom is mobile, exchanges a course at random to another classroom;Classroom capacity It is mobile, from the course that all classroom capacity are less than number of students, randomly chooses a course and be moved to another classroom;Classroom is steady Qualitative movement randomly chooses a course from all courses for being arranged into multiple classrooms, its all class is moved to same A room;Period is mobile, exchanges a course at random to another period;Minimum working day is mobile, small from all every the inside of a week In the course that minimum working day requires, a course is randomly choosed, will be more than that primary course is moved in same working day Another was not arranged in the working day of the course;Course is mobile, exchange at random a course to another random room and it is random when Section;Course connectivity is mobile, randomly chooses the course for violating the constraint of course connectivity, is moved into and meets the constraint Period.
Optionally, described the step of initial solution is established according to the hard constraint condition, comprising: carried according to all courses Hard constraint condition obtains the corresponding hard constraint degree-of-difficulty factor of each course;According to the hard constraint degree-of-difficulty factor to all courses into The highest course of hard constraint degree-of-difficulty factor, is preferentially discharged into curriculum schedule by row sequence;After completing the arrangement of a course, update surplus The difficulty and sequence of remaining course;Judge whether that all courses have arranged, if so, output initial solution;If it is not, then continuing remaining Hard constraint degree-of-difficulty factor is highest in course discharges into curriculum schedule.
Optionally, it is obtained according to the simulated annealing processing that the initial solution and the neighbour structure carry out dual temperature control feasible Solution, analyzes whether the feasible solution is current globally optimal solution, if so, the step of updating the globally optimal solution includes: to obtain Take the first initial temperature and the second initial temperature;According to first initial temperature and second initial temperature described initial Random movement in the neighborhood of solution;If more preferably being solved at any temperature, receive movement;It is updated according to preset mode Temperature, in the updated at a temperature of continue the simulated annealing processing of dual temperature control;Judge whether to meet exit criteria, It is exported if so, will currently solve as locally optimal solution.
Optionally, described that temperature is updated according to preset mode, in the updated at a temperature of continue the dual temperature control The step of simulated annealing processing of system, takes following manner to realize:
T1=1/ ((1/T1)+0.2)
T2=1/ ((1/T2)+0.09)
Wherein T1Represent the first initial temperature, T2Represent the second initial temperature.
Optionally, it is described according to the initial solution and the initial temperature in the neighborhood of the initial solution random movement; It is more preferably solved if getting, receives mobile step further include: if obtaining worse solution, decide whether to receive according to probability This difference solution.
Optionally, if described obtain worse solution, it is following to decide whether that the step of receiving this difference solution takes according to probability Mode is realized:
(exp(dE1/T1)>random(0,1)∨(exp(dE2/T2)>random(0,1));
Wherein, dE1Expression refers in T1The difference between new feasible solution, dE are currently solved under the conditions of temperature2Expression refers in T2 The difference between new feasible solution is currently solved under the conditions of temperature.
Second aspect, the embodiment of the present invention provide a kind of row's class device of dual temperature control, comprising:
Module is obtained, for obtaining initial solution and neighbour structure.
Analysis module, the simulated annealing processing for carrying out dual temperature control according to the initial solution and the neighbour structure obtain Feasible solution is obtained, analyzes whether the feasible solution is current globally optimal solution, if so, updating the globally optimal solution.
Judgment module reaches termination condition for judging whether, if so, exporting the globally optimal solution.
If the analysis module is also used to not reach termination condition, the current globally optimal solution is risen again Temperature carries out the simulated annealing processing of the dual temperature control again.
The third aspect, the present invention also provides electronics corresponding to a kind of cource arrangement method and device with dual temperature control to set It is standby, including memory, storage control, processor, display.Wherein the memory is corresponding for storing the cource arrangement method Program and the corresponding control program of processor;The storage control is for controlling memory;The processor is for controlling Execute the program in the memory;The display is for showing the corresponding school timetable of finally obtained optimizing scheme.
The cource arrangement method and device of a kind of dual temperature control provided by the invention, establish one completely according to hard constraint condition first The initial solution (i.e. initial optimizing scheme) of all hard constraint conditions of foot, and corresponding neighbour structure is established according to soft-constraint condition, It reuses simulated annealing to be handled, obtain feasible solution (i.e. feasible optimizing scheme).It is utilized in the simulated annealing stage double Temperature control intelligent control increases the search range of solution space and avoids precocity.Neighbour structure based on binding characteristic, which designs, to be improved The search precision of algorithm, accelerates global convergence speed, can be quickly obtained the more individuals of satisfaction require, resultant effect it is best Optimizing scheme.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, the embodiment of the present invention is cited below particularly, and match Appended attached drawing is closed, is described in detail below.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described.It should be appreciated that the following drawings illustrates only certain embodiments of the present invention, therefore it is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the cource arrangement method overview flow chart of dual temperature provided in an embodiment of the present invention control;
Fig. 2 is the establishment process schematic diagram of initial solution provided in an embodiment of the present invention;
Fig. 3 is the simulated annealing treatment process schematic diagram of dual temperature provided in an embodiment of the present invention control;
Fig. 4 is row's class device composed structure block diagram provided in an embodiment of the present invention;
Fig. 5 is electronic devices structure schematic diagram provided in an embodiment of the present invention.
Icon: 100- row's class device;110- obtains module;120- analysis module;130- judgment module;200- electronics is set It is standby;210- memory;220- storage control;230- processor;240- Peripheral Interface;250- display;260- input keyboard.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description.Obviously, described embodiment is only a part of the embodiments of the present invention, instead of all the embodiments.It is logical The component for the embodiment of the present invention being often described and illustrated herein in the accompanying drawings can be arranged and be designed with a variety of different configurations.
Therefore, the detailed description of the embodiment of the present invention provided in the accompanying drawings is not intended to limit below claimed The scope of the present invention, but be merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art Member's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
With reference to the accompanying drawing, it elaborates to some embodiments of the present invention.In the absence of conflict, following Feature in embodiment and embodiment can be combined with each other.
Through applicants have found that, practice in field, early stage commonly uses greedy algorithm, backtracking algorithm, dynamic programming etc. and passes System algorithm solves timetabling arithmetic, and this kind of algorithm has the advantages that speed is fast, result is stable, but due to excessively dependent Rule peace treaty The design of beam, for the row's class requirement to become increasingly complex, it is difficult to find optimal solution even feasible solution.It is common based on search at present Heuritic approach realizes that heuritic approach can be divided into two classes: be based on by the determination of optimizing scheme according to different search strategies The search of single-point and search based on group.Searching algorithm advantage based on single-point be should be readily appreciated that and realize, structure it is simple, disadvantage It is that search capability is affected by initial solution and neighbour structure, easily falls into locally optimal solution.Typical algorithm has climbing method, taboo Search, change neighborhood search etc..Searching algorithm advantage based on group is the range that search is expanded using multiple spot search, the disadvantage is that receiving Hold back it is too fast, it is easily precocious and miss globally optimal solution.Typical algorithm has bee colony, ant colony, harmony search, genetic algorithm etc..In order to The row of preventing falls into locally optimal solution class hour, increases the search range of solution space and avoid precocity, embodiment provided by the present invention It is described in detail below.
Fig. 1 is please referred to, Fig. 1 is the cource arrangement method overview flow chart of dual temperature control provided in an embodiment of the present invention.The present invention In order to solve the problems in the existing technology, the choosing of optimal optimizing scheme is carried out using the simulated annealing that dual temperature controls It takes, particular content is as described below.
Step S101 obtains initial solution and neighbour structure.
In embodiment provided by the invention, it is necessary first to obtain the initial of the hard constraint condition that one meets all courses Optimizing scheme (i.e. initial solution) as analysis when original state, while obtain corresponded to according to the soft-constraint condition of course Neighbour structure as analysis mode.The hard constraint condition of course includes classroom conflict, time conflict, student's conflict, Jiao Shichong It dashes forward.The soft-constraint condition of course include same subject as far as possible same classroom, classroom capacity should not less than number of student, The working day of every kind of course weekly met the requirements not less than two days, course connectivity.
Specifically, initial solution is that classroom conflict is not present, time conflict is not present, student's conflict is not present, religion is not present A kind of optimizing scheme for situations such as teacher conflicts.
Neighbour structure is analysis mode when being analyzed, comprising:
Classroom is mobile: one course of exchange to another classroom at random.
Classroom capacity movable: from the course that all classroom capacity are less than number of student, it is mobile to randomly choose a course To another classroom.
Classroom stability is mobile: from all courses for being arranged into multiple classrooms, randomly choosing a course, is owned Class is moved to same room with them.
Period is mobile: one course event of exchange to another period at random.
Minimum working day is mobile: from the course that all every the inside of a week are less than that minimum working day requires, random selection one A course will be more than that primary course was moved in the working day that another does not arrange the class in same working day.
Course is mobile: one course of exchange to another random room and random time interval at random.
Course connectivity is mobile: random selection one violates the course of course connectivity constraint, is moved into and meets this The period of constraint.
Can be called by the caller of setting when being analyzed the corresponding processing routine of each analysis mode carry out by Step analysis is to obtain optimal optimizing scheme.
Step S102 obtains feasible solution according to the simulated annealing processing that initial solution and neighbour structure carry out dual temperature control, point Analyse whether the feasible solution is current globally optimal solution, if so, updating globally optimal solution.
In embodiment provided by the present invention, after the original state and analysis mode when obtaining analysis, so that it may according to The original state and analysis mode of setting are handled to obtain feasible optimizing scheme (i.e. feasible solution) using simulated annealing, And analyze whether the feasible solution is scheme more more reasonable than initial solution, if the feasible solution is the scheme more outstanding than initial solution, Using the feasible solution as current globally optimal solution, if the feasible solution is scheme more worse than initial solution, it is maintained for original initial It solves constant.It is similar, in subsequent analytic process if the latter feasible solution than current globally optimal solution scheme more adduction Reason, then globally optimal solution is just updated, using the feasible solution as globally optimal solution.
Specifically, random two courses can wherein will be swapped after obtaining initial solution, if can satisfy firmly about Beam (is not present classroom conflict, time conflict is not present, student's conflict is not present, situations such as teacher's conflict is not present), simultaneously Also more soft-constraint conditions are able to satisfy, then the feasible solution obtained after just course being used to exchange substitutes initial solution as the current overall situation Optimal solution.If being unsatisfactory for above situation, initial solution is also used as current globally optimal solution.
Step S103 judges whether to reach termination condition, if so, exporting the globally optimal solution.
In embodiment provided by the present invention, moved back when analysis can be set according to the actual situation using the simulation that dual temperature controls The number of iterations (i.e. update times) of temperature in fiery treatment process just exports currently complete when reaching the number of iterations of setting Office's optimal solution, the optimizing scheme final as this treatment process.If not reaching the number of iterations of setting, in order to avoid falling into Enter local optimal solution, the simulated annealing that current solution can be carried out to dual temperature control again as initial solution is handled, until reaching Then termination condition exports globally optimal solution at this time as final optimizing scheme.
Referring to figure 2., Fig. 2 is the establishment process schematic diagram of initial solution provided in an embodiment of the present invention, in order to preferably build Primary condition when a vertical analysis, so that the optimizing scheme that analysis obtains is more in line with demand, the embodiment of the invention provides Following methods establish initial solution, and particular content is as described below.
Step S201 obtains each course corresponding hard constraint difficulty system according to the hard constraint condition that all courses carry Number.
In embodiment provided by the invention, in order to which the more course of the constraint being subject to reasonably preferably is discharged into school timetable, The hard constraint degree-of-difficulty factor of each course can be obtained according to the hard constraint condition of each course.
Specifically, being otherwise labeled as 0 when the course is there are being labeled as 1 when the conflict of classroom;When there are time conflicts for the course When be labeled as 1, otherwise be labeled as 0;When the course is there are being labeled as 1 when student's conflict, otherwise labeled as 0;When the course exists It is labeled as 1 when teacher conflicts, is otherwise labeled as 0;Calculate hard constraint difficulty of the sum of each conflict reference numerals as each course Coefficient.
It should be noted that the mode of establishing of hard constraint degree-of-difficulty factor is not limited to above-mentioned mode, it can be according to reality Border situation selects suitable mode.
Step S202 is ranked up all courses according to hard constraint degree-of-difficulty factor, preferentially most hard constraint degree-of-difficulty factor High course discharges into curriculum schedule.
In embodiment provided by the invention, after obtaining the hard constraint degree-of-difficulty factor of each course, so that it may according to each The size of a course hard constraint degree-of-difficulty factor, is from big to small successively ranked up each course.
Step S203 updates the difficulty and sequence of remaining course after completing the arrangement of a course.
In embodiment provided by the invention, the maximum course of hard constraint difficulty is discharged among school timetable first, in addition, sufficiently After being discharged within school timetable in view of a course, can row's class to other courses impact, so being often discharged into a course Afterwards, the hard constraint degree-of-difficulty factor for not being discharged into course once is just recalculated, it then will firmly about again according to sequence from big to small The maximum course of beam degree-of-difficulty factor is discharged among school timetable.
Step S204 judges whether that all courses have arranged, if so, output initial solution;If it is not, then continuing remaining class Hard constraint degree-of-difficulty factor is highest in journey discharges into curriculum schedule.
It, can be finally obtained if each course has discharged into school timetable in embodiment provided by the invention Initial solution when optimizing scheme is as analysis.If not discharging into school timetable there are also course, continue to remaining course being discharged into class Among table, until all courses are all discharged into school timetable, then using obtained optimizing scheme as initial solution when analysis.
Referring to figure 3., Fig. 3 is the simulated annealing treatment process schematic diagram of dual temperature control provided in an embodiment of the present invention.For The search range for increasing solution avoids premature end analytic process, the simulated annealing that the embodiment of the present invention uses dual temperature to control Processing method analyzes course to obtain final optimizing scheme.Its particular content is as described below.
Step S301 obtains the first initial temperature and the second initial temperature.
In embodiment provided by the present invention, in order to avoid the simulated annealing search range of single temperature control is small, Yi Zao Ripe problem carries out simulated annealing processing by the way of dual temperature control to row's class process.Wherein, the first initial temperature and second Initial temperature can be inputted by user oneself according to the actual situation, can also be directly using the unified preset first initial temperature Degree and the second initial temperature.
Step S302, the random movement in the neighborhood of initial solution according to the first initial temperature and second initial temperature; If more preferably being solved at any temperature, receive movement.If obtaining worse solution, decide whether to receive according to probability This difference solution.
In embodiment provided by the present invention, under the action of the first initial temperature and the second initial temperature, it can work as It randomly chooses course in the neighborhood of preceding solution to be moved, more preferably to be solved, if in moving process at any temperature It is more preferably solved, then receives the movement, and replace current solution using obtained more preferably solution.If in moving process not Have and more preferably solved, then can receive difference solution according to probability, the calculation for receiving the probability of difference solution is as follows:
(exp(dE1/T1)>random(0,1)∨(exp(dE2/T2)>random(0,1));
Wherein, dE1Expression refers in T1The difference between new feasible solution, dE are currently solved under the conditions of temperature2Expression refers in T2 The difference between new feasible solution is currently solved under the conditions of temperature.Random number of the random (0,1) between [0,1].
Step S303 updates temperature according to preset mode, in the updated at a temperature of continue dual temperature control Simulated annealing processing.
In embodiment provided by the present invention, in order to reduce the probability for receiving difference solution, mould can be set according to the actual situation The update mode of temperature when quasi- annealing, as the temperature of the processing of simulated annealing next time, the update of temperature in the present embodiment Mode carries out according to the following formula:
T1=1/ ((1/T1)+0.2), T2=1/ ((1/T2)+0.09);
Wherein T1Represent the first initial temperature, T2Represent the second initial temperature.
Step S304 judges whether to meet exit criteria, export if so, will currently solve as locally optimal solution.
In embodiment provided by the present invention, when reaching preset exit criteria, so that it may end simulation annealing Process will be solved currently and be exported as locally optimal solution, and obtain the optimizing scheme of local optimum.If not reaching exit criteria, Analysis is continued with, until reaching exit criteria, then exports locally optimal solution at this time.
Referring to figure 4., Fig. 4 is row's class device composed structure block diagram provided in an embodiment of the present invention.The embodiment of the present invention is set Row's class device 100 corresponding with cource arrangement method provided by the invention is set, which includes obtaining module 110, analysis Module 120, judgment module 130.Wherein, module 110 is obtained for initial solution and neighbour structure needed for obtaining cource arrangement method, also For obtaining the first initial temperature and the second initial temperature that carry out the simulated annealing treatment process of dual temperature control.Analysis module 120 obtain feasible solution for carrying out the simulated annealing processing of dual temperature control according to initial solution and neighbour structure, and analysis module 120 is also For when not reaching termination condition, the simulated annealing that current solution is carried out to dual temperature control again as initial solution to be handled.Judge mould Block 130 is also used to judge whether to reach termination condition, to export the overall situation for judging whether feasible solution is current globally optimal solution Optimal solution.
Referring to figure 5., Fig. 5 is electronic devices structure schematic diagram provided in an embodiment of the present invention.
In order to better use cource arrangement method and device provided by the invention, corresponding electricity is provided in the embodiment of the present invention Sub- equipment 200, including memory 210, storage control 220, processor 230, Peripheral Interface 240, display 250, enter key Disk 260 etc..Memory 210 is for the corresponding program of the row's of storage class device 100, control program of processor 230 etc..Storage control Device 220 is for controlling memory 210.Processor 230 is used to control the correspondence program executed in memory 210 and carries out row's class.It is aobvious Show device 250 for showing obtained optimizing scheme.Input keyboard 260 is for user as needed at the row's of input class hour simulated annealing The first initial temperature, the second initial temperature and the control parameter of various programs etc. of reason.Memory 210, storage control 220, processor 230, Peripheral Interface 240, display 250, input keyboard 260 etc. are mutually directly or indirectly electrically connected, with Realize the transmission or interaction of data.
Specifically, processor 230 can be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (DSP), specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate Or transistor logic, discrete hardware components.May be implemented or execute disclosed each method in the embodiment of the present invention, Step and logic diagram.General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
Memory 210 may be, but not limited to, random access memory (Random Access Memory, RAM), only It reads memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc.. Wherein, memory 210 is for storing program, and the processor 230 executes described program, this hair after receiving and executing instruction The method that bright embodiment any embodiment discloses all is applied in processor 230, or is realized by processor 230.
In conclusion the present invention provides the cource arrangement method and device of a kind of dual temperature control, built first according to hard constraint condition Vertical one meets the initial solution (i.e. initial optimizing scheme) of all hard constraint conditions, and establishes corresponding neighbour according to soft-constraint condition Domain structure;It reuses simulated annealing to be handled, obtain feasible solution (i.e. feasible optimizing scheme);What is judged again can Whether row solution is current globally optimal solution, if so, globally optimal solution is just updated, if not being maintained for current global optimum Solution, reuses dual temperature simulated annealing to current globally optimal solution and heats up again, repeatedly with this, jump out local optimum;When reaching Globally optimal solution is just exported when termination condition as final optimizing scheme, and conduct will be currently solved if not up to termination condition Initial solution carries out the simulated annealing processing of dual temperature control again, until reaching termination condition, then exports global optimum at this time Solution is as final optimizing scheme.Intelligent control is controlled using dual temperature in the simulated annealing stage, increases the search range of solution space And avoid precocity.Neighbour structure design based on binding characteristic improves the search precision of algorithm, accelerates global convergence speed, The more individual requirements of satisfaction, the optimal optimizing scheme of resultant effect can be quickly obtained.
It should be noted that the above description is only an embodiment of the present invention, it is not intended to restrict the invention, for this For the technical staff in field, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made Any modification, equivalent substitution, improvement and etc., should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of cource arrangement method of dual temperature control characterized by comprising
Initial solution is obtained, the initial solution is to meet the scheme of all hard constraint conditions;
Neighbour structure is obtained, the neighbour structure is the corresponding scheme of soft-constraint condition;
It is handled according to the simulated annealing that the initial solution and the neighbour structure carry out dual temperature control and obtains feasible solution, described in analysis Whether feasible solution is current globally optimal solution, if so, updating globally optimal solution;
Judge whether to reach termination condition, if so, exporting the globally optimal solution.
2. the method according to claim 1, wherein described judge whether the step of reaching termination condition, also to wrap It includes:
If it is not, then being heated up again to the current globally optimal solution, at the simulated annealing for carrying out the dual temperature control again Reason.
3. the method according to claim 1, wherein the method also includes:
Initial solution is established according to the hard constraint condition, the hard constraint condition includes classroom, time, student's conflict, Jiao Shichong It is prominent;
Neighbour structure is established according to the soft-constraint condition, the soft-constraint condition is the preset requirement during row's class.
4. according to the method described in claim 3, it is characterized in that, the neighbour structure includes:
Classroom is mobile, exchanges a course at random to another classroom;
Classroom capacity movable, from all classroom capacity be less than number of students course in, randomly choose a course be moved to it is another A classroom;
Classroom stability is mobile, from all courses for being arranged into multiple classrooms, randomly chooses a course, by its all class It is moved to same room with them;
Period is mobile, exchanges a course at random to another period;
Minimum working day is mobile, from the course that all every the inside of a week are less than that minimum working day requires, randomly chooses a class Journey will be more than that primary course was moved in the working day that another does not arrange the course in same working day;
Course is mobile, exchanges a course at random to another random room and random time interval;
Course connectivity is mobile, randomly chooses the course for violating the constraint of course connectivity, is moved into and meets the constraint Period.
5. according to the method described in claim 3, it is characterized in that, the step for establishing initial solution according to the hard constraint condition Suddenly, comprising:
The corresponding hard constraint degree-of-difficulty factor of each course is obtained according to the hard constraint condition that all courses carry;
All courses are ranked up according to the hard constraint degree-of-difficulty factor, preferentially the highest course of hard constraint degree-of-difficulty factor is arranged Into curriculum schedule;
After completing the arrangement of a course, the difficulty and sequence of remaining course are updated;
Judge whether that all courses have arranged, if so, output initial solution;If it is not, then continuing hard constraint hardly possible in remaining course Coefficient is highest discharges into curriculum schedule for degree.
6. the method according to claim 1, wherein carrying out dual temperature according to the initial solution and the neighbour structure The simulated annealing processing of control obtains feasible solution, analyzes whether the feasible solution is current globally optimal solution, if so, updating complete Office optimal solution, the step of include:
Obtain the first initial temperature and the second initial temperature;
The random movement in the neighborhood of the initial solution according to first initial temperature and second initial temperature;If any It is more preferably solved at a kind of temperature, then receives movement;
Update temperature according to preset mode, in the updated at a temperature of continue at the simulated annealing of dual temperature control Reason;
Judge whether to meet exit criteria, be exported if so, will currently solve as locally optimal solution.
7. according to the method described in claim 6, it is characterized in that, described update temperature according to preset mode, in the updated At a temperature of the step of continuing the simulated annealing processing of dual temperature control take following manner to realize:
T1=1/ ((1/T1)+0.2)
T2=1/ ((1/T2)+0.09)
Wherein T1Represent the first initial temperature, T2Represent the second initial temperature.
8. according to the method described in claim 6, it is characterized in that, it is described according to the initial solution and the initial temperature in institute State random movement in the neighborhood of initial solution;If more preferably being solved at any temperature, receive mobile step further include:
If obtaining worse solution, decide whether that receiving this difference solves according to probability.
9. the method according to the description of claim 7 is characterized in that deciding whether to connect according to probability if obtaining worse solution Following manner is taken to realize by the step of this difference solution:
(exp(dE1/T1)>random(0,1)∨(exp(dE2/T2)>random(0,1));
Wherein, dE1Expression refers in T1The difference between new feasible solution, dE are currently solved under the conditions of temperature2Expression refers in T2Temperature Under the conditions of currently solve new feasible solution between difference.
10. a kind of row's class device of dual temperature control characterized by comprising
Module is obtained, for obtaining initial solution and neighbour structure;
Analysis module, the simulated annealing processing for carrying out dual temperature control according to the initial solution and the neighbour structure obtains can Row solution, analyzes whether the feasible solution is current globally optimal solution, if so, updating the globally optimal solution;
Judgment module reaches termination condition for judging whether, if so, exporting the globally optimal solution;
If the analysis module is also used to not reach termination condition, heated up again to the current globally optimal solution, then The secondary simulated annealing processing for carrying out the dual temperature control.
CN201811518914.1A 2018-12-12 2018-12-12 A kind of cource arrangement method and device of dual temperature control Pending CN109657853A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811518914.1A CN109657853A (en) 2018-12-12 2018-12-12 A kind of cource arrangement method and device of dual temperature control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811518914.1A CN109657853A (en) 2018-12-12 2018-12-12 A kind of cource arrangement method and device of dual temperature control

Publications (1)

Publication Number Publication Date
CN109657853A true CN109657853A (en) 2019-04-19

Family

ID=66114309

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811518914.1A Pending CN109657853A (en) 2018-12-12 2018-12-12 A kind of cource arrangement method and device of dual temperature control

Country Status (1)

Country Link
CN (1) CN109657853A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111079976A (en) * 2019-11-15 2020-04-28 珠海丰实科技有限责任公司 Course arrangement method based on improved simulated annealing and hill climbing algorithm mixed search
CN114565152A (en) * 2022-02-25 2022-05-31 合肥卓瑞信息技术有限公司 Optimized intelligent course arrangement method based on simulated annealing algorithm

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106127355A (en) * 2016-07-19 2016-11-16 焦点科技股份有限公司 The cource arrangement method of a kind of high efficiency smart and system
CN108846782A (en) * 2018-06-05 2018-11-20 科大讯飞股份有限公司 Schedule aranging generation method and device, storage medium, electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106127355A (en) * 2016-07-19 2016-11-16 焦点科技股份有限公司 The cource arrangement method of a kind of high efficiency smart and system
CN108846782A (en) * 2018-06-05 2018-11-20 科大讯飞股份有限公司 Schedule aranging generation method and device, storage medium, electronic equipment

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
TING SONG: "An iterated local search algorithm for the University Course Timetabling Problem", 《APPLIED SOFT COMPUTING》 *
唐烨明等: "基于遗传退火算法的排课系统", 《APPLIED COMPUTING,COMPUTER SCIENCE, AND COMPUTER ENGINEERING(ACC 2011 V1)》 *
雷雨: "面向考试时间表问题的启发式进化算法研究", 《CNKI博士学位论文库》 *
高健等: "一种改进的模拟退火算法求解中学排课问题", 《计量工作者论坛》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111079976A (en) * 2019-11-15 2020-04-28 珠海丰实科技有限责任公司 Course arrangement method based on improved simulated annealing and hill climbing algorithm mixed search
CN111079976B (en) * 2019-11-15 2023-09-01 珠海丰实科技有限责任公司 Lesson arranging method based on improved simulated annealing and hill climbing algorithm mixed search
CN114565152A (en) * 2022-02-25 2022-05-31 合肥卓瑞信息技术有限公司 Optimized intelligent course arrangement method based on simulated annealing algorithm

Similar Documents

Publication Publication Date Title
Sels et al. Hybrid tabu search and a truncated branch-and-bound for the unrelated parallel machine scheduling problem
CN109447270A (en) A kind of electrical equipment intelligent control method and system, computer equipment and medium
CN104572998B (en) Question and answer order models update method and device for automatically request-answering system
Ahmed et al. Solving high school timetabling problems worldwide using selection hyper-heuristics
Ciomek et al. Heuristics for prioritizing pair-wise elicitation questions with additive multi-attribute value models
CN109657853A (en) A kind of cource arrangement method and device of dual temperature control
Sarabando et al. Multiattribute choice with ordinal information: A comparison of different decision rules
Watson A" reputation" refinement without equilibrium
CN104239481A (en) Search method, system and network robot
Wen-jing Improved Adaptive Genetic Algorithm for Course Scheduling in Colleges and Universities.
Qaraad et al. Addressing constrained engineering problems and feature selection with a time-based leadership salp-based algorithm with competitive learning
Abbasnia et al. Time-cost trade-off problem in construction project management, based on fuzzy logic
CN110323758A (en) A kind of electric system discrete reactive power optimization method based on serial Q learning algorithm
CN110009161A (en) Water supply forecast method and device
CN111046156B (en) Method, device and server for determining rewarding data
Pop et al. Language change in a multiple group society
CN110147888A (en) The method, apparatus and equipment of multi-objective optimization question are solved based on learning aid algorithm
CN114343437B (en) Auxiliary cooking system and method based on voice recognition
Ironi et al. Model-based design of synthetic networks.
Li Application of ordinal optimization for distribution system reconfiguration
CN116739548A (en) Course arrangement method, device, medium and electronic equipment
CHEN Pharmaceutical Laboratory Course Scheduling System Optimization Based on Genetic Algorithm
Upputuri et al. Optimal Power Flow Using a Hybrid Improved Harris Hawks Optimization Algorithm-Pattern Search Method
Sova et al. COMPREHENSIVE METHODOLOGY FOR ASSESSING INFORMATION AND ANALYTICAL SUPPLY IN DECISION SUPPORT SYSTEMS
CN118227341A (en) Interactive implementation method and device of target allocation decision model

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190419