⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 time_constraints_documentation.html

📁 用遗传算法写的软件,非常有用! 值得大家一看!
💻 HTML
📖 第 1 页 / 共 3 页
字号:
conflicts factor that increases with the number of lessons thatfollow after this activity (in the same day).</FONT></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in"><FONT FACE="Garamond, serif">ConstraintActivityPreferredTime</FONT></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><FONT FACE="Garamond, serif"><B>Subtags: </B>Weight, Compulsory,Activity_Id, Preferred_Hour, Preferred_Day</FONT></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><FONT FACE="Garamond, serif"><B>Description: </B>It adds, to thefitness of the chromosome, a fitness factor that grows as theactivity is scheduled farther from the wanted time For the moment,fitness factor increases with one unit for every hour and one unitfor every day. For compulsory constraints, the solution candidate isrepaired before evaluation (so all solutions will respect theseconstraints and there will be no conflicts reported). This is faster(proved practically, not theoretically). For non-compulsoryconstraints, the method is conflict reporting. The procedure reportsa conflicts factor that is increasing with the distance to thedesired period. This might generate worse solutions, if you are onlyinterested in the exact placement. In this case, please useConstraintActivityPreferredTimes with only one preferred time.</FONT></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT><FONT FACE="Garamond, serif">ConstraintActivityPreferredTimes</FONT></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><FONT FACE="Garamond, serif"><B>Subtags: </B>Weight, Compulsory,Activity_Id, Number_of_Preferred_Times, <B>Preferred_Time</B></FONT></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><FONT FACE="Garamond, serif"><B>Preferred_Time Subtags:</B>Preferred_Day, Preferred_Hour</FONT></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><FONT FACE="Garamond, serif"><B>Description: </B>It returns conflictsif the activity is scheduled in another interval than the preferredset of times. You can specify a set of time slots when this activitycan be scheduled (a kind of OR of moreConstraintActivityPreferredTime). Important: For only onenon-compulsory preferred time, ConstraintActivityPreferredTimes mightbehave better than ConstraintActivityPreferredTime, depending onwhether you are interested in minimizing the distance to thispreferred time or only in reaching the exact preferred time. Pleasesee the detailed observation in the explanation ofConstraintActivityPreferredTime.</FONT></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT><FONT FACE="Garamond, serif">ConstraintBasicCompulsoryTime</FONT></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><FONT FACE="Garamond, serif"><B>Subtags: </B>Weight, Compulsory</FONT></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><FONT FACE="Garamond, serif"><B>Description: </B>This class comprisesall the basic compulsory constraints (constraints which must befulfilled for any timetable) - the time allocation part.</FONT></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT><FONT FACE="Garamond, serif">ConstraintBreak</FONT></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><FONT FACE="Garamond, serif"><B>Subtags: </B>Weight, Compulsory, Day,Start_Hour, End_Hour</FONT></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><FONT FACE="Garamond, serif"><B>Description: </B>It constrains thetimetable to not schedule any activity in the specified day, betweenthe start hour and end hour.</FONT></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT><FONT FACE="Garamond, serif">ConstraintMinNDaysBetweenActivities</FONT></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><FONT FACE="Garamond, serif"><B>Subtags: </B>Weight, Compulsory, Day,Number_of_Activities, Activity_Id, Activity_Id, MinDays</FONT></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><FONT FACE="Garamond, serif"><B>Possible Subtags: </B>MoreActivity_Id</FONT></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><FONT FACE="Garamond, serif"><B>Description: </B>It refers to a setof activities and involves a constant, N. For every pair ofactivities in the set, it does not allow the distance(in days)between them to be less than N. If you specify N=1, then thisconstraint means that no two activities can be scheduled in the sameday. N=2 means that each two subactivities must be separated by atleast one day. Example: 3 activities and N=2. Then, one can placethem on Monday, Wednesday and Friday (5 days week). Example2: 2activities, N=3. Then, one can place them on Monday and Thursday, onMonday and Friday, then on Tuesday and Friday (5 days week).</FONT></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT><FONT FACE="Garamond, serif">ConstraintStudentsEarly</FONT></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><FONT FACE="Garamond, serif"><B>Subtags: </B>Weight, Compulsory</FONT></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><FONT FACE="Garamond, serif"><B>Description: </B>It adds, to thefitness of the chromosome, a fitness factor that is related to howearly the students begin their courses. The result is a timetablehaving more activities scheduled at the beginning of the day.IMPORTANT: biweekly activities are treated as weekly ones, for speedand because in normal situations this does not matter. It is aconstraint that imposes the condition that all the students mustbegin their courses as early as possible. You have to be careful withthis constraint: if any set of students begins the classes later thanthe first hour in a certain day, you will get a conflict.</FONT></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT><FONT FACE="Garamond, serif">ConstraintStudentsNHoursDaily</FONT></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><FONT FACE="Garamond, serif"><B>Subtags: </B>Weight, Compulsory,MaxHoursDaily, MinHoursDaily</FONT></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><FONT FACE="Garamond, serif"><B>Description: </B>The result is atimetable respecting the condition that all of the students must nothave too little or too much hours in a day.</FONT></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT><FONT FACE="Garamond, serif">ConstraintStudentsNoGaps</FONT></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><FONT FACE="Garamond, serif"><B>Subtags: </B>Weight, Compulsory</FONT></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><FONT FACE="Garamond, serif"><B>Description: </B>It adds, to thefitness of the chromosome, a conflicts factor computed from the gapsexisting in the timetable (regarding the students). The overallresult is a timetable having less gaps for the students.</FONT></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT><FONT FACE="Garamond, serif">ConstraintStudentsSetIntervalMaxDaysPerWeek</FONT></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><FONT FACE="Garamond, serif"><B>Subtags: </B>Weight, Compulsory,Students, Start_Hour, End_Hour, Max_Intervals</FONT></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><FONT FACE="Garamond, serif"><B>Description: </B>For a certainstudents set: The purpose is that a certain interval not be scheduledmore than n times in a week (for example, there must be only 2occupied intervals between hours 3 and 6, which might be on Mondayand on Tuesday. Quite a difficult and long name. A user needed aconstraint to disallow more than 2 afternoons per week for a studentsset. This constraint is more general. You can specify an interval (bythe start and end hour), a students set and the maximum number ofdays in a week when it is permitted to have activities in this timeinterval.</FONT></P><P ALIGN=LEFT STYLE="margin-left: 0.75in; text-indent: -0.75in; margin-bottom: 0in"><BR>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -