Hi guys!
Here's the thing. In my school (every) subject has a preferred room (room 15), but for example history and geography have the same preferred room which means when both subjects are taught one of them must be in some other room. So i added set of preferred rooms for history (rooms 15, 14), and for history (rooms 15, 16). Rooms 14 and 16 should be used only if room 15 is occupied, but fet uses these rooms even if room 15 is free. Is there any chance to avoid that?
Hello, Zeljko,
You mean geography in 15 & 16?
You could add history preferred 15 & 14 100% and preferred 15 95% (or trial-and-error for other weights <100%). Similar for geography. So two constraints for history and two constraints for geography.
Quote from: Liviu Lalescu on May 26, 2025, 07:46:52 PMHello, Zeljko,
You mean geography in 15 & 16?
Yes, I wrote history two times by mistake
Quote from: Liviu Lalescu on May 26, 2025, 07:46:52 PMYou could add history preferred 15 & 14 100% and preferred 15 95% (or trial-and-error for other weights <100%). Similar for geography. So two constraints for history and two constraints for geography.
I'm not sure i got this. What gives me the other constraint? If I set rooms 15 and 14 as set of preferred rooms for history with a weight 100% what gives me a constraint for 15 95%?
Add two constraints for history:
a1) Subject preferred rooms, subject history, rooms 15 and 14, 100%
a2) Subject preferred room, subject history, room 15, 95% (or another percentage <100%).
Add two constraints for geography:
b1) Subject preferred rooms, subject geography, rooms 15 and 16, 100%
b2) Subject preferred room, subject geography, room 15, 95% (or another percentage <100%).
A perfect solution does not exist in FET, so you might end with 15 free and the others occupied. If it is critical, we could try a customization, but I am not sure it is possible.
Quote from: Liviu Lalescu on May 26, 2025, 07:58:43 PMIf it is critical, we could try a customization, but I am not sure it is possible.
No need if there is a decent workaround. Thanks for your help!
You are welcome! Please let me know if my suggestion works, practically.
I'll let you know in august when I make new timetables for the next schoolyear ;)