Main Menu

Elective courses

Started by borivoje83, November 04, 2025, 09:05:59 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

borivoje83

I'm creating a schedule for the Faculty of Pedagogical Studies. I've encountered a problem that's confusing me.
Due to the large number of classes, we've defined elective subjects as separate groups. So we have Teacher Group 1, Group 2, and then Teacher Ethics, Teacher Academic Writing (as groups). For elective subjects, it can happen that there are two blocks, e.g., elective block 7 and elective block 8. These blocks must not overlap, because they are different elective blocks and each student chooses one subject from each block.
To prevent this, I added activity tags ig7 and ig8 and prohibited activities with those tags from occurring at the same time. However, when I try to move one such activity to a time slot that looks empty and has enough space, the schedule generation stops and reports that the subject cannot be placed there.
I'm sending the file I'm working on (the file is more than 512 KB, so I'm attaching a link), along with a desperate call for help.

My FET Timetable

Volker Dirr

It will help us if you tell us the id of the activity that you want to move and also tell use where you want to move it.
I done only a quick look, but it looks like most (all?) of your activities are locked in time. You probably only need to unlock the time.
I must sleep now and work tomorrow, so I will answer very late.

borivoje83

For example, activity 1169 to move to Wednesday in 16.00

I'm locking the activities in time because I do not want randomness during different version generation. Maybe I'm wrong.

Thanks for answering and help.

Liviu Lalescu

I guess it is about the tag (i) of activity 1169, because I removed it and it is possible. You have some constraints activity tags not overlapping.

borivoje83

We used the tag (i) to separate the appearance of mandatory subjects with groups and elective subjects in the same time slot (which must not overlap). We resolved this by introducing a restriction that (i) cannot appear together with (1st group or 2nd group).
So, is there another way to prevent the overlap of elective subjects and subjects that have groups? That could be a very useful option in FET.

Liviu Lalescu

I am sorry, but I don't understand. The constraint is good, but you want the impossible.

borivoje83

The constraint is set on activities with tags to "not overlap" groups and elective subjects. I guess under "do not overlap" means that they do not occur on the same day and time. Or maybe I was wrong.

borivoje83

Anyway, what do you suggest for me? How to restrict subjects with groups and elective subjects from appearing in the same time slot?

Liviu Lalescu

There are many ways to do this. One way is your way, with constraint activity tags not overlapping. Another way is to use automatic division of years by categories, or considering a subgroup = a real life student, and creating the necessary groups.

I was meaning your report: it is impossible to constrain "1169 to move to Wednesday in 16.00". I told you that probably in the same slot there is another activity with a conflicting activity tag.

borivoje83

But that slot Wednesday at 16.00 is not occupied by any other activity. It is blank. That was the thing that confused me.
For the first solution, "my" solution, it somehow does not allow me to put that subject in the empty time slot, which cofused me.

borivoje83

if you please look at the printed timetable.

Liviu Lalescu

I looked at it, and on Wed 1st hour there is an activity with 1gp and with 2gp. It is overall, not only for a students set. If you want only for a students set, you need to use activities not overlapping for each group of activities.

borivoje83

OK. I must think over on what you said. I will report what I did.

borivoje83

Quote from: Liviu Lalescu on November 05, 2025, 09:43:43 AMIf you want only for a students set, you need to use activities not overlapping for each group of activities.


Can you explain this to me? How to do it?

Liviu Lalescu

Either use activities not overlapping, with the exact activities, if this is possible, or create 3 activity tags for each students set, and make a constraint activity tags not overlapping for each 3 such tags.