Set of activities begin or end students day

Started by Željko Vrabec, August 25, 2025, 09:06:42 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Željko Vrabec

Hi guys!

Is it possible to implement that some set of activities either begin or end students day? For example group 5.A has 2 separate school hours of 2nd foreign language per week which need to begin OR end students day (and here we are not talking about exclusive OR).

Thanks in advance!

Liviu Lalescu

Hello, Zeljko,

Many others suggested this, but it is not possible to implement efficiently. I made once a custom version for a user, I forgot which it is exactly, but anyway it is very old.

The problem with this constraint is that we cannot decide which way to continue: with the activity starting or ending the day.

A possible option is to double the students sets (Y1 and Y2), and to add all the activities to Y1 and to Y2 add only the other activities (without the ones beginning or ending the days). Then, max 0 gaps for Y1 and Y2.

I will add your suggestion in the TODO.