Allocate correctly classes in a gym

Started by teispng, July 06, 2016, 02:50:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

teispng

Hi Liviu, I saw the timetable and now we have only four hours with three concurrent activities. That's good. The problem now is that the tree activities are not only y3 rooms as requsted but we have for example y1, y2 and y3.
May I have only y3 rooms in those 4 hours instead?
Thanks a lot for your help.

teispng

Hi Volker, I'm very "happy" that you had my same problem.
I'm a very beginner and I didin't get your suggestion.
Please can you drive me step by step?
Thanks a lot for your help and understanding.
I'm waiting for your reply.
Regards :-)

Volker Dirr

variant a)

add an activity tag "ph" (physical eductaion)

talk to the teachers. they should tell you 4 hours that don't always need the room.

add that tag"ph" to all other physical eductaion + 2 out of that 4 hours. so in total 60 hours.

add 2 rooms.

then add a constraint that physical eductaion should be in this 2 rooms.
fet -> data -> space constraint -> activity tags -> an activity tag has prefered roomS

then use
fet -> data -> time constraints -> activities -> a set of activities has prefred starting time
you need to use this constraint 2 times.
the first time add one out of that 4 hours with tag "ph" and one out of that 4 hours without tag "ph".
do the same for the other two activities.


PS: you can save a bit work by not doing it by tags, you can also change subject name in that 2 hours. and use subject preferred rooms. then call the "physics education" subject into something like "physics education -"; so that don't get a physics room. by this you save some work, but the statistics will be a bit "untidy".

Volker Dirr

variant b)

add an hour. (fet -> data -> days & hours -> hours)

disallow lower grades in 7th hour:
fet -> data -> time constraint -> students -> students set not available

{
MAYBE also allow only hours 1-6 and a single hour in hour 7 to the higher grades
fet -> data -> time constraint -> students -> students set not available

OR
fet -> data -> time constraint -> students -> min hours per day = 5
fet -> data -> time constraint -> students -> max gaps per week = 0
fet -> data -> time constraint -> students -> students begin early (depending on your needs with value 0 or 1)
}

add 2 rooms.

add subject prefreed roomS. add "physical education" into this 2 rooms.

Liviu Lalescu

Quote from: teispng on July 06, 2016, 08:04:37 PM
Hi Liviu, I saw the timetable and now we have only four hours with three concurrent activities. That's good. The problem now is that the tree activities are not only y3 rooms as requsted but we have for example y1, y2 and y3.
May I have only y3 rooms in those 4 hours instead?
Thanks a lot for your help.

If you know which activities should be in the same slots, you can do as in the attached file. See the time constraint activities occupy max time slots from selection.

Note that I added more teachers, which is needed to solve the timetable.

teispng

Hi Liviu,
I saw the timetable and it is correct but you have considered a teacher t1 that has only room y1, t2 only room y2 and etc.
In reality what happens is that one teacher has rooms y1, y2, y3. In my school for example, we have four teachers:

t1 has y1a, y1b, y1c, y2a, y2b, y2c, y3a, y3b, y3c
t2 has y1d, y1e,y1f,  y2d, y2e,y2f,  y3d, y3e,y3f
t3 has y1g, y1h, y1i, y2g, y2h, y2i,y3g, y3h, y3i,
t4 has y1j, y1k, y2j, y3j, y3k

Please, can you generate a new file that include the situation that exists in my school?
I really appreciate your support and help.
I'm waiting for your reply including a new file.
Thanks a lot indeed.
Regards

Volker Dirr

i suggest to use the same trick for the gym as i descripd it for the physics education.

teispng

Hi Volker,
In my school for example, we have four teachers:

teacher t1 has rooms y1a, y1b, y1c, y2a, y2b, y2c, y3a, y3b, y3c
teacher t2 has rooms y1d, y1e,y1f,  y2d, y2e,y2f,  y3d, y3e,y3f
teacher t3 has  rooms y1g, y1h, y1i, y2g, y2h, y2i,y3g, y3h, y3i,
teacher t4 has rooms y1j, y1k, y2j, y3j, y3k

Please, as I'm begginner,  could you generate a  file.fet that include the situation that exists in my school?
In this way I can see all the constraints e replicate them in my file.
I really appreciate your support and help.
I really hope that's possible for you.
I'm waiting for your reply including a  file.fet.
Thanks a lot indeed.
Regards

Volker Dirr

the teachers rooms are independ from the gyms problem.
please do what i wrote above. you only need to decide if you want to use trick a or b. (with 5*6=30 hours, or if you want to enlarge to 5*7=35 hours week for higher grades)
i can't write a file for you now, because:
a) i am too busy for that
b) you won't learn how to do it and then you will always ask me every year the same stuff.

so please do what i wrote. then you can sent me the file and i can check it if there are still problems.

teispng

OK, I'll try to do myself and the I'll sent to you the file to verify where still are problems.
Thanks a lot.
For variant b) I need some clarification:

step1: add an hour. (fet -> data -> days & hours -> hours). That simply means set 7 hours instead of six. Correct?

step 2: disallow lower grades in 7th hour:
fet -> data -> time constraint -> students -> students set not available.That means that Ihave to add 1 constraint for each lower grades, i.e one for 1A, one for 1B until 1K ( we have 11 rooms first) and also one for 2A, 2B until 2J (we have 10 rooms second). In total 21 constraint. Right?

Step 3:
{
MAYBE also allow only hours 1-6 and a single hour in hour 7 to the higher grades
fet -> data -> time constraint -> students -> students set not available.
As before I just allow for each day all the 1-6 hours for the student 3A, 3B until 3K (we have 11 rooms third). In total 11 constraints. Right?

OR (this is alternative to the previous one, right?)
fet -> data -> time constraint -> students -> min hours per day = 5
fet -> data -> time constraint -> students -> max gaps per week = 0
fet -> data -> time constraint -> students -> students begin early (depending on your needs with value 0 or 1) (What does it mean?)
}

Step 4: add 2 rooms. For example gym1 and gym2. Right?

Step 5: add subject prefreed roomS. Can you be more specific here? I didnt'get you. Thanks
Step 6 : add "physical education" into this 2 rooms. Can you be more specific here? I didnt'get you. Thanks

Step 7: run timetable

I don't need to define any  tag here I suppose
I'm waiting for your reply.
Thanks a lot for your precious support and help
Regards

Liviu Lalescu

Quote from: teispng on July 06, 2016, 11:13:32 PM
Hi Liviu,
I saw the timetable and it is correct but you have considered a teacher t1 that has only room y1, t2 only room y2 and etc.
In reality what happens is that one teacher has rooms y1, y2, y3. In my school for example, we have four teachers:

t1 has y1a, y1b, y1c, y2a, y2b, y2c, y3a, y3b, y3c
t2 has y1d, y1e,y1f,  y2d, y2e,y2f,  y3d, y3e,y3f
t3 has y1g, y1h, y1i, y2g, y2h, y2i,y3g, y3h, y3i,
t4 has y1j, y1k, y2j, y3j, y3k

Please, can you generate a new file that include the situation that exists in my school?
I really appreciate your support and help.
I'm waiting for your reply including a new file.
Thanks a lot indeed.
Regards

Please add the activities like you wrote above and try to find the solution yourself. If you cannot, post here another reply, with the file with activities as you need (you can do this yourself).

teispng

Hi Volker, I have tried method b but the timetable is not running.
File attached.
Regards

Benahmed Abdelkrim

  I have modified your file, perhaps a solution
B.A/krim

teispng

Hi Liviu,
I have done as you suggested. I set four teachers and I have maintained all the setting that you have done in your file.
After 40 minutes no solution has been found by FET.
Attached the file.
Please could me tell me where I'm wrong?
Thanks a lot indeed
I'm waiting for your reply.
Kind Regards :-)

teispng

Hi B.A/krim,
Thanks for the file but after 20 minutes any solution had been found (62/64).
Have you run the timetable? How many time for the solution?
Thanks a lot
Regards