FET Forum

FET Support (English) => Get Help => Topic started by: math on January 23, 2022, 05:40:00 PM

Title: Using max 2 days for placing set of activities
Post by: math on January 23, 2022, 05:40:00 PM
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
Title: Re: Using max 2 days for placing set of activities
Post by: math on January 23, 2022, 07:04:48 PM
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
Title: Re: Using max 2 days for placing set of activities
Post by: Liviu Lalescu on January 27, 2022, 09:53:46 AM
Yes, indeed, there is no other way than your trick. But it should work fast in the generation algorithm.