Attività a cavallo della pausa

Started by Stefania, November 28, 2022, 11:34:50 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Stefania

#15
Buonasera Liviu,
sono tornata e ho un nuovo problema.
Devo inserire le seguenti attività
italiano 2+2+2+2+2+2+1+1
tedesco 2+2+2+2+1+1
matematica 2+2+2+1+1
inglese 2+2+1+1
da lunedì a giovedì.
Le attività di durata 1 si devono unire alle attività di durata 2 e diventare 2+1 oppure si devono unire alle attività di durata 1 e diventare 1+1
Come posso fare?
Le attività di durata 3 (2+1) possono essere solo 4 alla settimana e devono iniziare alla prima ora.
Grazie
Stefania

Liviu Lalescu

#16
Buonasera, Stefania,

Inglese:

If I understand correctly, it does not matter if 2 activities are on the same day? (I mean there is no preference to place them on different days or on the same day?)

Then, add the activities in this way: For italiano, 2+2+2+2+2+2+1+1, min days between them 1 with consecutive if same day = true and weight 0% (yes, 0%). FET won't place more than 2 activities on the same day. Then, add a constraint min 1 days between activities 100%, between 2+2+2+2+2+2. If you prefer all the activities on different days, you may increase that special 0% to say 50% or more, but not too much.

But what you need further, activities 2+1 to be placed necessarily on the first hour, I think is not possible with the official FET. I think you need a customization.

Also, if I understand correctly, from all these 4 subjects' activities you need maximum 4 on the week to be 2+1? I think that this is also not possible with the official FET, requires a customization, and seems a bit difficult.

Also, is it true that you do not accept a single activity with duration 1 on a single day? Then you might need to use teachers/students activity tag min 2 hours daily (add a tag "ita", for the Italian activities, etc.).

Stefania

Grazie Liviu per la risposta chiara,
è fondamentale che le attività 2+1 inizino alla prima ora e immaginavo non si potesse. Decideremo prima di iniziare gli orari chi farà la prima ora e stabiliremo una rotazione annua.
Buona giornata e grazie ancora!
Stefania

Liviu Lalescu

#18
It is possible (the 2+1 begin at first hour), but only as a customization, because it is not an usual request from the users.

Prego, Stefania!

Stefania

Per personalizzazione intendi che lo devo inserire io?

Liviu Lalescu

#20
No, by customization I meant I could try to design you a FET code modification, just for your school. It should take care automatically that 1+2 or 2+1 are placed only at the first hour.

I think this customization is possible. But I can do this customization based on a work contract, if this is acceptable.

Liviu Lalescu

#21
I am sorry I wrote that, Stefania. I should be helping people benevolently on the forum. I will try to help you with your needed customization, no contract needed.

I apologize once again!

Stefania

Non ti preoccupare Liviu, possiamo parlarne  :)
Stefania

Liviu Lalescu

#23
OK, let me know if and when you would like me to give it a try. I'll need your file, to work with (privately, if needed), and I can begin working on the code. I hope it is possible, because I thought a bit about it.

Stefania

#24
Buon pomeriggio Liviu, ho ripreso in mano il mio orario. Ho 23 classi e 862 attività.
Vorrei che quando un insegnante conclude la giornata, non entrasse alla prima ora.
Grazie!
Stefania

Liviu Lalescu

Buona sera, Stefania,

I think this is very easy, use the constraint teacher(s) max span per day, max span = number of hours per day - 1.

Stefania

Grazie,
vorrei che un insegnante non avesse più di due attività dalle 13 in poi.
Stefania

Liviu Lalescu

#27
I am not sure I understand well:

1) If you want a teacher to work a single afternoon, use constraints teacher(s) interval max days per week.

2) If you want a teacher to work maximum 2 hours in the afternoon, allowed for instance both on the same day or one on a day and one on another day, use constraints activities occupy max time slots from selection, one for each teacher, add all the activities of that teacher, select with X (red) the afternoon slots.

Stefania

Grazie Liviu, mi serviva il suggerimento numero 2. Alcuni insegnanti non possono fare più di 2 ore per ogni pomeriggio (i pomeriggi in tutto sono al massimo 2). Ho inserito il vincolo come da te indicato ma non genera più l'orario.  :-\
Stefania

Liviu Lalescu

Prego, Stefania,

I do not understand correctly.

If there are max 2 afternoons, each with max 2 hours, you need both of these:

1) Teacher interval 13 - end of day max 2 days per week

and

2) 5 constraints activities occupy max time slots from selection, all the activities of the teacher, select a single afternoon (Monday), max occupied = 2, then another constraint with Tuesday selected, again max occupied = 2, ..., Friday.