FET Forum

FET Support (International) => Italian / Italiano => Topic started by: Giggino on October 27, 2018, 06:57:56 PM

Title: Problema con classe in succursale
Post by: Giggino on October 27, 2018, 06:57:56 PM
Hi all,
i discovered a problem in my generated time table.

I have 2 buildings and 1 hour gap needed to go from one to the other.

I've a 5 days week and 1 set of students stay in the second building for 4 days. Only 1day a week they need to come to main building to use the gym. As long as students are not allowed to change buildings, only 1 day a week they stay in the central building for the whole day (7 hours).

I tried to assign a room for the students in the second building but when they are in main building FET blocks and does not assign room for the lessons (except "educazione fisica" contrained to the gym).

If i assign 2 rooms to the students (one in the first building and one in the second) i don't know how to tell FET that sudents must stay in the second building for 4 days and only one in the first. I can use preferred place for activities but i dunno how to select them efficiently

So i assigned one room to students in the second building only with 99% contraints but FET has failed in the timetable recognizing the correct place for students (maybe a bug?). So sometimes it fail to select the correct room and not calculate the 1 GAP hour for the teacher.

Anyone can help?
Regards
G

Title: Re: Problema con classe in succursale
Post by: Liviu Lalescu on October 27, 2018, 07:36:26 PM
Hello,

It is best, in the future, to post in English into the English boards. But this is not a big thing :)

If your file is not private, you can post it here. If it is, you could send it to me by email, so I can have a look.

There is no constraint to say that students must be in a building one day and in the other building four days. There might be three solutions:

1) Preferred one, I think the speed of generation is not affected: add an additional hour each day, at the beginning of the day. Add not available each teacher in these hours. Add for each students set a dummy activity split into 5, duration 1 each, min days between them 100%. Constrain one of them to building 1 and the other 4 into building 2 (in all rooms of this building, 100%, and the same for building 1). Then students max building changes 0. Constrain by activities preferred times the dummy activities of the students to the dummy slots (first hours of each day) - preferably add them an activity tag and use this for preferred times constraint.

2) Preferred rooms for students both buildings 100% and 2nd building 90% or try other weights instead of this 90%. This slows down the generation, because some constraints with 90% will be broken, and also you have no guarantee that the result will be only on one day on building 1.

3) A custom version (also perfect with regard to speed and result). It is not very difficult, considering your particular case (so I will only add hard-coded numbers in the generation, not working in the interface). In fact, I could add this to the official, but is this useful for other users? I might add it in the TODO for now, if you consider. But also it is difficult to choose a name for such a constraint.
Title: Re: Problema con classe in succursale
Post by: Liviu Lalescu on October 27, 2018, 08:06:27 PM
At (1), I forgot to say: constrain by activities preferred times the dummy activities of the students to the dummy slots (first hours of each day). I edited my post above.
Title: Re: Problema con classe in succursale
Post by: Giggino on October 27, 2018, 08:08:07 PM
Hi
ok next post will be in italian :P
I think i tried solution 2 but it seems that i cannot add 2 preferred rooms for 1 group
I probably didn't understad well solution 1 but i made something that seems to work. I created a dummy activity (whitout students and teacher) of 7 hours for 4 days in ordet to occupy the room in the central for all days except 1. It seems to work...

I would really apreciate if you could have a look to my files, i don't know if i need to keep them private, so can i send them to your email?

Thank you very much for your support
G

Title: Re: Problema con classe in succursale
Post by: Liviu Lalescu on October 27, 2018, 08:36:54 PM
Quote from: Giggino on October 27, 2018, 08:08:07 PM
Hi
ok next post will be in italian :P
I think i tried solution 2 but it seems that i cannot add 2 preferred rooms for 1 group
I probably didn't understad well solution 1 but i made something that seems to work. I created a dummy activity (whitout students and teacher) of 7 hours for 4 days in ordet to occupy the room in the central for all days except 1. It seems to work...

I would really apreciate if you could have a look to my files, i don't know if i need to keep them private, so can i send them to your email?

Thank you very much for your support
G

:)

Two constraints: 100% for B1 and B2, and 90% for B2. But it is a bad solution.

Only now I understood correctly your problem. A single students set has this problem with the buildings, right? Indeed, you found a good trick, in this case. I was thinking that all the students have these buildings problems.

Yes, please send your file by email. You can find my email(s) on my personal page or on FET contacts. Send to any of them.