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.

Vangelis Karafillidis

#60
Quote from: Vangelis Karafillidis on July 08, 2016, 02:14:24 PM
You can also try the following:

1) Insert all the activities (without room constraints).
2) Create a DUMMY (pseudo) teacher, for example PSEUDO_GYM
3) Create an DUMMY (pseudo) activity (this means an activity with teacher the PSEUDO_GYM, and without students) out , split = 56, min days = 0, duration =1
4) Go to Time - > Activities -> Max simultaneous activities from a set in selected time slots
5) Insert all the gym lessons along with the DUMMY activity.
6) Select all time slots
7) Set max simultaneous = 3.

I think that this should work.

EDITED... I found a mistake...

1) Insert all the activities (without room constraints).
2) Create a DUMMY (pseudo) teacher, for example PSEUDO_GYM
3) Create a DUMMY (pseudo) activity (this means an activity with teacher the PSEUDO_GYM, and without students) split = 26 (30 hours of the schedule - 4 hours of the "triple" gym courses), min days = 0, duration =1
4) Go to Time - > Activities -> Max simultaneous activities from a set in selected time slots
5) Insert all the gym lessons along with the DUMMY activities (step 3).
6) Select all time slots
7) Set max simultaneous = 3.

Volker Dirr

#61
yes, that variant is also possible, but it also have got 3 (small) disadvantages:
- you need to care about dummy stuff; espicialy if you change the number of physics activities next year or if there are more or less classes/groups next year. so it is critical, because you might forgot to change again.
- teachers and students can't see who is in the physics lab and who is in class room
- it is randomly (so in worst case it "hit" always the same teacher in all his lessons! maybe that is ok, maybe not.)

why don't you talk with your physics teachers? why to you try to beat them randomly? if you simply TALK with them, they can tell you who can share a room. then they can prepare the lessons. they can also internaly swap ever 2 weeks.

So: talk with them! in easierst case you simply add 2 teachers and 2 groups into the same activity. you need to do that with 4 subactivities only.
it is so easy!
the advantage is:
- you won't do a bug next year. you don't need to change dummy stuff if the number of hours/activities/classes/groups change next year
- teachers and students can see who is in the lab
- it isn't randomly. the teachers know that already before and can prepare lessons very well.


Volker Dirr

#62
i attach a file where you can see how to solve it if you talk with teachers. as you can see 2 of them share the room. so they can swap every 2 weeks the rooms.
but you need to TALK with the teachers. TALKING with them and getting a solutions from them is much better then beating them randomly.
i am a physics teacher myself and i hated the time when i was beaten randomly. I liked the time where guys talked with me and i just told them: No problem, i don't need the physics lab in hour X with students set Y if i get the computer lab instad of the physics lab. Or: No problem, i don't need the physics lab all 2 hours, with students set x i just need it 1 hour, in the other hour it is ok if i share it internaly with teachers Z. Today i am happly myself the guy in charge.

teispng

Thank you very much Volker,
I'll do ad  you suggested and I'll talk with the teachers.
I've perfectly understood your simply method.
I'm very happy.
I have now three different method to resolve the problem but your last one a think is good enough.
Than you again
Regards
:-)
Giovanni

Benahmed Abdelkrim

B.A/krim

Volker Dirr

#65
yes, that is also a possible solution, but it has got the nearly the same disadvantages as Vangelis Karafillidis suggestion.

Volker Dirr

i forgot to say: if you use my last "trick" with different subactivities you should add 2 min days constraints to that 3 activities.

teispng

I didnt' get you.. What do you mean in details? Registra :-) Giovanni

teispng

I B.A./Krim,
yes, your solution has three activities 4 times but the three activities must be only third rooms (the highest grade) and not lower grades.
I hope it's clear.
Thanks
Regards
Giovanni

Volker Dirr

#69
lets say you have this:

id 1 - teacher 1 - ph - group 3a
id 2 - teacher 1 - ph - group 3a

id 3 - teacher 2 - ph - group 3b
id 4 - teacher 2 - ph - group 3b

there are already 2 min day constraints added automaticly:
1.: id 1 and id 2
2.: id 3 and id 4

example a:
now you decide to merge id 1 with id 3.
and you merge id 1 and id 4.
id 1 - teacher 1 + teacher 2 - ph - group 3a + group 3b
id 2 - teacher 1 + teacher 2 - ph - group 3a + group 3b
in fact id 3 and id 4 should be removed now.
all is fine, because you still have the min day constraint with id 1 and id 2.

example b:
now you decide to merge id 1 with id 3.
BUT NOT merge id 2 and id 4 (Because you want to do that with other teachers/groups/activities.)
id 1 - teacher 1 + teacher 2 - ph - group 3a + group 3b
so id 2 and 4 stay the same.
but id 3 is "empty" now. you can (should!) remove it.

but now the min day constraints are incorrect.
there should be 2 min day constraints:
1.: id 1 and id 2 (that is still there and it is correct!)
2.: id 1 and id 4 (so you see, you need to add this one yourself!)