FET Forum

FET Support (English) => Get Help => Topic started by: pnlshd on November 27, 2024, 05:31:53 AM

Title: Min gaps between two sets of activities?
Post by: pnlshd on November 27, 2024, 05:31:53 AM
Hello,

In an exam timetable, each subject has several exam sessions of varying counts between subjects. They are usually consecutive. There can be another subject's exam in the same room after the first one given there are hours left.

I want to have at least one empty gap between the last activity of the first subject and the first one of the second one in the same room so as to make room for teachers to be able to get out and let others in etc, if it has to put the second subject exam in the same room.

I've looked into teacher min gaps between room changes but this is not quite what I want.

I've also looked into min gaps between a set of activities but it works on the activities entered pairwise and I  don't know which activities will end up consecutive. (Maybe I can do all the possibilities between the pairs of every other subject? I think it will have an exploding number of constraints this way)

Min gaps bw ordered pair of tags is specific to teachers and students, not rooms (that can have different teachers and students)

I am looking for something like room min gaps between two sets of activities, or room min gaps between a set of activity tags (and I can then assign a different tag to each subject's activities so that no two subjects touch)

Maybe min gaps between activity tag switches?

Any ideas or workarounds? I can automate the creation of a workaround if it involves many constraints until a new one is introduced, if any.

Thank you!

Edit: teachers have max 0 room changes to stay in their room all day.
Title: Re: Min gaps between two sets of activities?
Post by: Liviu Lalescu on November 27, 2024, 07:49:51 AM
Hello,

I think you suggested the way: min gaps between activities, with each possible pair. A lot of constraints to add, which you said you can do.

Anyway, I will add your suggestion in the TODO.
Title: Re: Min gaps between two sets of activities?
Post by: pnlshd on November 27, 2024, 08:01:41 AM
Thank you, Liviu, always appreciate your response 🙏

I will try and see if it works.
Title: Re: Min gaps between two sets of activities?
Post by: Liviu Lalescu on November 27, 2024, 08:24:53 AM
Thank you, pnlshd! You are welcome!

It might not work, because this constraint is in general, not attached to a room. But maybe each subject can be in a single room?
Title: Re: Min gaps between two sets of activities?
Post by: pnlshd on November 27, 2024, 08:31:13 AM
Unless it forces gaps bw activities in different rooms, I think it may work.

Having a subject per room is desirable yes, it should help with that, if it can't fit multiple subjects' activities in the same room, or if really necessary, fit it with a gap to allow for some buffering.
Title: Re: Min gaps between two sets of activities?
Post by: Liviu Lalescu on November 27, 2024, 08:35:04 AM
It forces gaps in general, so even between different rooms, if the two of activities are in different rooms. So it might not work.

I meant a single subject can have a single preferred room, not that a room can have a single accepted subject.
Title: Re: Min gaps between two sets of activities?
Post by: pnlshd on November 27, 2024, 08:43:24 AM
That's sad 😥

I will look again if other constraints can do the job.