SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON

Started by Cyrus Ireri, February 13, 2024, 09:43:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Marinho Medeiros

Yes, I would like that. I had a bit of difficulty visualizing how it would look. I appreciate it in advance.





Liviu Lalescu

OK, I will see your file now. But I need to know which teacher must have how many hours on Wednesday afternoon, and also please tell me which hours represent the afternoon.

Marinho Medeiros

Here it is, I think if you do it for some of them and I understand the construction by looking at all the restrictions, I can finish the rest. Remembering that in this case, this would be the maximum number of classes they can take. If a teacher sees "2 hours", they can take 2 hours, 1 hour, or no hours. Classes start from 13:20 to 17:00. Breaks are already included, from 13:20 onwards there are only 4 class hours.

Laura – 2 hours
Roberta – 1 hour
Albanisa – 1 hour
Prof. Port. – 2 hours
Gilberto – 2 hours
Patricia – 1 hour
Laís – 2 hour
Breno – 2 hours
Matheus Ramalho – 2 hours
Raissa – 2 hours
Carla – 1 hour
Bruno – 1 hour
Radmila – 3 hours
Marinho – 1 hour
Jorge – 0 hour
Arjuna – 0 hour
Paulo – 1 hour
Herbert, Livia, Prof. Quim. And Renally – no hour

Marinho Medeiros


It might be that I have problems generating a schedule due to the other restrictions imposed, but that I can change or adapt later. The key thing is that this restriction I mentioned happens.

Liviu Lalescu

#34
The main problem is that you are wrong to consider Mornings-Afternoon mode. I converted to Official mode.

I did it for all. 0 means not available.

You do not need the new constraint max 4 hours per interval afternoon for all teachers, because there are only 4 available hours in this interval.

Unfortunately, it is impossible, but if I make Paulo Alexandre available in the afternoon and allow 2 hours in the afternoon for Roberta instead of only 1, it becomes possible.

Marinho Medeiros

Alright, I'll look into the other restrictions and see what I can do, but I really appreciate the help already! I understood how the restriction works. Thank you very much!  ;)  :)

Liviu Lalescu

You are welcome!

As a personal plea, please consider that FET is completely free software, depending on benevolent donations, so it would be great if you could recommend one.

Cyrus Ireri

I look forward to a time adding min time slots for all students will have an easy way of putting the constraints. I'm working on an 18, stream school and i have to have the constraint for all subjects in all forms.Doing one after the other is hectic.How i wish the constraints can be imported after one has done all the necessary demands.

Liviu Lalescu

OK, I added this in the TODO. I think you refer to the constraints of type students (set) min gaps between ordered pair of activity tags?

Cyrus Ireri

Under activities,we have min time slots from selection.I do use on individual subject to ensure that teachers don't complain of having more lessons in the afternoon as compared to mornings.As for me,mornings is from first lesson to lunch.If a subject has 3 activities, i make sure 2 will be in mornings.The other one can be anywhere. If its 7,4 will be in the mornings.Now in my case,for the 18 stream school,i need to do that for all subjects in the 72 classes.Quite hectic unless there is an alternative

Liviu Lalescu

Oh, then I think you need to use constraints subactivities preferred starting times.

Cyrus Ireri

Quote from: Liviu Lalescu on February 16, 2024, 04:46:04 PMOK, I added this in the TODO. I think you refer to the constraints of type students (set) min gaps between ordered pair of activity tags?


I use this to separate two maths,kiswahili and English happening on the same day.I also use it to ensure science singles and doubles aren't appearing on the same day

Cyrus Ireri

Quote from: Liviu Lalescu on February 16, 2024, 05:45:04 PMOh, then I think you need to use constraints subactivities preferred starting times.


I can't imagine i missed this constraint all that time.Was going a loooooong way.Have given it a trial and its working perfect.Thanks

Liviu Lalescu

Quote from: Cyrus Ireri on February 16, 2024, 05:50:29 PM
Quote from: Liviu Lalescu on February 16, 2024, 04:46:04 PMOK, I added this in the TODO. I think you refer to the constraints of type students (set) min gaps between ordered pair of activity tags?


I use this to separate two maths,kiswahili and English happening on the same day.I also use it to ensure science singles and doubles aren't appearing on the same day

I did not add this in the TODO anymore, because you were referring to activities occupy min time slots from selection constraints which are difficult/tedious to add.

So, these min gaps between tags constraints are OK, I assume, no need for a TODO item for them? Please note that if you have a constraint min days between activities say on (A1,A2,A3,A4,A5), FET will put maximum 2 on the same day, never 3. And if you want, you can raise the weight of the min days constraints to 100%, and only one activity will be on a single day.

Liviu Lalescu

Quote from: Cyrus Ireri on February 16, 2024, 06:18:21 PM
Quote from: Liviu Lalescu on February 16, 2024, 05:45:04 PMOh, then I think you need to use constraints subactivities preferred starting times.


I can't imagine i missed this constraint all that time.Was going a loooooong way.Have given it a trial and its working perfect.Thanks

I am glad it works, and sorry that you did it hard until now. It is also much faster and better in the generation.