Rooms not added to generated solution

Started by dimi3, January 31, 2010, 04:02:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dimi3

Hello,

I am trying with different definition files from the samples on fet 5.12.2 (also on 5.11.0) and the rooms are not added to the solution. When I open the activities.xml the Room element is empty in all Activity elements.

This is reproducable with Lom_high_school_2007-2008-single definition from the samples.

Does someone know why the rooms are empty?

Regards,
Dimi

Liviu Lalescu

The sample from Bulgaria - Lom is not complete, probably. The user who submitted this sample inputted the rooms, but did not add space constraints. If you don't add space constraints, each activity will have unspecified room. You need to add for instance subject preferred rooms constraints (or any other preferred or home room(s) constraints).

dimi3

Hello Livlu,

I added all rooms as preferred rooms and I got the expected behaviour. I am really curious why you designed it that way. Since this puts additional burden to the user, he has to specify that all rooms are possible if there are no other constrains. However if the user doesn't do this, then it seems that the rooms are simply not taken into account.

In my setup the definition went from 170 kb to 1.3 mb just to for this constrains. Overall this seems like a lot of effort for something that I feel should always be there - the room in the rooms_days_horizontal.html for example.

Best Regards,
Dimitar

Volker Dirr

Because there are a lot of schools that haven't room problems to most activities. so they don't need to enter the home rooms, because there is never a problem.

if you have room problems, then of course all rooms need a room constraint.

the fastes/best is:
a) use home rooms
or
b) set room constraint to each subject
or
c) set an activity tag to each activity (fastes by csv) and add an room constraint to that activity tag


but your are right, we maybe can use a new constraint like: "if an activity haven't a room use one of the following preferd rooms".
let us think some more, because we currently think about a very similar "problem".

Liviu Lalescu

#4
Like Volker said, I wanted the user to specify exactly the rooms constraints. If there is no constraint for an activity, then this activity may take place in no room at all.

You added space constraints in a non-optimal way. Like Volker said, the easiest way is to add an activity tag for each activity and a preferred room(s) for an activity tag constraint.

Did you add for each activity a constraint activity preferred rooms? (this would be not a good way to add space constraints).