Using max 2 days for placing set of activities

Started by math, January 23, 2022, 05:40:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

math

We have an external teacher that teaches a set of activities next semester. Since this guy lives remote and has to travel to university, his activities shall be placed on max. 2 days. I doesn't matter which days, we just aim at reducing travel costs. I'm pretty sure that FET is able to respect this requirement, but I just don't get how to model it. Can somebody give me a hint?

Thanks in advance, Matthias

math

Forget my question. I've got to use the Time -> Teachers -> Max days per week constraint. Sometimes it's hard to see the forest for the trees.

But how would I have to model it in the case of some arbitrary set of activities (i.e. activities of different teachers)? Would I have to create a fake teacher, assigning her to all activities of the set and add the constraint mentioned above?

Best, Matthias

Liviu Lalescu

Yes, indeed, there is no other way than your trick. But it should work fast in the generation algorithm.