fet
5.18.0

00001 /*************************************************************************** 00002 helpfaqform.cpp  description 00003  00004 begin : Feb 20, 2005 00005 copyright : (C) 2005 by Lalescu Liviu 00006 email : Please see http://lalescu.ro/liviu/ for details about contacting Liviu Lalescu (in particular, you can find here the email address) 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #include "helpfaqform.h" 00019 00020 #include "timetable_defs.h" 00021 00022 HelpFaqForm::HelpFaqForm(QWidget* parent): QDialog(parent) 00023 { 00024 setupUi(this); 00025 00026 closePushButton>setDefault(true); 00027 00028 plainTextEdit>setReadOnly(true); 00029 00030 connect(closePushButton, SIGNAL(clicked()), this, SLOT(close())); 00031 00032 centerWidgetOnScreen(this); 00033 restoreFETDialogGeometry(this); 00034 00035 setText(); 00036 } 00037 00038 HelpFaqForm::~HelpFaqForm() 00039 { 00040 saveFETDialogGeometry(this); 00041 } 00042 00043 void HelpFaqForm::setText() 00044 { 00045 QString s; 00046 00047 s+=tr("Frequently asked questions."); 00048 s+="\n\n"; 00049 s+=tr("Last modified on %1.").arg(tr("30 April 2012")); 00050 00051 s+="\n\n"; 00052 s+=""; 00053 s+="\n\n"; 00054 00055 s+=tr("Q: What is the organization of FET input data?\n\n" 00056 "A:  Students  organized into sets (years (or forms, or classes), containing groups, containing subgroups)." 00057 "\n" 00058 " Teachers." 00059 "\n" 00060 " Subjects (the names of the possible courses, eg. Maths, Physics, etc.)." 00061 "\n" 00062 " Activity tags (you can use them or not, option is yours: the type of activity: lab, course, seminary, or any other information attached to an activity)." 00063 "\n" 00064 " Rooms (classrooms)." 00065 "\n" 00066 " Activities: a coupling of one or more teachers, a subject and one or more students set. This is usually named a " 00067 "course, a lecture, a laboratory and so on. An activity can have optionally an activity tag, to help you with some constraints." 00068 "\n" 00069 " Constraints. They can be: time constraints (referring to the allocated day and hour) or space constraints " 00070 "(referring to rooms allocation). They have a weight percentage, from 0.0% to 100.0%. 100% means that the " 00071 "constraint will always be respected and if this constraint is impossible, FET will not be able to generate a timetable."); 00072 00073 s+="\n\n"; 00074 s+=""; 00075 s+="\n\n"; 00076 00077 s+=tr("Q: What are the maximum limits FET can handle?"); 00078 s+="\n\n"; 00079 s+=tr("A: There are indeed maximum limits for the generation algorithm (all these limits can be increased on demand, as a custom version, because this requires a bit more memory)."); 00080 s+="\n\n"; 00081 s+=tr("These limits are:"); 00082 00083 s+="\n "; 00084 s+=tr("Maximum total number of hours (periods) per day: %1").arg(MAX_HOURS_PER_DAY); 00085 s+="\n "; 00086 s+=tr("Maximum number of working days per week: %1").arg(MAX_DAYS_PER_WEEK); 00087 s+="\n "; 00088 s+=tr("Maximum total number of teachers: %1").arg(MAX_TEACHERS); 00089 s+="\n "; 00090 s+=tr("Maximum total number of sets of students: %1").arg(MAX_TOTAL_SUBGROUPS); 00091 s+="\n "; 00092 s+=tr("Maximum total number of subjects: %1").arg(MAX_SUBJECTS); 00093 s+="\n "; 00094 s+=tr("Virtually unlimited number of activity tags"); 00095 s+="\n "; 00096 s+=tr("Maximum number of activities: %1").arg(MAX_ACTIVITIES); 00097 s+="\n "; 00098 s+=tr("Maximum number of rooms: %1").arg(MAX_ROOMS); 00099 s+="\n "; 00100 s+=tr("Maximum number of buildings: %1").arg(MAX_BUILDINGS); 00101 s+="\n "; 00102 s+=tr("Virtually unlimited number of teachers and students sets for each activity"); 00103 s+="\n "; 00104 s+=tr("Virtually unlimited number of time constraints"); 00105 s+="\n "; 00106 s+=tr("Virtually unlimited number of space constraints"); 00107 00108 s+="\n\n"; 00109 s+=""; 00110 s+="\n\n"; 00111 00112 s+=tr("Q: Why some activities appear indented while others not?\n\n" 00113 "A: The activities are indented for easier visualization. The nonindented ones are the representatives of a " 00114 "larger split activity (their id is the group id of the larger split activity), while indented ones are " 00115 "the other components of this larger split activity."); 00116 00117 s+="\n\n"; 00118 s+=""; 00119 s+="\n\n"; 00120 00121 s+=tr("Q: Is it possible to use noninteger weights for constraints?\n\n" 00122 "A: Yes. Using values like 99.75% might be good sometimes. " 00123 "The precision in FET is limited to %1 decimal digits after the decimal point, " 00124 "but probably nobody will use such a fine precision").arg(CUSTOM_DOUBLE_PRECISION); 00125 00126 s+="\n\n"; 00127 s+=""; 00128 s+="\n\n"; 00129 00130 s+=tr("Q: Help on ConstraintStudentsEarlyMaxBeginningsAtSecondHour.\n\n" 00131 "A: You can specify the maximum number of beginnings at second available hour (arrivals at third hour not possible).\n\n" 00132 "If you input only partial data, please use with caution. If you add a constraint with max 0 beginnings at second " 00133 "hour: you might for instance input only 4+4 hourly activities of math with the same teacher for 2 students " 00134 "sets (each group of 4 activities must be ballanced  in different days). Then it is clear that you cannot place " 00135 "all 8 activities in a 5 days week without breaking the students early constraint, so you will get no possible timetable."); 00136 00137 s+="\n\n"; 00138 s+=""; 00139 s+="\n\n"; 00140 00141 s+=tr("Q: How about optional subjects or students sets which are divided according to options?\n\n" 00142 "A: One possible approach: in FET you can have each activity with more teachers and students sets. " 00143 "If you have for instance students set S which must attend subject Language1, English (with teacher TE) " 00144 "or French (teacher TF), you might choose not divide S and add an activity with Language1, S and TE and TF." 00145 " The drawback: each activity can take place in a single room, you cannot tell FET that this activity should " 00146 "be in 2 or more rooms at the same time, and from here derive other problems: if some room is not available, " 00147 "if capacity of room is too low for the number of students in S FET cannot find timetable, and maybe others.\n\n" 00148 "Another possible approach: you may choose to define students into sections (see question below)."); 00149 00150 s+="\n\n"; 00151 s+=""; 00152 s+="\n\n"; 00153 00154 s+=tr("Q: How to define the students into sections?\n\n" 00155 "A: FET can automatically divide years by at most 3 categories of options. If you need to divide " 00156 "a year into 4 categories, you can use a small trick (see below)." 00157 "\n\n" 00158 "Add years and the option 'Divide ...' in the years dialog is the easiest way. You can also add manually years, groups and subgroups." 00159 "\n\n" 00160 "If each year (for instance 9) is divided by at most 3 categories, you can add year 9 and divide it in 3 categories. " 00161 "If a year is divided by 4 categories (for instance, year 9 is divided by: section (a, b, c, d), language (en, fr), " 00162 "religion and boys/girls), you might consider years: 9a, 9b, 9c, 9d, each divided into 3 categories, and divide each year in " 00163 "the dialog. For more than 4 categories, very unlikely case, you will need to manually adjust groups/subgroups."); 00164 s+="\n\n"; 00165 s+=tr("Important: you must consider that each year contains groups which contain independent subgroups. Subgroups should have " 00166 "all the activities of the year and group plus additional optional activities. Please check menu statistics/students for " 00167 "subgroups, each subgroup should have a reasonable number of working hours per week, close to the average of hours per week for all subgroups."); 00168 s+="\n\n"; 00169 s+=tr("An impossible timetable might be caused by incorrect years division. Please check statistics/students for all subgroups" 00170 ", each subgroup should have the necessary hours, not less. If you have for instance some subgroups with less than say 20 " 00171 "hours per week you might get an impossible timetable, probably because of incorrect division of years and incorrectly added " 00172 "activities. All the subgroups are independent. If you have a subgroup with only 2 hours per week and constraint early, " 00173 "then these 2 activities must be placed in the first hours of the day, which is probably much too hard (wrong)."); 00174 s+="\n\n"; 00175 s+=tr("Important note: please do the correct division of a year from the beginning. Each time you divide a year, the " 00176 "corresponding activities and constraints referring to year's groups and subgroups will be removed, along with groups " 00177 "and subgroups. This is not elegant, I know, I will try to find a better solution in the future. If you already inputted " 00178 "a lot of constraints and activities referring to a year's groups/subgroups, you might want to manually change the division of " 00179 "a year by the groups/subgroups menus."); 00180 s+="\n\n"; 00181 s+=tr("Another possibility: you can see that each activity has allowed more teachers/students sets. If you need to split year Y " 00182 "according to Language1 (with teachers T1 and T2), you might not split Y and add an activity with Y and teachers T1 and " 00183 "T2 and subject 'Language1'. This is a small trick, which might be easier to use than to divide a year."); 00184 00185 s+="\n\n"; 00186 s+=""; 00187 s+="\n\n"; 00188 00189 s+=tr("Q: What is the structure of the students FET can handle?\n\n" 00190 "A: FET was designed to allow any school structure:\n\n" 00191 " independent subgroups (nonoverlapping);\n\n" 00192 " overlapping groups (several subgroups) and years (several groups)."); 00193 00194 s+="\n\n"; 00195 s+=""; 00196 s+="\n\n"; 00197 00198 s+=tr("Q: How can one work with overlapping structures of students?\n\n" 00199 "A: If you have overlapping groups, then you must define the smallest independent subgroup, which does not overlap with any other subgroup." 00200 " Example: you have 1 group, subject sport (which must be taught to boys and girls separately) and subject physics, which is an optional " 00201 "subject and only some students would like to have this course (yes, FET can manage optional subjects). Then, you must define the " 00202 "subgroups: boys who want physics, boys who do not want physics, girls who want physics, girls who do not want physics." 00203 " Now, it is very easy. Just define\n\n" 00204 "group girls=subgroup girls who want physics + girls who do not want physics,\n" 00205 "group boys=subgroup boys who want physics + boys who do not physics\n" 00206 "group physics=boys who want physics + girls who want physics.\n\n" 00207 "Then, you can add as many activities as you want to the corresponding groups:\n" 00208 "Activity1: teacher A, group girls, subject sport;\n" 00209 "Activity2: teacher B, group boys, subject sport;\n" 00210 "Activity3: teacher C, group physics, subject optional physics.\n\n" 00211 "NEW: the thing is automatic now. Just select year>divide in the years dialog. Please see above entries in the FAQ."); 00212 00213 s+="\n\n"; 00214 s+=""; 00215 s+="\n\n"; 00216 00217 s+=tr("Q: Can you add more students sets or teachers to a single activity?\n\n" 00218 "A: Yes, you can add several students sets (subgroups, groups or years) and several teachers per activity."); 00219 00220 s+="\n\n"; 00221 s+=""; 00222 s+="\n\n"; 00223 00224 s+=tr("Q: Help on ConstraintMinDaysBetweenActivities.\n\n" 00225 "A: It refers to a set of activities and involves a constant, N. For every pair of activities in the set, " 00226 "it does not allow the distance(in days) between them to be less than N. If you specify N=1, then this " 00227 "constraint means that no two activities can be scheduled in the same day. N=2 means that each two activities " 00228 "must be separated by at least one day\n\n" 00229 "Example: 3 activities and N=2. Then, one can place them on Monday, Wednesday and Friday (5 days week).\n\n" 00230 "Example2: 2 activities, N=3. Then, one can place them on Monday and Thursday, on Monday and Friday, then on Tuesday and Friday (5 days week).\n\n" 00231 "The weight is recommended to be between 95.0%100.0%. The best might be 99.75% or a value a little under 100%, " 00232 "because FET can detect impossible constraints this way and avoid them. The weight is subjective.\n\n" 00233 "You can specify consecutive if same day. Please be careful, even if constraint min days between activities has 0% " 00234 "weight, if you select this consecutive if same day, this consecutive will be forced. You will not be able to find " 00235 "a timetable with the two activities in the same day, separated by break, not available or other activities, even " 00236 "if the constraint has weight 0%, if you select consecutive if same day.\n\n" 00237 "Currently FET can put at most 2 activities in the same day if 'consecutive if same day' is true. " 00238 "FET cannot put 3 or more activities in the same day if 'consecutive if same day' is true."); 00239 s+="\n\n"; 00240 s+=tr("Important: please do not input unnecessary duplicates. If you input for instance 2 constraints:\n\n" 00241 "1. Activities 1 and 2, min days 1, consecutive if same day=true, weight=95%\n" 00242 "2. Activities 1 and 2, min days 1, consecutive if same day=false, weight=95%\n" 00243 "(these are different constraints),\n" 00244 "then the outcome of these 2 constraints will be a constraint:\n\n" 00245 "Activities 1 and 2, min days 1, consecutive if same day=true, weight=100%5%*5%=99.75%, very high. This is because of FET algorithm.\n\n" 00246 "You may however add 2 constraints for the same activities if you want 100% with min 2 days and 95% with min 1 day. These are not duplicates.\n\n" 00247 "You might get an impossible timetable with duplicates, so beware."); 00248 s+=tr("If you need to balance 3 activities in a 5 days week, you can add, in the new version 5.5.8 and higher, " 00249 "directly from the add activity dialog, 2 constraints. You just have to input min days 2, and FET will ask if " 00250 "you want to add a second constraint with min days 1. This way, you can ensure that the activities are balanced " 00251 "better (at least one day apart, usually 2 days apart)"); 00252 00253 s+="\n\n"; 00254 s+=""; 00255 s+="\n\n"; 00256 00257 s+=tr("Q: Can I use FET to do interactive timetabling?\n\n" 00258 "A: Yes, but this is not easy. All the part regarding data representation and gradually construction of the solution is working, " 00259 "only the interface has to be updated.\n\n" 00260 "Anyway, when you add a compulsory ConstraintActivityPreferredStartingTime, it means that you fixed that activity. You can use " 00261 "this feature for a semiautomatic or even manual timetabling, but it is not so convenient."); 00262 00263 s+="\n\n"; 00264 s+=""; 00265 s+="\n\n"; 00266 00267 s+=tr("Q: Is it possible to make a timetable where the students learn in two shifts? (for instance, the lowest form in the morning and " 00268 "the highest forms in the afternoon)?\n\n" 00269 "A: Yes, you have to add more constraint students set not available accordingly (for the lowest forms not available Mon, " 00270 "Tue, Wed, Th, Fr each from middle hour to last hour and for highest forms from first hour to middle hour). " 00271 "The constraints no gaps and early work correctly with these not available: if not available, a students set will not have " 00272 "gaps or early broken for the period of nonavailability."); 00273 00274 s+="\n\n"; 00275 s+=""; 00276 s+="\n\n"; 00277 00278 s+=tr("Q: I added an activity with min days constraint. But I cannot see the min days value in modify activity dialog\n\n" 00279 "A: Min days is a time constraint. You can see it in the time constraints dialog"); 00280 00281 s+="\n\n"; 00282 s+=""; 00283 s+="\n\n"; 00284 00285 s+=tr("Q: Can I work with fortnightly activities like in older FET versions?\n\n" 00286 "A: You have to use some tricks. It would be difficult to consider fortnightly activities into the new FET algorithm " 00287 "(from 5.0.0 up). But I think you can apply this: for instance, I suppose that you would like the first week to have activity " 00288 "A1 (teacher T1, student S1) and A2 (T2, S2), and second week A3 (T1, S2) and A4 (T2, S1) (simultaneously)." 00289 " You could define a weekly activity A (T1, T2, S1, S2). If you need 2 rooms for A, then you can define dummy " 00290 "A' (no teachers, no students) and constraint activities same starting time A and A' and add rooms for A and A' ."); 00291 00292 s+="\n\n"; 00293 s+=""; 00294 s+="\n\n"; 00295 00296 00297 s+=tr("Q: How to choose the weight percentage of constraint min days between activities?\n\n" 00298 "A: You can use for the constraint min days the weight you want. It can be 95%, 99%, 99.75% or even 100%, but please make sure " 00299 "your timetable is not too constrained. Please take care of the impossible constraints, they should have under 100% weight " 00300 "(percentage)  best would be 0%. For instance, if a teacher teaches only two days per week and has 3 math lessons for " 00301 "a group, then it is clear that the constraint cannot be respected, so the correct way is to specify under 100% weight " 00302 "(percentage) for the corresponding min days constraint  best would be 0%."); 00303 s+="\n\n"; 00304 s+=tr("You could try at first the 95% minimum recommended value, then highten the weight percentage up to maybe 100%. " 00305 "I am not sure here, I have not enough sample files (please contribute with advice). If you would like to change " 00306 "the 95% for another value for all constraints of this type, the easiest way is in Data/Time constraints/Min days between " 00307 "activities dialog, where starting with version 5.3.6 there is a simple command for that."); 00308 s+="\n\n"; 00309 s+=tr("You might want to choose different weights for different constraint min days (for instance, higher on subjects with less activities per week)"); 00310 00311 s+="\n\n"; 00312 s+=""; 00313 s+="\n\n"; 00314 00315 s+=tr("Q: Are some constraints more efficient in speed of generation than other constraints, even if they give the same result?\n\n" 00316 "A: From the way the algorithm is conceived, the automatic generation is faster if you use students set (or teacher) not available " 00317 "and/or constraint activity(ies) preferred time slots or constraint activity preferred starting time to specify impossible slots, " 00318 "in addition to possible use of students (set) or teacher(s) max hours daily, whenever it is possible. For instance, if you " 00319 "know that year 5 will only have hours from 8:00 to 13:00, it is better to add students set not available in addition to students " 00320 "set max hours daily. So, if possible, try to follow this advice. This trick helps guide FET better towards a solution.\n\n" 00321 "Each constraint of type not available or preferred times which filters out impossible slots might bring an improvement in speed."); 00322 00323 s+="\n\n"; 00324 s+=""; 00325 s+="\n\n"; 00326 00327 s+=tr("Q: Is it allowed to use noninteger weights?\n\n" 00328 "A: If a constraint is allowed values under 100%, you can use any weight, even fractional numbers like 99.75%. It might help " 00329 "in constraints like min days, preferred rooms or max hours daily."); 00330 00331 s+="\n\n"; 00332 s+=""; 00333 s+="\n\n"; 00334 00335 00336 s+=tr("Q: I have a sports room which allows more than 1 activity simultaneously in it. How to make the preferred room constraints? " 00337 "Can FET accept more than one activity at the same time in a single room?\n\n" 00338 "A: Each room can host a single activity at the same time. How to implement what you need? You can add more " 00339 "rooms (sport1, sport2, sport3) and instead of a single preferred room add more preferred rooms."); 00340 00341 s+="\n\n"; 00342 s+=""; 00343 s+="\n\n"; 00344 00345 s+=tr("Q: I got an impossible to solve timetable!\n\n" 00346 "A: If you get an impossible timetable, maybe the constraints students (set) early are too difficult. " 00347 "Maybe you can allow more arrivals at second hour. Also teachers' min hours daily might be too strong. " 00348 "Please also check the statistics to be correct. Remove other constraints until you get a possible timetable."); 00349 00350 s+="\n\n"; 00351 s+=""; 00352 s+="\n\n"; 00353 00354 s+=tr("Q: Is it possible to work with 0 hour?\n\n" 00355 "A: A bit difficult. You have to choose a day for this 0 hour. Then add breaks or not available to " 00356 "prevent other activities in other days at hour 0, then add students set not available to prevent other " 00357 "students set from having hours at this hour 0. Or variants of this.\n\n" 00358 "Mr. Zsolt Udvari used another trick: considered the last hour to be hour 0. But this is not always applicable."); 00359 00360 s+="\n\n"; 00361 s+=""; 00362 s+="\n\n"; 00363 00364 s+=tr("Q: How does FET care about weights. What do they mean?\n\n" 00365 "A: The weights under 100% are subjective, because FET can skip them if necessary.\n\n" 00366 "Volker Dirr tried to express how FET considers under 100% weights, but his words are not completely reflecting the fact:\n\n" 00367 "Here is a comment from Volker Dirr:\n\n" 00368 "weight = 50% means: In average FET retries two times to place an activity without a conflict. If it isn't able to place the " 00369 "activity without a conflict after avarage 2 times it keeps the conflict and tries to place the next activity.\n" 00370 "weight = 75% means: In average FET retries four times to place an activity without a conflict. If it isn't " 00371 "able to place the activity without a conflict after avarage 4 times it keeps the conflict and tries to place the next activity.\n" 00372 "weight = 99% means: In average FET retries 100 times to place an activity without a conflict. " 00373 "If it isn't able to place the activity without a conflict after avarage 100 times it keeps the conflict and tries to place the next activity.\n" 00374 "weight = 99.99% means: In average FET retries 10000 times to place an activity without a conflict." 00375 " If it isn't able to place the activity without a conflict after avarage 10000 times it keeps the conflict and tries to place the next activity.\n\n" 00376 "This is not 100% correct. Activities might get unallocated, and cycle reopened."); 00377 00378 s+="\n\n"; 00379 s+=""; 00380 s+="\n\n"; 00381 00382 s+=tr("Q: Help on constraint activities preferred starting or preferred time slots (a set of activities has a set of preferred starting or time slots)\n\n" 00383 "A: You can specify a set of activities by selecting a teacher (if empty  all teachers), a students set " 00384 "(if empty  all students), a subject (if empty  all subjects) and an activity tag (if empty, all activity tags) and a set of allowed days.\n\n" 00385 "Starting means that an activity may only start at these periods.\n\n" 00386 "Time slots means more restrictive, that activity may only start and end and take place in these intervals (" 00387 "if activity has duration 2 and on Monday is allowed 8:00, 9:00 and 10:00, then activity can only start at 8:00 or 9:00)."); 00388 00389 s+="\n\n"; 00390 s+=""; 00391 s+="\n\n"; 00392 00393 s+=tr("Q: Help on statistics menu\n\n" 00394 "A: The statistics are important to check your data before generating.\n\n" 00395 "When seeing the students statistics, probably the most useful are for subgroups. Each subgroup should have a " 00396 "reasonable amount of hours, and if you are having subgroups with too little hours, like 2 per week, probably " 00397 "you misunderstood FET notation. Each subgroup is independent of the others and should have a number of hours per " 00398 "week close to the average of all subgroups. Do not input empty subgroups with only a few activities."); 00399 00400 s+="\n\n"; 00401 s+=""; 00402 s+="\n\n"; 00403 00404 s+=tr("Q: What if I enter accidentally duplicate constraints?\n\n" 00405 "A: It is not a good practice to allow unnecessary duplicate constraints. For min days between activities and other constraints" 00406 ", the combined weight becomes very high. For instance, if you have 2 constraints with weight 95%, the outcome is " 00407 "a constraint with weight 100%5%*5%=99.75%, very high. You might get an impossible timetable with duplicates, so " 00408 "beware. For constraint activity(ies) preferred (starting time(s) or time slots) the chosen weight is the " 00409 "largest value, so you can use more constraints of this type for same activities."); 00410 00411 s+="\n\n"; 00412 s+=""; 00413 s+="\n\n"; 00414 00415 s+=tr("Q: More information about students' structure\n\n" 00416 "A: The students' structure is very flexible and permits any institution structure.\n\n" 00417 "The main idea is that subgroups are independent. Each subgroup must be the smallest teaching unit or even a single student.\n\n" 00418 "The groups can contain any subgroups. The groups can be overlapping.\n\n" 00419 "The years can contain any groups.\n\n" 00420 "You do not need to follow exactly your institution's hierarchy, you can model your structure to be able to use FET better.\n\n" 00421 "Example: you have a faculty with years (1, 2, ..., 5), sections (1_a, 1_b, ...) and subsections (1_a_x, 1_a_y, ...)." 00422 " Each subsection has optional English or French or German languages (say, a students set who takes English " 00423 "is ENG, and who does not take English is !ENG). Then the correct structure is:\n" 00424 "\n" 00425 "subgroups\n\n" 00426 "1_a_x_ENG_FRE_GER,\n" 00427 "1_a_x_!ENG_FRE_GER,\n" 00428 "1_a_x_ENG_!FRE_GER,\n" 00429 "1_a_x_!ENG_!FRE_GER,\n" 00430 "1_a_x_ENG_FRE_!GER,\n" 00431 "1_a_x_!ENG_FRE_!GER,\n" 00432 "1_a_x_ENG_!FRE_!GER,\n" 00433 "1_a_x_!ENG_!FRE_!GER,\n" 00434 "\n" 00435 "1_a_y_ENG_FRE_GER,\n" 00436 "...same for 1_a_y (8 subgroups)\n\n" 00437 "(you can consider not adding empty subgroups, for instance if every student has one single language, then you can retain only 3 subgroups out of 8)\n\n" 00438 "groups:\n\n" 00439 "1_a\n" 00440 "contains subgroups:\n\n" 00441 " 1_a_x_ENG_FRE_GER,\n" 00442 " t1_a_x_!ENG_FRE_GER,\n" 00443 " 1_a_x_ENG_!FRE_GER,\n" 00444 " 1_a_x_!ENG_!FRE_GER,\n" 00445 " 1_a_x_ENG_FRE_!GER,\n" 00446 " 1_a_x_!ENG_FRE_!GER,\n" 00447 " 1_a_x_ENG_!FRE_!GER,\n" 00448 " 1_a_x_!ENG_!FRE_!GER,\n" 00449 " 1_a_y_ENG_FRE_GER,\n" 00450 "...same for 1_a_y (8 subgroups)\n\n" 00451 "1_a_x\n\n" 00452 "contains subgroups:\n\n" 00453 " 1_a_x_ENG_FRE_GER,\n" 00454 " 1_a_x_!ENG_FRE_GER,\n" 00455 " 1_a_x_ENG_!FRE_GER,\n" 00456 " 1_a_x_!ENG_!FRE_GER,\n" 00457 " 1_a_x_ENG_FRE_!GER,\n" 00458 " 1_a_x_!ENG_FRE_!GER,\n" 00459 " 1_a_x_ENG_!FRE_!GER,\n" 00460 " 1_a_x_!ENG_!FRE_!GER,\n\n" 00461 "1_a_y\n\n" 00462 "contains subgroups:\n\n" 00463 " 1_a_y_ENG_FRE_GER,\n" 00464 "... (8 subgroups)\n\n" 00465 "1_a_x_ENG\n\n" 00466 "contains subgroups:\n\n" 00467 " 1_a_x_ENG_FRE_GER,\n" 00468 " 1_a_x_ENG_!FRE_GER,\n" 00469 " 1_a_x_ENG_FRE_!GER,\n" 00470 " 1_a_x_ENG_!FRE_!GER\n\n" 00471 "years:\n\n" 00472 "1\n\n" 00473 "contains groups 1_a, 1_b\n\n" 00474 "You will have the possibility to add any activity, for a year or group\n\n" 00475 "Currently, the interface for students is difficult to use. I am thinking of that. Maybe it is more simple for you if you try to work on the xml .fet file."); 00476 00477 s+="\n\n"; 00478 s+=""; 00479 s+="\n\n"; 00480 00481 s+=tr("Q127March2008", "Mnemonic name for a particular question in the FAQ"); 00482 s+="\n\n"; 00483 s+=tr("Q: Example: I have 7 hours of Maths per 5 days week (7 is larger than 5). How to add correctly this split activity?\n\n" 00484 "Complete Question: I have a large container activity split into more activities than the number of days per week. " 00485 "How to add it and constraint min days between activities?\n\n" 00486 "A: If you add directly a container activity split into more than the number of days per week and also add a constraint " 00487 "min days between activities, it would be a very bad practice from the way the algorithm of generation works (it slows down the " 00488 "generation and makes it harder to find a solution).\n\n" 00489 "The best way to add the activities would be:\n\n" 00490 "1. If you add 'force consecutive if same day', then couple extra activities in pairs to obtain a number of " 00491 "activities equal to the number of days per week. Example: 7 activities with duration 1 in a 5 days week, then " 00492 "transform into 5 activities with durations: 2,2,1,1,1 and add a single container activity with these 5 " 00493 "components (possibly raising the weight of added constraint min days between activities up to 100%)\n\n" 00494 "2. If you don't add 'force consecutive if same day', then add a larger activity splitted into a number of " 00495 "activities equal with the number of days per week and the remaining components into other larger splitted activity. For " 00496 "example, suppose you need to add 7 activities with duration 1 in a 5 days week. Add 2 larger container activities, " 00497 "first one splitted into 5 activities with duration 1 and second one splitted into 2 activities with duration 1 (" 00498 "possibly raising the weight of added constraints min days between activities for each of the 2 containers up to 100%)"); 00499 00500 s+="\n\n"; 00501 s+=""; 00502 s+="\n\n"; 00503 00504 s+=tr("Q16June2008", "Mnemonic name for a particular question in the FAQ"); 00505 s+="\n\n"; 00506 s+=tr("Q: What I need is a way to make the following constraint:\n\n" 00507 "If Activity1 comes first, then Activity2 can be consecutive. " 00508 "But, if Activity2 comes first, then Activity1 must have at least 1 period in between.\n\n" 00509 "For example, if the algorithm places Dance in 1st hour, then Wrestling can be placed in 2nd hour, but if Wrestling " 00510 "is placed in 1st hour, then Dance must be at least in 3rd hour, if not farther away.\n\n" 00511 "A simpler, but less useful solution could be a constraint that says:\n\n" 00512 "Activity1 and Activity2 will not be consecutive.\n\n" 00513 "A: I have a very good solution for you, but it is a bit complicated to add.\n\n" 00514 "Suppose you have activities A1 and A2. Add dummy A3, with duration 1, no teachers and no students. Add constraint " 00515 "two activities consecutive, A2 and A3 (A2 followed by A3). Add constraint activities not overlapping, A1 and A3.\n\n" 00516 "There is only a small problem: A2 cannot be put in the last period. To correct that: increase the number of " 00517 "hours with 1 and constraint all the real activities (without A3) to take place in the first periods. " 00518 "You can do that by adding a subject tag to A1 and A2 named Early and a subject tag to A3 named Any, and constraint " 00519 "activities preferred time slots for subject tag Early to be in the first n1 slots of each day."); 00520 00521 s+="\n\n"; 00522 s+=""; 00523 s+="\n\n"; 00524 00525 s+=tr("Q: What is the difference between preferred starting times and preferred time slots?\n\n" 00526 "A: Time slots is more restrictive, means all hours of an activity must be in the allowed intervals.\n\n" 00527 "Example: Preferred times Monday 8,9 and 10. If activity A has duration 2, then starting means that activity A " 00528 "can start at 8, 9 or 10 on Monday, while overall means that activity A can start on Monday at 8 or 9 (10 is not " 00529 "allowed, because the last hour of activity is not allowed there)."); 00530 00531 s+="\n\n"; 00532 s+=""; 00533 s+="\n\n"; 00534 00535 s+=tr("Q: What means constraint min gaps (hours) between a set of activities?\n\n" 00536 "A: I had many users wanting to put a gap between activities of same teachers or between activities with same teacher and " 00537 "subject, if they are on the same day. This constraint does that. If you want for instance to make teacher John to have " 00538 "at least one gap between all his activities, select filter 'John' and add all his activities to a " 00539 "constraint of this type. If you want to make teacher John to have at least one gap between all " 00540 "his Math activities, select filter 'John' and 'Math' and add all these activities to a constraint of this type.\n\n" 00541 "Please take care that the selected activities are not forced consecutive by constraint two activities consecutive or " 00542 "by constraint min days between activities which have consecutive if same day selected."); 00543 00544 s+="\n\n"; 00545 s+=""; 00546 s+="\n\n"; 00547 00548 s+=tr("Q: What type of files uses FET?\n\n" 00549 "A: FET uses text files, xml or html or txt or csv (comma separated values  for import/export). The used encoding is UTF8."); 00550 00551 s+="\n\n"; 00552 s+=""; 00553 s+="\n\n"; 00554 00555 s+=tr("Q: Help on constraint subactivities preferred starting or preferred time slots (a set of subactivities has a set of preferred starting or time slots)\n\n" 00556 "A: You select the component number of certain activities (say, if you have an activity split into 5 activities per week, you " 00557 "have components 1, 2, 3, 4 or 5). Only the selected number of this split activity (the corresponding component activity) will be constrained.\n\n" 00558 "You will also specify the set of subactivities by selecting a teacher (if empty  all teachers), a students set (" 00559 "if empty  all students), a subject (if empty  all subjects) and an activity tag (if empty, all activity tags) and a set of allowed days.\n\n" 00560 "Starting times means that an activity may only start at these periods.\n\n" 00561 "Time slots means more restrictive, that activity may only start and end and take place in these intervals (if activity has duration 2 " 00562 "and on Monday is allowed 8:00, 9:00 and 10:00, then activity can only start at 8:00 or 9:00).\n\n" 00563 "This is useful if you need for instance, if Maths lessons are 45 per week, to constrain that the first " 00564 "component and the second component must be early. You will add 2 constraints for that, with component number " 00565 "1 and 2, both with subject Maths. Or, if you want for activities split into 4 that 2 lessons are early and for " 00566 "activities split into 5 that 3 activities are early, add constraint Maths with split number 3, 4 and 5 (nice trick).\n\n" 00567 "Another thing: if you have 1 or 2 lessons per week for a subject, say biology, and want to constrain one " 00568 "of the components if there are 2 per week, and none if there is only 1, you can add such a constraint for component number=2."); 00569 00570 s+="\n\n"; 00571 s+=""; 00572 s+="\n\n"; 00573 00574 s+=tr("Q: Help on constraints teacher(s) or students (set) hourly interval max days per week\n\n" 00575 "A: This is a constraint suggested by users, to allow you to specify an hourly interval for students or teachers, and " 00576 "to say that in this interval they must work at most max days per week. This is useful if for instance you want teachers " 00577 "not to have more than 2 days per week activities in the last 2 hours of the day."); 00578 00579 s+="\n\n"; 00580 s+=""; 00581 s+="\n\n"; 00582 00583 s+=tr("Q: Help on constraint activities end students day (or activity ends students day).\n\n" 00584 "A: If you have activities which you want to put in the last slots of a day (like say the meetings with " 00585 "the class master), please use the new constraint a set of activities end students day (or singular activity ends " 00586 "students day). This constraint can have weight only 100%, because of the way the algorithm works."); 00587 00588 s+="\n\n"; 00589 s+=""; 00590 s+="\n\n"; 00591 00592 s+=tr("Q: At our school there are a lot of teachers which work only a few hours a week. Of course it " 00593 "is really nasty to drive for one our to the school. So we set the constraint, that every teacher " 00594 "should work at least 2 hours a day. Unfortunately we have this year a teacher which only works 1h a " 00595 "week. As a result of this FET doesn't start to create a timetable. Any suggestions how " 00596 "to fix the problem without defining a constraint for every singular teacher?\n\n" 00597 "A: I have a nice trick: add a dummy activity, 1 hour duration, with only this teacher (no students sets, any subject), additional to the real activity.\n\n" 00598 "This trick just passed through my mind as I was trying to write you that you have to do it the hard way (add constraints for each teacher)"); 00599 00600 s+="\n\n"; 00601 s+=""; 00602 s+="\n\n"; 00603 00604 s+=tr("Q: What about the automatic search for updates? Should I enable it?\n\n" 00605 "A: It is recommended to enable automatic search for updates. I didn't set it as default because people might be annoyed if I " 00606 "release too fast new versions. But if you can cope with that, it is recommended to always have the latest version and enable " 00607 "searching for updates at startup."); 00608 00609 s+="\n\n"; 00610 s+=""; 00611 s+="\n\n"; 00612 00613 s+=tr("Q: I have a double duration activity. Is it possible that it is spread over the break period, like:\n\n" 00614 "Activity Math, duration 2, id say 100\n\n" 00615 "Hour 10:00 Math (first hour of act. 100)\n" 00616 "Hour 11:00 Break\n" 00617 "Hour 12:00 Math (second hour of act. 100)\n\n" 00618 "A: No, the activity must respect the break, so it is before or after the break with all the hours of it."); 00619 00620 s+="\n\n"; 00621 s+=""; 00622 s+="\n\n"; 00623 00624 s+=tr("Q and A From Anestis Vovos: A very difficult to diagnose unresolved case\n\n" 00625 "Since I started working on our school's timetable I had a problem with a specific day and teacher. No matter what I tried in FET I couldn't " 00626 "reduce the inschool hours for this specific teacher and day down from 7 (7 hours is the full school day, so he had 6 teaching hours and 1 gap). " 00627 "It was too much (other teachers have 5 teaching hours max) but he didn't mind so we kept FET solution." 00628 "Just a month ago this teacher had some major operation and couldn't teach so much hours in one day anymore. So I started again to experiment " 00629 "with the timetable and what was wrong. After a LOT of test and failures the idea hit me just as I was waking up to go to school; I hadn't enough " 00630 "teachers for early and late hours! I checked and it was true! Let me explain. We have 6 classes in total and every class has 7 hours per day. " 00631 "This means that I need 6 teachers for the first hour and 6 teachers for the 7th hour, a total of 12 teachers. But I only had 11 teachers to " 00632 "cover first and last hour! I had 16 teachers in total for that day but their restrictions prevented 6 of them to teach first and last hours " 00633 "(and it wasn't just cases of teacher not available but usually restrictions on teaching on specific hours and max gaps, so it was very " 00634 "difficult to look through it). So this specific teacher (because of the restrictions on the other teachers and the loose restrictions on " 00635 "himself) had to teach 6 hours with 1 gap so that he could cover a first and a last hour!\n\n" 00636 "...Not that I will fall again for it but based on the difficulty to diagnose on my part it will help others that might face the same problem."); 00637 00638 s+="\n\n"; 00639 s+=""; 00640 s+="\n\n"; 00641 00642 s+=tr("Q: I want to define hard subjects (Math, Physics and Chemistry) and I want students not to have more than 1 (or another variant 2) difficult subjects in a row.\n\n" 00643 "A: Define activity tag 'Difficult' and add it to all MA, PH and CH lessons. Then add constraint maximum 1 (or 2) " 00644 "hours continuously for all students and an activity tag 'Difficult'. Please take care if you may have double lessons."); 00645 00646 s+="\n\n"; 00647 s+=""; 00648 s+="\n\n"; 00649 00650 s+=tr("Q: (by Horatiu Halmajan) I met a situation: a teacher asks for maximum 2 working days, but these days " 00651 "should not be consecutive. Is there a way to implement it in .fet?\n\n" 00652 "The only (manual) way I could think of, is to set the teacher as unavailable on Tuesdays and Thursdays, thus " 00653 "leaving him available on Monday, Wednesday and Friday (any two of these are unconsecutive).\n\n" 00654 "Any other ideas...?\n\n" 00655 "A: I have another idea: choose 2 activities of this teacher which clearly cannot be on the same day, " 00656 "and add constraint min days between activities, 2 days, 100%.\n\n" 00657 "Or add a dummy activity for this teacher, split into 2 per week, min days = 2, with 100%. You just need to " 00658 "take care that this teacher has place for these dummy activities (enough slots in the day) and to consider " 00659 "these dummy activities as possible gaps, so if teacher has max gaps 2 then make max gaps for him 0."); 00660 00661 s+="\n\n"; 00662 s+=""; 00663 s+="\n\n"; 00664 00665 00666 s+=tr("Q: (by Horatiu Halmajan) The students must have max 4 gaps per week, maximum 2 per day, continuous gaps. How to solve this?\n\n" 00667 "A: Add for each subgroup a dummy activity (no teachers) split into 4 per week, duration 1, min days between " 00668 "activities 1, weight 0%, select consecutive if same day. FET will never put more than 2 of these dummy activities " 00669 "in a day. Add max gaps for students = 0 per week."); 00670 00671 s+="\n\n"; 00672 s+=""; 00673 s+="\n\n"; 00674 00675 s+=tr("Advice: to treat gaps for students or teachers, if FET constraints are not enough, you can use dummy activities." 00676 " For instance, if a students set can have maximum 3 gaps, add an activity split into 3 per week, with no teachers."); 00677 00678 s+="\n\n"; 00679 s+=""; 00680 s+="\n\n"; 00681 00682 s+=tr("Question 1/16 August 2009: How to add constraint two activities grouped, two activities consecutive and three " 00683 "activities grouped if the activities are constrained not to be in the same day by constraints min days between activities?\n\n" 00684 "If A1 and A2 are constrained not to be in the same day with 95% weight or any other weight, it is a bad practice " 00685 "to add a constraint grouped or consecutive to them. If they are constrained with weight 100% not to be in the " 00686 "same day, the timetable is impossible; if the weight is under 100%, the timetable is more difficult to find than " 00687 "using the correct way.\n\n" 00688 "The correct way would probably be to consider A1 and A2 = a single activity A12', or to modify the related constraint " 00689 "min days between activities. Or maybe you can find other ways."); 00690 00691 s+="\n\n"; 00692 s+=""; 00693 s+="\n\n"; 00694 00695 s+=tr("Question 1/25 September 2009: An observation for constraint teacher(s) or students (set) activity tag max hours daily:\n\n" 00696 "This constraint is implemented correctly and is working good, but it is not perfect, which means that in unusual, extreme cases the " 00697 "time needed to generate a timetable might be longer or much longer than really necessary. You should give FET a hand in these extreme " 00698 "situations.\n\n" 00699 "Notation: ATS=affected teacher or students set, means teachers or students sets affected by (included in) this constraint activity tag max hours daily " 00700 "(the problem does not appear for teachers or students sets which are not affected, which have no constraint activity tag max hours daily for them).\n\n" 00701 "For extreme cases, the timetable generation might be longer or much longer than it should be. These cases refer to " 00702 "situations in which the total duration of the activities with the specified activity tag of the ATS is high compared to the " 00703 "total number of hours of all activities of the ATS, combined with other conditions you have in the data." 00704 " If the ratio of duration of activities with this activity tag of the ATS over the total duration of activities of the ATS" 00705 " is over 0.50  0.75 or a normal (reasonable low) value, and you use constraints to control gaps or early for ATS, and the number" 00706 " of hours per day is higher than the possible hours for the ATS," 00707 " the speed of generation might be slower or much slower than it should be.\n\n" 00708 "In these cases, you are advised to use constraints teacher(s) or students (set) max hours daily for the ATS" 00709 " (without activity tag), or not available constraints for them in slots which are clearly impossible.\n\n" 00710 "For example, if students S have 20 hours of activities with activity tag AT and another 4 hours " 00711 "of activities without activity tag (they have 24 hours in total, the ratio is 20/24" 00712 "=0.80), and you constrain them to 0 gaps per week and 0 beginnings at second hour and also the number " 00713 "of hours per day is large, say 12. Then adding a constraint students activity tag AT max 4 hours per day " 00714 " alone  will not be good enough (the time to generate a timetable might be longer or much longer than necessary)." 00715 " A better solution will need you to add also a constraint students max 5 " 00716 "hours daily (if possible) and/or to make the late slots not available for the students (it is a way to " 00717 "guide FET to the solution), or find other good ways to compensate the situation.\n\n" 00718 "Conclusion: if, for the ATS, the ratio 'tag duration'/'total duration' is over 0.50  0.75 AND you use, for the ATS," 00719 " constraints for gaps or early AND for the ATS the number of available slots per week is much higher than ATS's total working number of hours per week," 00720 " then you may need to address this problem (add constraints ATS max hours daily or ATS not available or find some other way to guide FET).\n\n" 00721 "So, it is a very bad idea to make all activities (of a teacher or students set) have an activity tag and add constraint teacher(s) or students (set)" 00722 " activity tag max hours daily. You should use in this case constraint teacher(s) or students (set) max hours daily.\n\n" 00723 "Probably, in practice this problem will not appear and you need not to worry. But theoretically it exists."); 00724 00725 s+="\n\n"; 00726 s+=""; 00727 s+="\n\n"; 00728 00729 s+=tr("3 hints from an anonymous Polish user, who uses FET for very large data:"); 00730 s+="\n\n"; 00731 s+=tr("The first hint for other users is to start with minimum number of constraints and if FET would generate " 00732 "the plan than thinking about adding the next ones."); 00733 s+="\n\n"; 00734 s+=tr("The second hint is not to change too many constraints in one simulation as it may lead to impossible timetable " 00735 "and than it is difficult to say which particular constraint was too much."); 00736 s+="\n\n"; 00737 s+=tr("For instance even when two consecutive activities are placed at one day " 00738 "(the same group and the same teacher) sometimes there are placed at different rooms what would force them to needless " 00739 "changing room. I guess that FET is focused on fulfilling constrains but not on optimizing timetable. Sometimes " 00740 "simple changing of two activities makes plan better both for students and teachers. I think that manually improving " 00741 "generated plan is faster than creating many many more constraints and repeating simulations. And this is the third hint."); 00742 00743 s+="\n\n"; 00744 s+=""; 00745 s+="\n\n"; 00746 00747 s+=tr("Q: Why the constraints activity tag max hours daily and students max gaps per day are disabled in the FET menu?"); 00748 s+="\n\n"; 00749 s+=tr("A: These 6 constraints (4 for activity tag and 2 for students max gaps per day) are the only ones which are not perfectly optimized" 00750 " in FET. For some combinations of constraints, they may slow down the generation or even make the timetable impossible. That is why" 00751 " they are not enabled by default. You need to activate them from the advanced settings menu. It is recommended to add such constraints" 00752 " at the end of your work, after you added all the other constraints and verified that your timetable is possible."); 00753 s+="\n\n"; 00754 s+=tr("If these constraints are disabled, they have an icon attached in the menu to signify that. If they are enabled, they have another icon attached to them" 00755 ", to signify that they are enabled, but must be used with caution."); 00756 s+="\n\n"; 00757 s+=tr("Use these constraints with caution, not to obtain impossible timetables."); 00758 00759 s+="\n\n"; 00760 s+=""; 00761 s+="\n\n"; 00762 00763 s+=tr("Q: Why don't you implement the not perfect constraints (activity tag max hours daily and students max gaps per day) in a perfect way?"); 00764 s+="\n\n"; 00765 s+=tr("A: Activity tag max hours daily cannot be implemented perfectly, generation would take too much (because of complexity of checks)." 00766 " Students max gaps per day can be implemented perfectly, but it would change the algorithm for students a lot and I am afraid to change" 00767 " something that is working well. Very much testing would be needed, and I have not enough sample files. While changing the algorithm, it would be" 00768 " easy to make critical bugs and some files may not solve anymore."); 00769 00770 s+="\n\n"; 00771 s+=""; 00772 s+="\n\n"; 00773 00774 s+=tr("Q: Help on shortcut buttons in the main form."); 00775 s+="\n\n"; 00776 s+=tr("A: More users asked for shortcut buttons for the most commonly used functions. It is possible to show such buttons, if you select the corresponding option" 00777 " from the Settings>Interface menu (shortcuts are shown, by default)."); 00778 00779 s+="\n\n"; 00780 s+=""; 00781 s+="\n\n"; 00782 00783 s+=tr("This is an advanced question which probably will never appear in practice, you may skip it at first reading."); 00784 s+="\n\n"; 00785 s+=tr("Q: This is a problem that probably will never appear in practice, but it is possible. Say the user generates a timetable successfully, " 00786 "locks a few activities, then tries to generate again, but FET stops at a certain activity and reports impossible timetable.\n\n" 00787 "A: Indeed, this is a potential problem in FET (but probably will never show up in practice). It may happen if you have constraints with weight under 100%, which may be broken " 00788 "when you generate the timetable.\n\n" 00789 "Here is an example to explain this (it is an impractical example, but it is better as it is very simple): you have 4 students sets (Y1, Y2, Y3, Y4). " 00790 "5 activities: A1 (Y1,Y2,Y3,Y4), A2 (Y1), A3 (Y2), A4 (Y3), A5 (Y4). You have a single day per week and 2 hours per day. You add a constraint students " 00791 "max hours daily, max 1 hour, 95% weight percetange.\n" 00792 "1) Start to generate. After a while (maybe a few minutes), FET will be able to find a solution (with the max hours daily broken for all students sets).\n" 00793 "2) Then, you lock A2, A3, A4 and A5 and try to generate again. In some cases FET will report impossible activity A1.\n" 00794 "3) If you lock A1, A2, A3, A4 and A5, FET will be able to find a timetable very fast.\n\n" 00795 "1) Why can FET schedule the timetable the first time? Because in some cases FET will be able to break onebyone all the 4 constraints max hours daily for A2, A3, A4 and A5 " 00796 "(no activity is locked, so it may try more times to place/replace the activities, and it will find a way to put A1, then put the rest of the activities).\n\n" 00797 "2) Why sometimes FET cannot schedule the timetable the second time (with locked A2, A3, A4 and A5)? " 00798 "Because: A2, A3, A4 and A5 are locked and are scheduled firstly. Then FET tries to put A1. But to put A1, it means " 00799 "to break a 95% constraint 4 times, because there are 4 students sets in A1. Weight 95% 4 times in a row is equivalent with a constraint with weight " 00800 "100%(5%^4)=99.99999375%, which is a very strong constraint, which is very hardly broken. " 00801 "FET will retry more times for activity A1, so in some cases it will find a schedule even in these conditions.\n\n" 00802 "3) Why can FET find a timetable the third time (with locked A1, A2, A3, A4 and A5)? Because activities with more students sets are scheduled firstly (in general, locked activities" 00803 " are placed in descending order of the sum of the number of teachers and subgroups) and a locked activity is never rescheduled. " 00804 "So, FET puts A1 first, then A2, A3, A4 and A5. Since it retries more times separately for each activity, it is able to find a timetable easily.\n\n" 00805 "Practical solution to case 2)? Reduce weights of constraints which have weight below 100% or lock (to a corresponding slot) the activity which corresponds to A1 in your data file."); 00806 00807 s+="\n\n"; 00808 s+=""; 00809 s+="\n\n"; 00810 00811 s+=tr("Q: I need constraint students (set) max days per week, similar to existing teacher(s) max days per week constraint."); 00812 s+="\n\n"; 00813 s+=tr("A: Maybe it will be implemented in the future. Until then, please use constraint students (set) interval max days per week, interval = whole day."); 00814 00815 s+="\n\n"; 00816 s+=""; 00817 s+="\n\n"; 00818 00819 s+=tr("Q: I tried to work on a fixed timetable, to move an activity to another time slot. Now I got stuck  FET says: impossible to generate."); 00820 s+="\n\n"; 00821 s+=tr("A: There is this potential problem. Suppose you have max hours daily for students = 4 hours, 99%. You generated successfully (maybe you got some days with more" 00822 " than 4 hours, it does not matter for our discussion)." 00823 " Now, if you have a day with 4 hours and try to move another activity" 00824 " to this day, some students will have 5 hours in this day. If in this day all activities have more students sets, FET may report an impossible timetable. Why?" 00825 " Because if you have an activity with say 4 subgroups, 99% is assumed for each subgroup, resulting in a very strong constraint for this activity." 00826 " (100%(1%^4)). Even if FET retries more times for each activity, it is not enough.\n\n" 00827 " A solution: lower the weight of this constraint from 99% to 90% or less."); 00828 00829 s+="\n\n"; 00830 s+=""; 00831 s+="\n\n"; 00832 00833 s+=tr(" This entry by Regis Bouguin "); 00834 s+="\n\n"; 00835 s+=tr("Q: A trick to deal with fortnightly activities (my institution has a lot of fortnightly activities):"); 00836 s+="\n\n"; 00837 s+=tr("A: I divided hours in two, the first half (8.00 to 8.30, 9.00 to 9.30, ...) represents week A, the second half" 00838 " (8.30 to 9.00, 9.30 to 10.00, ...) represents week B, fortnightly activities have duration 1, weekly" 00839 " activities have duration 2."); 00840 s+="\n\n"; 00841 s+=tr("I created an activity tag 'Start hour'. It should be added to each weekly activity to make sure they start at" 00842 " the same time (same day + same hour) on each week. Otherwise, an activity with duration 2 can start on a second" 00843 " half of hour in the timetable, so this activity is placed on a certain day and at a certain hour on week A," 00844 " and on the same day but at the next hour on week B."); 00845 s+="\n\n"; 00846 s+=tr("Add time constraint: activities with all teachers, all students, all subjects, activity tag = 'Start hour'" 00847 " have a set of preferred starting times: Monday 8.00, Monday 9.00, ..."); 00848 s+="\n\n"; 00849 s+=tr("It works fine and I got good timetables with strong teachers time constraints."); 00850 00851 s+="\n\n"; 00852 s+=""; 00853 s+="\n\n"; 00854 00855 s+=tr("Q: I need to add a split activity with total duration 4, which can be either 2+2 or 2+1+1 (two hours in a day and two hours in another day," 00856 " or two hours in a day, one hour in another day and one hour in another day)."); 00857 s+="\n\n"; 00858 s+=tr("A: Add 3 activities (let us assume that their ids are 1, 2 and 3), with durations respectively 2, 1 and 1. It is preferable to add them as" 00859 " 3 single/independent activities (see note below).\n\n" 00860 "Add two constraints min 1 day between activities with ids 1 and 2 and between activities with ids 1 and 3, 100% weight percentage.\n\n" 00861 "Add another constraint: min 1 day between activities with ids 2 and 3, consecutive if same day = yes, 0% weight percentage."); 00862 s+="\n\n"; 00863 s+=tr("Note: It is advisable to add the 3 activities as single/independent ones (not a larger split activity with 3 components). The reason is that if you want" 00864 " to apply spreading of activities over the week, this operation won't add/remove constraints of type min days between activities for these 3 activities." 00865 " Also, if you add a split activity, you need to take care not to add a default constraint min days between the 3 components."); 00866 s+="\n\n"; 00867 s+=tr("There may be other solutions possible, but this one seems perfect with respect to efficiency."); 00868 00869 s+="\n\n"; 00870 s+=""; 00871 s+="\n\n"; 00872 00873 s+=tr("Q: I would like to specify that a teacher should have activities in certain time slots, no matter which activities."); 00874 s+="\n\n"; 00875 s+=tr("A: Please use constraint activities occupy max time slots from selection (the exact menu entry is 'A set of activities occupies max" 00876 " time slots from selection'. See that constraint's Help button for more details."); 00877 00878 s+="\n\n"; 00879 s+=""; 00880 s+="\n\n"; 00881 00882 s+=tr("Q: How to easily find the activities with unspecified room in the timetable (after the timetable was generated)?"); 00883 s+="\n\n"; 00884 s+=tr("A: A trick is this: open the file representing the activities timetable in XML form (this file can be found in" 00885 " the results directory, with a name like: file_activities.xml) with a text editor, and search for the text <Room></Room>"); 00886 00887 s+="\n\n"; 00888 s+=""; 00889 s+="\n\n"; 00890 00891 s+=tr("Q: The students and/or teachers should have in each day some activities without interruption, then some" 00892 " continuous gaps, then again some activities without interruption." 00893 " This situation can appear in these cases: schools in Morocco and Algeria, which have morning and afternoon shifts," 00894 " and also in some universities in which students would prefer to have at most a single cluster of gaps, no matter how long, in each day." 00895 " How to treat such situations in FET?"); 00896 s+="\n\n"; 00897 s+=tr("A: A nice way to treat such situations would be to consider the number of FET days = 2 * the number of real days. Each real day" 00898 " corresponds to two FET days, one for the morning and one for the afternoon. Then, add constraints max zero gaps, and maybe min two hours" 00899 " daily with allow empty days true. You may need to devise some other tricks, in addition."); 00900 00901 s+="\n\n"; 00902 s+=""; 00903 s+="\n\n"; 00904 00905 s+=tr("Q: How can I add a comment to a (sub)activity or to a constraint?"); 00906 s+="\n\n"; 00907 s+=tr("A: You can add a comment to a (sub)activity by clicking the 'Comments' button in the (sub)activities dialog." 00908 " You can add a comment to a constraint by clicking the 'Comments' button in the all time/space constraints dialogs."); 00909 00910 s+="\n\n"; 00911 s+=""; 00912 s+="\n\n"; 00913 00914 s+=tr("Q: How can I activate/deactivate a constraint?"); 00915 s+="\n\n"; 00916 s+=tr("A: You can activate/deactivate a constraint by clicking the 'Activate'/'Deactivate' buttons in the all time/space" 00917 " constraints dialogs."); 00918 00919 s+="\n\n"; 00920 s+=""; 00921 s+="\n\n"; 00922 00923 s+=tr("Q: How can I sort the constraints?"); 00924 s+="\n\n"; 00925 s+=tr("A: You can sort the constraints in the all time/space constraints dialogs. Sorting is done ascending, according to each" 00926 " constraints' comments. You can add suitable comments to obtain a desired order, like: 'rank #1 ... other comments' and" 00927 " 'rank #2 ... other different comments'."); 00928 00929 s+="\n\n"; 00930 s+=""; 00931 s+="\n\n"; 00932 00933 s+=tr("Q: How can I specify that some activities must be in the same room (at different time slots, of course, because a single room" 00934 " can hold a single activity in a certain time slot)? This is needed for instance to constrain the Physics activities of a certain" 00935 " students set to take place in the same room, be it Lab1 or Lab2"); 00936 s+="\n\n"; 00937 s+=tr("A: You can use the constraint activities occupy max different rooms, with max different rooms = 1."); 00938 00939 plainTextEdit>setPlainText(s); 00940 }