FET Forum

FET Support (English) => General Stuff => Topic started by: infoo_ on January 15, 2023, 09:25:38 PM

Title: Prevent a teacher to teach in a course more than 2 hours per day
Post by: infoo_ on January 15, 2023, 09:25:38 PM
Hello

Sorry for posting questions in a short period of time.

The school where I work told me that A teacher must not teach in same course for more than 2 hours per day. They told me that so that both students and teachers do not become saturated with so many hours in front of class.

So thanks to the constraint "Min days between activities" for subjects that have duration > 2 and index > 1 I achieved a very good timetable.

However, this is not sufficient, because now I have some teachers that teach in 2 subjects in the same course, teaching more than 2 hours in the same day, as you can see here:

Teacher-more-than-2-hours-in-same-course.png

Teacher-more-than-2-hours-in-same-course-2.png

Is there an automatic way to prevent this?

I can add more "Min days between activities". Take the case of course 5B. If tomorrow the Teacher AU with the subjects "Lengua y Literatura" and "Taller de Lectura y Comprensión de Textos" leaves office, and those subjects are taken by 2 different teachers, then the artificially created constraint must be deleted. In other words, it depends on the teacher, when I would like it not to be like that. That's because I probably forgot to remove the constraint and add new ones.

I am also attaching the FET file so you can test. Taken from a previous message that I posted here: https://lalescu.ro/liviu/fet/forum/index.php?topic=5455.msg30000#msg30000

Thanks in advance
Title: Re: Prevent a teacher to teach in a course more than 2 hours per day
Post by: Liviu Lalescu on January 15, 2023, 09:34:32 PM
OK, I understand why you don't want to add more constraints min days between activities.

Then you need to enable the constraint teacher(s) activity tag max hours daily. Add tags "5B" and so on, add the necessary tags to each activity, and more constraints teacher(s) activity tag max hours daily.

Please let me know if you succeed.
Title: Re: Prevent a teacher to teach in a course more than 2 hours per day
Post by: infoo_ on January 15, 2023, 09:37:22 PM
Quote from: Liviu Lalescu on January 15, 2023, 09:34:32 PMThen you need to enable the constraint teacher(s) activity tag max hours daily. Add tags "5B" and so on, add the necessary tags to each activity, and more constraints teacher(s) activity tag max hours daily.

If I do that, then the "Min days between activities" are not necessary, because all of them will be somehow "included" on those new constraints?
Title: Re: Prevent a teacher to teach in a course more than 2 hours per day
Post by: Liviu Lalescu on January 15, 2023, 09:41:13 PM
Min days for the activities might be more important than those on different subjects.

But you can filter min days constraints and deactivate them all (new FET feature), to see the result.
Title: Re: Prevent a teacher to teach in a course more than 2 hours per day
Post by: infoo_ on January 16, 2023, 12:57:36 AM
Hello

Quote from: Liviu Lalescu on January 15, 2023, 09:34:32 PMOK, I understand why you don't want to add more constraints min days between activities.

Then you need to enable the constraint teacher(s) activity tag max hours daily. Add tags "5B" and so on, add the necessary tags to each activity, and more constraints teacher(s) activity tag max hours daily.

Please let me know if you succeed.

I think I am succeeding, many thanks!! It's nice to have FET :)

I am using All teachers because it is less work to do haha

I have created activity tags representing each course 1A to 5C. However, I would like to know if activity tags can be added to several activities at once using a button, because as you know, in my file I have several activities per course, and adding them one by one takes quite a while. I still don't feel confident that I can modify the XML file, so I'm asking if there is some kind of button to make it faster. Forget about this, I've managed to use keyboard to accelerate this process.

I will try first keep the Min days between activities activated, and then try to deactivate them, because I think they are redundant. If I succeed, I will mention it.