Generar pausa para profesores a última hora de la mañana

Started by fxbaldovi, June 25, 2019, 09:25:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

fxbaldovi

Hola,

Yo también soy nuevo en esto. Este año hemos decidido intentar generar el horario del Instituto con FET. Hasta ahora, todo iba bien, pero tenemos un  horario diferenciado para ESO y BAT. Los alumnos de ESO acaban todos la jornada matinal a las 13:30 y empiezan la de la tarde a las 15:00, pero algunos grupos de BAT tienen también clase tres dias a la semana de 13:30 a 14:30 y por la tarde no tienen clase.

Bien, en cuanto a los alumnos, no hay problema, usando restricciones de tiempo, pero el problema viene con los profesores. Con los horarios que generamos, a veces un profesor tiene clase con BAT hasta las 14:30, pero el programa le asigna también clase a las 15:00 con una clase de ESO.

Evidentemente, parece un poco cruel no dejarle casi tiempo de comer, además de que la normativa no lo permite, ya que tiene derecho a descansar durante más tiempo.

Y la pregunta, ¿sabéis como usar las restricciones para conseguir algo  así como un if , then, else. Es decir, al profesor que le toque la clase de 13-30 a 14:30, que el programa no le asigne la primera hora de la tarde a las 15: 00?

Hemos intentado con múltiples restricciones, pero no encontramos cómo conseguirlo.

Os agradeceremos cualquier propuesta

Y por supuesto, gracias

PD: os dejo adjunto el horario tal como lo tenemos montado ahora

Liviu Lalescu

Hola,

Excuse the English:

See attached file, I hope I did not mistake. See the last 300 time constraints which I added. It took me about 1 hour to add them (so, reasonable time).

After you add new teachers or modify their activities, you need to update the respective constraints (each 10 constraints have all the activities of a teacher).

fxbaldovi

Alo

Many, many many thanks for your work, Liviu. It works perfect.

But, what is necessary to make with a new teacher. Where we aply the time restriction?



Liviu Lalescu

#3
You are welcome!  :)

For each teacher, you need to have 5x2 constraints activities occupy max time slots from selection. The activities in each constraint are all the activities of that teacher, max occupied = 1, selected slots = (13:30 and 15:00) or (14:00 and 15:00) of a particular day - so 5 days x 2 variants = 10 constraints for each teacher.

Each time you modify the activities for a teacher or add a teacher, you need to make sure the constraints are OK as above. So modify the existing 10 constraints of that teacher (if you modify the activities of a teacher) or add 10 constraints (if you add a teacher, and after you add the activities for that teacher).