Hi ,
I had some discussions with friends users of Moroccan fet version. they claim that the space constraint Max building changes per week for all teachers is not working properly.
So, I decide to do a test. In this attached file, i put max building changes per week for all teachers=0 with random seed x=123 and y=456. Generation successful about 3mn but as result, almost all teachers work in 5 to 6 rooms (buildings) a week.
I think there's a problem. Maybe a bug.
Also the same result with max buildings changes for a teacher. I do that for 3 teachers Ar1 with max buidings changes=1,
Fr1 , with max buidings changes=2 and M1 with max buildings changes=0.
So I claim this space constraint is not working.
Can you check this please.
Thank you.
I thought that maybe the fact that every building contains only one room with the same noun is the cause of this problem.
So, i create 3 buildings B1, B2 and B3.
I put N1, N2, N3, P1, P2, P3 in B1.
S01-------------S10 in B2.
S11-------------S20 in B3.
I put max buildings changes for all teachers per week=1.
But fet do nothing, teachers works in 4, 5 to 6 buildings a week.
Maybe i misunderstood .
Max building changes per week is the sum of changes in each day. It is like max gaps per week.
If you want some activities in the same room, use activities occupy max 1 different rooms.
Thanks Mr Liviu.
Quote from: Liviu Lalescu on September 08, 2019, 03:45:47 PM
If you want some activities in the same room, use activities occupy max 1 different rooms.
I know how to use this constraint.
Quote from: Liviu Lalescu on September 08, 2019, 03:45:47 PM
Max building changes per week is the sum of changes in each day. It is like max gaps per week.
for example : a constraint teacher max 1 building changes per week means that in a single day the teacher is allowed to change the building (the change of buildings is in that day ) the others days teacher works in the same building, right!.
the sum of changes of buildings in each day=1. Normally, all teachers works in two different buildings Throughout the week.
Quote from: Omar Ben Ali on September 08, 2019, 04:08:06 PM
for example : a constraint teacher max 1 building changes per week means that in a single day the teacher is allowed to change the building (the change of buildings is in that day ) the others days teacher works in the same building, right!.
the sum of changes of buildings in each day=1. Normally, all teachers works in two different buildings Throughout the week.
No, for example: day1: B1, day2: B2, day3: B3 -> 0 building changes per week. Because building changes per week = sum of building changes on each day = 0 + 0 + 0 = 0.
Thank you very much.
I think i understand now how this constraint work.
Max buildings changes per week=the maximum number of days when there are building changes .
So Max buildings changes per week=0 product the same result as Max buildings changes per day=0.
An other question please
So there is no constraints on buildings that ensure that teachers work in the same buildings throughout the week?
Thank you.
Welcome! :)
Not for buildings (but it might be possible a customization). For rooms, as I told you: activities occupy max 1 different rooms. Select all the activities of a teacher for a constraint (n_teachers constraints).
Quote from: Liviu Lalescu on September 08, 2019, 05:37:04 PM
Welcome! :)
Not for buildings (but it might be possible a customization). For rooms, as I told you: activities occupy max 1 different rooms. Select all the activities of a teacher for a constraint (n_teachers constraints).
i know this constraint for rooms . But many Moroccan users of fet avoid doing n_teachers constraints of this type, put every room in one buildings, so that teachers are set in the same room throughout a day instead of using the space constraint : a set of activities are in the same room if they are consecutive.
but they find problems to do that throughout the week.
Thank you again for your patience and your kindness.
They could use teacher home room (a single room). But again there need to be added n_teachers constraints, and they need to choose the exact room for each teacher.
Quote from: Liviu Lalescu on September 08, 2019, 06:10:18 PM
They could use teacher home room (a single room). But again there need to be added n_teachers constraints, and they need to choose the exact room for each teacher.
Yes for some teachers we can choose "a teacher has a home room" but for others in many situations it is impossible so we choose for others " a teacher has a set of home rooms".