FET Forum

FET Support (English) => Get Help => Topic started by: Badam on January 31, 2017, 12:41:19 PM

Title: Rooms are overlapping
Post by: Badam on January 31, 2017, 12:41:19 PM
Hello all,
i have the following problem:
i'll attach all necessary images.
i'm using Version "fet-5.22.0-mapr-asa8-zt3"

I have 2 subjects, FSubj_TW-5311sp_mt and FSubj_TW-5202sp_wem
Each of these Subjects have a SubjectPreferredRooms Constraint. It depends on the class size which rooms are in this constraint.
In this case both have the same room(and others) in its constraint, the room is called RoomROK-E5A.
If i generate a timetable, both Subjects will be in the same Timeslot and in the same room, so they're overlapping. If i look at the other preferred_rooms which are in the constraint too, they are empty at this Timeslot. So there would be enough space to spread the Subjects into its own rooms.
I know there is the "NotOverlapping" Constraint but i cant use it here because i dont know which preferred_room fet is going to choose
Is there a trick for this custom version, or am i missing a constraint?
Thanks for your suggestions
Title: Re: Rooms are overlapping
Post by: Liviu Lalescu on January 31, 2017, 01:27:45 PM
I think (if I understand correctly) you can make the capacity of each room = 1 and make the specified number of students for each of these activities = 1 (instead of -1 - automatically computed). FET will respect this (but it is a hard constraint - cannot be broken).

Please let me know.
Title: Re: Rooms are overlapping
Post by: Badam on January 31, 2017, 02:20:33 PM
It seems that it work, great.
Thank you a lot