FET Forum

FET Support (English) => Get Help => Topic started by: Cyrus Ireri on February 13, 2024, 09:43:13 PM

Title: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 13, 2024, 09:43:13 PM
I wish to enquire whether there is a way of ensuring all teachers only have a maximum of 3 out of the 4 sessions in the afternoon and mind you, there is a break after the first two sessions.

I realized using 'a set of activities occupies max time slot from the selection' can be cumbersome to use for all teachers for all days to ensure they have max 3 sessions.

I would really love to hear of any possible solution. Thanks
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 13, 2024, 10:02:19 PM
Hello,

I think you registered on the forum before. It is not recommended to register twice. I can help you to remedy this situation, if so.

I don't understand:
Quote from: Cyrus Ireri on February 13, 2024, 09:43:13 PMmind you, there is a break after the first two sessions.

There are some alternatives:

1) Add a dummy activity for each teacher, split into n_days_per_week, duration 1 each subactivity, preferred hour = afternoon. Take care of the gaps.

2) Use mornings afternoons mode, and teachers max hours per real day (if the morning is full for the teacher). But this is complicated.

3) Consider teacher interval max days per week.

PS: I saw your Facebook posts :) Thank you!
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 13, 2024, 10:11:43 PM
I just found myself signing up again. I can go back to the old log in. About the facebook post, just know fet has been a blessing to me.

On my issue, how do i use option 3? I only use it to give all teachers free afternoon with ease. Guide me please
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 13, 2024, 10:14:44 PM
Thats what am working on
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 13, 2024, 10:21:06 PM
Quote from: Cyrus Ireri on February 13, 2024, 10:11:43 PMI just found myself signing up again. I can go back to the old log in. About the facebook post, just know fet has been a blessing to me.

OK, please use the account that you prefer. I am not sure, it is too late now to remove one of your accounts, because you already posted. We'll keep them both, but you post from your preferred one.

Thank you for your kind words! As a personal plea, please consider that FET is completely free software, depending completely on kind donations, so you might recommend this.

QuoteOn my issue, how do i use option 3? I only use it to give all teachers free afternoon with ease. Guide me please

Hmm... I think I was wrong. I thought you might add 4 constraints, one for each hour of the afternoon - but this won't work.

Could you explain more precisely your need, and maybe send your file and an example timetable? From what I understood, you have a morning interval and an afternoon interval (with 4 hours), and you need max 3 occupied?

It is 00:19, I need to go to sleep now. I might come back later tonight - if not, tomorrow morning.
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 13, 2024, 10:25:20 PM
OK, I saw your file and understood the break in the afternoon stuff.

Please allow me to sleep and I'll think of solutions.
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 13, 2024, 10:32:28 PM
Will really appreciate.Thanks
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 14, 2024, 09:35:17 AM
I think I will try to add a new constraint, teacher(s)/students (set) max hours daily in hourly interval. I'll begin work now.

Very good suggestion! Thank you! It is suggested by many more other users, I think, for instance as a variable break between 5 and 7. But I did not see the solution until now.
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 14, 2024, 02:35:34 PM
That new constraint will just be amazing.Teaching 4 lessons even with a break in between can be cumbersome at times.Here in Kenya,there are schools that do have 10 sessions daily,every 2 sessions separated by a break.If a teacher can teach max 3 sessions out of every 4 sessions,fet would end up creating a conducive environment for teachers
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 14, 2024, 02:37:47 PM
It is nearly done, I only have a bit of interface more work. Stay tuned! :) I hope it will work.

It will take some more hours from me.
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 14, 2024, 02:44:08 PM
I will be waiting.I believe it will work.You got what it takes to make things happen.I have hopes in your skills and knowledge.
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 14, 2024, 04:27:59 PM
It works on your file. I just tried it :)

I need a bit more time, maybe a couple of hours, and I'll put a test version for you.
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 14, 2024, 04:44:54 PM
Can't wait to have it.It will solve another challenge i have identified
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 14, 2024, 05:00:59 PM
Will use the constraint in dealing with two groups taking lunch different times and when one is on for lunch,the other is having a session.I realized without constraint that will effect on every teacher,its possible for teachers miss a chance to take lunch since at anytime when lunch is on,the classes are on
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 14, 2024, 06:06:29 PM
I added. Thank you for the collaboration:

https://lalescu.ro/liviu/fet/download/test/

Also, see the Snapshots topic: https://lalescu.ro/liviu/fet/forum/index.php?topic=5840.msg32281;topicseen#msg32281

Please let me know as soon as possible if everything is OK. Please test.
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 14, 2024, 08:22:22 PM
Quote from: Liviu Lalescu on February 14, 2024, 06:06:29 PMI added. Thank you for the collaboration:

https://lalescu.ro/liviu/fet/download/test/

Also, see the Snapshots topic: https://lalescu.ro/liviu/fet/forum/index.php?topic=5840.msg32281;topicseen#msg32281

Please let me know as soon as possible if everything is OK. Please test.


Most welcomed.
The constraint is working perfectly. Timetables generated after adding it are the best i have ever seen.
Thanks so much for the effort to assist
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 14, 2024, 08:25:08 PM
:)
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 14, 2024, 08:29:28 PM
The constraint worked perfectly. The generated timetables for teachers are the best i have ever seen or worked on.Thanks so much for the support.This is just a mile stone in making fet outstanding
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 14, 2024, 08:34:12 PM
Great! :)

I am ready to release, the only thing remaining is the new fields translations. I am waiting for an answer from my collaborators who translated completely until now (Arabic, Greek, French, and Brazilian Portuguese) (Romanian is done). I hope to release in 1-2 days, but it might take more.
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 15, 2024, 03:08:00 AM
Thats great.As for me,lemmie enjoy what you shared.Its just amazing
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 15, 2024, 04:02:18 AM
I added a new snapshot, in the same usual location, with the initialization of the adding of the constraints a bit improved, and you can now add the interval (h, h+1) (which was forbidden previously, you needed to add at least (h, h+2)).

Please test a bit: add a new constraint in your initial file and maybe generate a bit.
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 15, 2024, 07:31:55 AM
What might be the issue?
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 15, 2024, 07:35:11 AM
Hmm... this is not good!

Please send me your .fet file and, if you have, a starting random seed which produces such a crash. I will investigate in 1-2 hours, now I need to get out for a walk.
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 15, 2024, 10:10:41 AM
 I realized its as a results of conflict of constraints i.e the one you added and teachers max hours continuosly.I needed to select time range well so that they constraints don't crush
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 15, 2024, 10:23:52 AM
No. It is a bug of mine, and I thank you very much for reporting it! I fixed it and released a new snapshot, in the same usual location. Please use this from now on.

I hope to release tomorrow the final version.
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 15, 2024, 11:42:10 AM
Thats great
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Marinho Medeiros on February 16, 2024, 11:15:11 AM
Hello, how are you? First of all, I'd like to say that I really like the program and it helps me a lot! This condition that was added was exactly what I needed, but I would like to know if it's also possible to limit the day of the week. For example: Limiting the maximum hours on a Wednesday afternoon. Looking forward to your reply.
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 16, 2024, 11:21:42 AM
Hello,

I am fine, thanks! Thank you for the appreciation!

You will need to add for each teacher/students set a constraint activities occupy max time slots from selection: all the activities of that teacher/students set, select with X (red) Wednesday afternoon, max occupied = how many you allow.

I consider that a new more specialized constraint is not needed, but if you really want I can add your suggestion in the TODO.
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Marinho Medeiros on February 16, 2024, 11:39:31 AM
I think I will need it. The idea of what I need to do will be as follows, in case I haven't been clear: all teachers can take a maximum of 4 time slots every afternoon. But on a specific afternoon, which would be Wednesday, they have a limit on the number of slots they can teach. Teacher A can only teach in 2 time slots, teacher B can only teach in 1 time slot, etc. And I want to exactly limit the maximum number of time slots each teacher can take on Wednesday afternoon. Did I manage to be clearer?
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 16, 2024, 11:45:03 AM
Exactly what I said:

Add one general constraint: teachers max hours in interval.

Then add for each teacher a constraint activities occupy max time slots from selection. The activities = all activities of that teacher, selected slots = Wednesday afternoon (selected with X or red), and max allowed =  2 for A, 1 for B, etc.

If you want, you can send your file so I can show you and test.
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Marinho Medeiros on February 16, 2024, 11:58:39 AM
Yes, I would like that. I had a bit of difficulty visualizing how it would look. I appreciate it in advance.




Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 16, 2024, 12:03:51 PM
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.
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Marinho Medeiros on February 16, 2024, 12:15:45 PM
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
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Marinho Medeiros on February 16, 2024, 12:29:05 PM

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.
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 16, 2024, 12:34:12 PM
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.
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Marinho Medeiros on February 16, 2024, 12:58:03 PM
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!  ;)  :)
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 16, 2024, 01:25:09 PM
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.
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 16, 2024, 04:29:08 PM
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.
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 16, 2024, 04:46:04 PM
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?
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 16, 2024, 05:39:18 PM
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
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 16, 2024, 05:45:04 PM
Oh, then I think you need to use constraints subactivities preferred starting times.
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: 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
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: 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
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 16, 2024, 08:32:07 PM
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.
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 16, 2024, 08:33:05 PM
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.
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 16, 2024, 08:33:58 PM
I just released the new official version, FET-6.17.0. Thank you for the collaboration!
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 16, 2024, 08:46:01 PM
Its part of learning
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 17, 2024, 05:41:29 AM
Quote from: Liviu Lalescu on February 16, 2024, 08:33:58 PMI just released the new official version, FET-6.17.0. Thank you for the collaboration!

Congratulations👏👏👏👏👏👏
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 17, 2024, 05:59:27 AM
Quote from: Liviu Lalescu on February 16, 2024, 08:33:58 PMI just released the new official version, FET-6.17.0. Thank you for the collaboration!

Thanks for acknowledging that i did suggest even if it was done in the past.I'm humbled and feel appreciated.
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 17, 2024, 08:22:23 AM
:)
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 17, 2024, 01:59:03 PM
I don't know where i'm going wrong with the constraint "A set of sub activities has a set of preferred starting times". Allow me to share a sample file and image on the sub activities that i need to be in the mornings (8:00-1:20).I will appreciate your help.
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 17, 2024, 02:33:57 PM
About the new constraint, i have some concerns. There is an occurence when the constraing doesn't adhere fully more so when a double session is involved. Attached are samples
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 17, 2024, 02:35:34 PM
I think you need like in the attached file. I did it for MATHS. I used the preferred time slots.

PS: For a new subject, please start a new topic.
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 17, 2024, 02:41:11 PM
Quote from: Cyrus Ireri on February 17, 2024, 02:33:57 PMAbout the new constraint, i have some concerns. There is an occurence when the constraing doesn't adhere fully more so when a double session is involved. Attached are samples

You inputted the constraint wrong. Interval end hour should be "12:40-1:20 {SNR LUNCH}".

PS: Your input file is impossible, does not start generating with some error messages.
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 17, 2024, 04:08:57 PM
Is there likelihood of the new constraint to treat activity with duration 2 as if its just an hour?I'm asking since i have realized that there are 4 activities following one another once in a while and in all,there is an activity with duration and 2 split activities.
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 17, 2024, 04:12:42 PM
Quote from: Cyrus Ireri on February 17, 2024, 04:08:57 PMIs there likelihood of the new constraint to treat activity with duration 2 as if its just an hour?I'm asking since i have realized that there are 4 activities following one another once in a while and in all,there is an activity with duration and 2 split activities.

No, it isn't. I wrote in my answer above your mistake. You inputted a 3 working hours interval, not 4 working hours interval. Please increase with 1 the interval end hour.
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 17, 2024, 05:09:02 PM
Quote from: Liviu Lalescu on February 17, 2024, 04:12:42 PM
Quote from: Cyrus Ireri on February 17, 2024, 04:08:57 PMIs there likelihood of the new constraint to treat activity with duration 2 as if its just an hour?I'm asking since i have realized that there are 4 activities following one another once in a while and in all,there is an activity with duration and 2 split activities.

No, it isn't. I wrote in my answer above your mistake. You inputted a 3 working hours interval, not 4 working hours interval. Please increase with 1 the interval end hour.

I get you now.I will add a break before the first session so that i can pick it and break so that in between will be the 4 sessions i need the constrain to operate in.
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 17, 2024, 05:24:00 PM
No, no need to modify your data, other than just to increase with 1 the interval end hour of your constraint. The considered interval is [a, b), like in mathematics, closed in the left side and opened in the right side - if you need this explained please let me know.
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 17, 2024, 06:29:45 PM
Quote from: Liviu Lalescu on February 17, 2024, 05:24:00 PMNo, no need to modify your data, other than just to increase with 1 the interval end hour of your constraint. The considered interval is [a, b), like in mathematics, closed in the left side and opened in the right side - if you need this explained please let me know.

Kindly explain farther
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 17, 2024, 06:32:39 PM
If you have 6 hours per day: a, b, c, d, e, f, and you want maximum 3 hours in b, c, d, e, then you need to add a constraint where the interval is [b, f). Clear now?
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 17, 2024, 07:02:20 PM
I get that.If i need max 3 hours between a & d having break in between,how do i put it?
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 17, 2024, 07:18:15 PM
So, at least one of b and c is free? Max 1 hour in [b, d).
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 17, 2024, 07:43:43 PM
Quote from: Liviu Lalescu on February 17, 2024, 07:18:15 PMSo, at least one of b and c is free? Max 1 hour in [b, d).

Teachers to have max 3 between ab +cd
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 17, 2024, 07:50:14 PM
Quote from: Cyrus Ireri on February 17, 2024, 07:43:43 PMTeachers to have max 3 between ab +cd

Sorry, I don't understand. I explained to you the constraint is [begin, end).

Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 18, 2024, 09:04:56 AM
Quote from: Cyrus Ireri on February 17, 2024, 07:02:20 PMI get that.If i need max 3 hours between a & d having break in between,how do i put it?

Maybe max 3 between [a, e) (meaning the interval start hour is a and interval end hour is e).

Did you solve your problem?
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 18, 2024, 07:54:03 PM
Quote from: Liviu Lalescu on February 18, 2024, 09:04:56 AM
Quote from: Cyrus Ireri on February 17, 2024, 07:02:20 PMI get that.If i need max 3 hours between a & d having break in between,how do i put it?

Maybe max 3 between [a, e) (meaning the interval start hour is a and interval end hour is e).

Did you solve your problem?

It worked.Thanks
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 18, 2024, 07:55:53 PM
Great! You are welcome!
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 18, 2024, 08:04:17 PM
Quote from: Liviu Lalescu on February 18, 2024, 07:55:53 PMGreat! You are welcome!

By the way,the constrain is amazing while dealing with schools that have 2 groups having lunch different times but consecutive and you want to ensure teachers don't miss lunch.Without it,its possible for a teacher to be in one teaching while one group is having lunch and have another one when the other is out of lunch meaning students are having their lunch as set but for teachers they don't have the time
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 18, 2024, 08:07:00 PM
Indeed :)
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 22, 2024, 03:14:11 PM
Quote from: Cyrus Ireri on February 17, 2024, 01:59:03 PMI don't know where i'm going wrong with the constraint "A set of sub activities has a set of preferred starting times". Allow me to share a sample file and image on the sub activities that i need to be in the mornings (8:00-1:20).I will appreciate your help.

I wish to ask,while using this constraint for a subject with 5 sub activities and you wish 3 sessions to be in the mornings, how do you put it?Kindly take a snapshot on the area of adding the constraint.Thanks
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 22, 2024, 06:13:21 PM
For the first component it looks like this screenshot.

Please consider that FET is completely free software, depending completely on benevolent donations, so maybe you could consider this.
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 22, 2024, 07:42:45 PM
Quote from: Liviu Lalescu on February 22, 2024, 06:13:21 PMFor the first component it looks like this screenshot.

Please consider that FET is completely free software, depending completely on benevolent donations, so maybe you could consider this.

If i may ask,out of the 5,how do you indicate you want 3 to be in the morning?
Morning-between 8:00-200
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 22, 2024, 08:03:22 PM
Then the slots with X (red) should be only the last 3 or 4 of each day, and add 3 constraints, with say component number (split index) 1, 2, and 3, or 3, 4, and 5.
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 23, 2024, 09:19:09 AM
Quote from: Liviu Lalescu on February 22, 2024, 08:03:22 PMThen the slots with X (red) should be only the last 3 or 4 of each day, and add 3 constraints, with say component number (split index) 1, 2, and 3, or 3, 4, and 5.

Thanks alot.I now got it right.Long live fet
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 23, 2024, 11:48:41 AM
You are welcome! :)
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 23, 2024, 03:42:14 PM
A quick one,how do i go about the same constraint but now dealing with subject with 2 single and double sessions where by out of the 4,i need 2 sessions to be in the mornings.I want the system to decide on its own whether its the two sub activities or double to be in the mornings.This is common in sciences
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 23, 2024, 04:23:42 PM
So, 1+1+2, and 2 in the morning? I'm sorry, but it's either you choose yourself, or use activities occupy min time slots from selection.
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 23, 2024, 05:08:55 PM
Quote from: Liviu Lalescu on February 23, 2024, 04:23:42 PMSo, 1+1+2, and 2 in the morning? I'm sorry, but it's either you choose yourself, or use activities occupy min time slots from selection.

I go with the latter one to give fet freedom to slot as it wishes
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 23, 2024, 05:15:31 PM
Do you have many constraints occupy min to add?
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 23, 2024, 05:26:33 PM
Quote from: Liviu Lalescu on February 23, 2024, 05:15:31 PMDo you have many constraints occupy min to add?

Many indeed since i'm working on twenty stream taking three sciences.I will add around 240 cosntraints🤯🤯🤯
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 23, 2024, 05:34:54 PM
Stream = students set?

Why not 20 x 3 = 60 constraints, only?
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 23, 2024, 05:45:28 PM
Quote from: Liviu Lalescu on February 23, 2024, 05:34:54 PMStream = students set?

Why not 20 x 3 = 60 constraints, only?

20 stream means form 1-4,we have 20 per stream meaning total is 80 and then i have 3 sciencea so 80*3=240
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 23, 2024, 05:53:50 PM
Hmm... I see :(
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 23, 2024, 05:56:36 PM
How i wish duration would assist in the constraint with timeslot such that if i say 2 duration,it will choose what fits either double lesson or the two singles.
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Liviu Lalescu on February 23, 2024, 06:10:45 PM
If you have 1+1+1+1+1 and use 3 constraints subactivities preferred time slots, it is much better than using activities occupy min time slots from selection, in terms of generation speed.

However, for the above case (1+1+2 and you want two hours in the morning), even if we developed a new constraint, I think it would be the same as speed of generation as activities occupy min time slots from selection.

So, the only advantage of adding a new constraint would be user friendliness.

Hmm... I am so sorry that you need to add 240 (!) constraints.
Title: Re: SETTING MAX SESSIONS FOR TEACHERS IN THE AFTERNOON
Post by: Cyrus Ireri on February 23, 2024, 06:55:37 PM
Not a big deal now that i managed to handle the others with ease.I will definitely add one after the other