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

Hello. I just started to use FET for school timetable of my school
(ICS Orazio in Pomezia (RM)). I have a problem with the gym that I
try now to explain. We work on 5 days per week (Mon-Fri) for 6 hours
per day (30 hours total per week). We have 32 classes (11 first, 10
second and 11 third). The physical education teachers make two hours
of lessons per week in each class. We have a gym that can
simultaneously accommodate two classes in each hour. Now I have to
make sure that for each hour there are always two classes in the gym
and only for 4 hours a week there are 3 classes third contemporaneous
this because we have 32 classes and not 30, and because the thirds may
alternate in the gym because they have to play hours of theory. I appreciate very much
if you can help me to solve the problem guiding me step by step as a
beginner. Thank you very much for your support. Sorry form my
English. Giovanni Spina

Vangelis Karafillidis

Could you be more specific? What I mean is, could you write down which specific (sub)activities can be the simultaneous with two others? Or it doesn't matter? I.e. can you have ANY four (at most) of these 32 lessons forming triads of activities with the rest of them?

Liviu Lalescu

To ensure that from a set of activities there are maximum 3 at each moment of time, you can use the constraint activities max simultaneous in selected time slots.

Please let me know if this helps you, or let me know why my solution is wrong (give more details).

teispng

Which is the path for the constraint "activities max simultaneous in selected time slots"?

Liviu Lalescu

Time constraints -> Activities.

Add all activities that you want in this constraint, select all time slots of the week (all 30) and add max simultaneous = 3.

Vangelis Karafillidis

Liviu, max simultaneous activities = 3 might result in many triple activities, far more than teispng expects.
So, I think that teispng should try this one:
Go to: Time -> Activities -> Max simultaneous activities from a set in selected time slots.
Select all your activities except for the ones that can be "tripled"
Select all time slots. Set max simultaneous = 2

Then go to: Time -> Activities -> A set of activities are not overlapping
Select the activities that can be "tripled". (this step is necessary to avoid quadruple (or more than 3) simultaneous activities in the overall timetable).


teispng

I try to better explain my problem. The school has 32 classes (11 classes first, 10 classes second and 11 classes third). Each class must carry out two hours of physical education a week. In total 64 hours to be allocated for physical education to be carried out in the gym. The gym can accommodate two classes simultaneously. The school has 30 hours per week (Mon-Fri), ie 6 hours a day (from 8:00 am to 14:00 am). So the most I can allocate 60 hours to the gym and not 64. So for 4 hours in a week in the gym I must have three classes, not two. These three classes must be  classes third. How can I fix?

Vangelis Karafillidis

Did you try what I wrote? Doesn't it work?

teispng

Go to: Time -> Activities -> Max simultaneous activities from a set in selected time slots.
Select all your activities except for the ones that can be "tripled"
Select all time slots. Set max simultaneous = 2
Done !!

Then go to: Time -> Activities -> A set of activities are not overlapping
Select the activities that can be "tripled". (this step is necessary to avoid quadruple (or more than 3) simultaneous activities in the overall timetable).
Can you be more specific ? What exactly I have to do ?

Vangelis Karafillidis

In the second step select only the activities that can become the "third" ones (simultaneous with two others).

teispng

I need the activities that must be tripled must not be concomitant with all the activities set with the below step that you have suggested:

Go to: Time -> Activities -> Max simultaneous activities from a set in selected time slots.
Select all your activities except for the ones that can be "tripled"
Select all time slots. Set max simultaneous = 2.

Please, what can I do? Is it more clear now?

Liviu Lalescu

Select 60 activities and add a max simultaneous constraint.

Select the other 4 activities and add a not overlapping constraint. These are the activities which will come as the third in a day.

This works only if you can decide manually which activities can be the third in a day. Otherwise, we need to think of something else.

teispng

It's still not clear the problem. I'm very sorry for that.
In each hour I must have 2 activities concurrently.
Only in 4 hours I must have 3 activities and these activities refferring to classes third.
Let me know if you have understood now.
Please, please help me.

Liviu Lalescu

#13
I have another idea. Use rooms. I did the attached file. Please see it, see how I added the constraints of space, and let me know.

Edited: This works if I know the exact activities to place in the third room.

Volker Dirr

Hi, i suggest to use rooms for this problem. we also have got this problem at our school.
there are 2 variants to solve this: (and we use(d) both variants.)

a) select 2 courses/hours that might be placed in an other room (for example computer lab). talk to the physics teachers, they will tell you hours that don't highly need the room). of course there guys (3 at the same time) can TALK to each other and share the 3rd room! so they can change it every week or half year!

b) add a 7th hour. of course, so two activities can be late. select yourself that activities and/or let FET choose. (so all other activities need an activity tag and allow only hour 1-6. so only physics can be in the 7th hour. disallow 7th hour for students in lower grades! then you need to think where the higher grades can have the free time slot. only in 1st hour or only in 6th hour. you need to care about that by adding students no gaps per week constraint and students early constraint.