giorni con diverso numero di ore

Started by Est, September 07, 2022, 03:19:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Est

Vorrei impostare per un solo plesso una settimana in cui il lunedì ha 5 ore e gli altri giorni 4. Come si fa?

Liviu Lalescu

Per favore, scusi l'inglese:

I am not sure I understand correctly. What is "plesso"? A room?

There is a constraint, activities occupy max time slots from selection. You might use 4 constraints of this type. The first one contains all the activities which can be placed in this room, select the Tuesday slots (with -X-, red) and max occupied = 4. The same for Wednesday, Thursday, and Friday.

If this is not what you need or cannot be applied, let me know and I'll think of something else.

Est

Thank for reply and sorry for my english.
"plesso" is a building. I want to set only in one building 26 hours per week and in the other buildings 30 hours per week. It is possible?

Grazie per la risposta e scusa il mio inglese
Vorrei stabilire in un solo plesso 26 ore settimanali e in tutti gli altri 30 ore. è possibile?

Liviu Lalescu

You're welcome! Don't worry!

I have in vision this constraint, activities occupy max time slots from selection (select all activities which go to this building, all slots, and max occupied = 26), or adding 4 dummy activities with preferred room in this building. Maybe if I could see your file it would be easier to understand. Does this building have a single room or more?

Est

The file is not yet complete beacause I want to know how can I manage this situation before edit the file. The building have 5 rooms. In the first weeks, due to teachers shortage, a building (named Borgo) does not have full staff so it must work with less hours (26 hours instead of 30), so I have to generate a provisional timetable. I could attach the main file (the one with complete staff). I have another question about subjects but I open another post

Liviu Lalescu

I am not sure I understand correctly. So the building Burgo must have the 6 rooms occupied together in maximum 26 slots per week? But in your file each room has its students set (except 2B).

I tried to show you how to use my recommended constraint. I made students 1A, 1B, 2A, 3A, and 3B have preferred rooms as all the rooms in building Burgo (see the space constraints) and added a time constraint (see the time constraints, last time constraint). But unfortunately it is impossible.

I think I misunderstand something, so let me know.

Est

I used the word "room" to indicate class which in FET are called "students", that's my fault. Borgo have 5 classes (in 5 rooms) the 2B does not exist. I think your solution would work, once I set the correct numbers of hours. When I fix this I let you known, thank for the help. 

Est

Hi Liviu,
just to let you know the solution was easier than what I think. I simply put the constraint "stundents set not avaible" choosing the Borgo's students sets and the last hour of each day. I apologize for my explanation very confusing. Thanks again

Ciao Liviu,
solo per farti sapere che la soluzione era più facile di quanto pensassi. Ho semplicemente immesso il vincolo "stundents set not avaible" scegliendo le classi di Borgo e l'ultima ora di ogni giorno. Mi scuso per la mia spiegazione molto confusa. Grazie ancora

Liviu Lalescu