Back to index

fet  5.18.0
helponimperfectconstraints.cpp
Go to the documentation of this file.
00001 /***************************************************************************
00002                           helponimperfectconstraints.cpp  -  description
00003                              -------------------
00004     begin                : 2009
00005     copyright            : (C) 2009 by Lalescu Liviu
00006     email                : Please see http://lalescu.ro/liviu/ for details about contacting Liviu Lalescu (in particular, you can find here the e-mail 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 "helponimperfectconstraints.h"
00019 
00020 #include "longtextmessagebox.h"
00021 
00022 #include <QApplication>
00023 
00024 void HelpOnImperfectConstraints::help(QWidget* parent)
00025 {
00026        QString s=tr("Important information about imperfect constraints:");
00027        
00028        s+="\n\n";
00029        
00030        s+=tr("The imperfect constraints are 6: students (set) max gaps per day and teacher(s) or students (set) activity tag max hours daily.");
00031 
00032        s+="\n\n";
00033        
00034        s+=tr("You are advised to leave the imperfect constraints as a last resort if you really need them. Generate the timetable with all other constraints"
00035         " and only after that you may try them. The imperfect constraints may make your timetable too hard to find or even impossible, in some conditions.");
00036        
00037        s+="\n\n";
00038        
00039        s+=tr("Notation: ATS = affected students set or teacher - the teacher or students specified in an imperfect constraint.");
00040 
00041        s+="\n\n";
00042        
00043        s+=tr("Max gaps per day: it is not fully optimized for use with other constraints for students: min/max hours daily. It is also not tested thoroughly.");
00044        s+=" ";
00045        s+=tr("If your students need 0 maximum total gaps, do not use max gaps per day constraint, better use the safe and tested max gaps per week (with 0 gaps allowed).");
00046        
00047        s+="\n\n";
00048        
00049        s+=tr("Activity tag max hours daily: it is not fully optimized for this situation: if the ATS have max gaps constraints and the number of total available slots per week"
00050         " for the ATS is much larger than the working hours per week and the ATS has many activities with the specified activity tag (more than 0.5-0.75 of total hours)"
00051         ". In such cases, a remedy may be to add constraint ATS max hours daily (without specifying an activity tag).");
00052        
00053        s+="\n\n";
00054        s+=tr("Read FAQ question 1/25 September 2009 for some more details about activity tag max hours daily constraint.");
00055 
00056        LongTextMessageBox::largeInformation(parent, tr("FET information"), s);
00057 }