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 Volker,
atteched file for method a.
The time table is not what I want. Same hours with one activity only. Only two times, trhee ativities but not all third rooms.
Probably I'm wrong the time constraint.
Please can you check?
Thanks a lot indeed.
I'm waiting for your reply.
Kind Regards

Liviu Lalescu

Quote from: teispng on July 07, 2016, 04:55:04 PM
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 :-)

You were wrong because the constraint activities occupy max time slots from selection had 6 hours with teacher t3. I added 2 hours for t2 instead of 2 hours for t3 and it solves. See the attached file.

Benahmed Abdelkrim

Quote from: teispng on July 07, 2016, 05:19:36 PM
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
ah! sorry I corrected a file...
B.A/krim

Volker Dirr

#33
Quote from: teispng on July 07, 2016, 05:43:00 AM
step1: add an hour. (fet -> data -> days & hours -> hours). That simply means set 7 hours instead of six. Correct?

yes

Step 2 and 3 are done a bit complicated by you. You also need to care about year 3. you don't need to add each single group. just add the whole year "1", year "2" and "year 3". 

Quote from: teispng on July 07, 2016, 05:43:00 AM
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

Setp 5 and 6 is in fact only a single step:
fet -> Data -> Space constraints -> Subject -> A subject has preferred roomS

Benahmed Abdelkrim

#34
proposing another solution I found a contradiction using two constraints;
Mr. liviu I believe you should take a look at this file.
I used the following constraints:
1. a set of activities has same starting time (day + hour)
2. max simultaneous activities from a set in selected time slots/ max simultaneous = 2

but in some interval of time I got 4 activities,  it's weird right?
B.A/krim

Liviu Lalescu

Mr. Benahmed, it is normal, because you did not add all the activities in the constraint. If you add them, the timetable is impossible.

Benahmed Abdelkrim

I think the activities has a same starting time, acts as a single activity to satisfy the constraint max similtaneous=2?
B.A/krim

Liviu Lalescu

Quote from: Benahmed Abdelkrim on July 07, 2016, 08:59:19 PM
I think the activities has a same starting time, acts as a single activity to satisfy the constraint max similtaneous=2?

I don't understand.

The constraint is satisfied.

Vangelis Karafillidis

I didn't understand...
Please start it from the beginning.

PLEASE VERIFY IF I UNDERSTAND THE PROBLEM CORRECTLY.
1) You have totally 64 hours per week gym lessons.
2) Your timetable has 60 hours.
3) You want the gym lessons to occur for 56 times (hours) with two at most two lessons simultaneously and 4 times (hours) with three lessons simultaneously.

Right?

teispng

Hi Vangelis Karafillidis,
Right !! The only added information is that the 4 times (hours) with three lessons (all third rooms) simultaneous must be all third rooms.
Thanks
Regards
Giovanni

teispng

Hi Liviu.
I'm very happy to comunicate that your file liviu3.fet is exactly what I want.
I have inserted myself the solution in my school orazio.fet, I run  the timetable and the tool has find a fine solution.
Thank you Liviu.
You are precious :-)
:-)
:-)
:-)

Liviu Lalescu


Vangelis Karafillidis

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.


Volker Dirr

#43
why are all using so complicated tricks? it is so easy with rooms like i suggested.

Volker Dirr

#44
i attach the corrected file. i deactivited 3 constraints at the moment. they are currently not possible, because you didn't add enought activities. as soon as you added all activities, you must enable them.