3 subjects cannot be on the same day

Started by Miguel Freitas (PT), September 12, 2021, 03:05:11 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Miguel Freitas (PT)

Hello!

How can I make sure that three subjects do not coincide on the same day. I can only do with two.

Thanks!

Liviu Lalescu

Hello,

I don't understand. Say A1(Subject 1), A2(S1), A3(S2), A4(S3), A5(S3), A6(S3). Add min 1 days between activities A1..A6, 100%. This will add  min 1 day between each pair (A1,A2), (A1,A3), ..., (A5,A6). Or using students/teachers activity tag max hours daily. The first is better.

Miguel Freitas (PT)

I have 3 subjects. S1 can be on the same day with S2 or S3, S2 can be on the same day with S1 or S3, S3 can be on the same day with S1 or S2.
But I can't have S1 + S2 + S3 on the same day.

Liviu Lalescu

Subjects or activities?

In a constraint min days between activities, FET cannot put (by design) 3 activities on the same day if consecutive if same day is selected. So if you refer to 3 activities: A1, A2, A3, add a constraint min days between activities with weight 0% and consecutive if same day = true.

If you refer to 3 subjects (and more than 3 activities), you could use constraints teachers/students activity tag max hours daily.


Liviu Lalescu

You're welcome!

If they can be nonconsecutive if same day, you will need also teachers/students activity tag max hours daily.