FET Forum

FET Support (English) => Get Help => Topic started by: Matthew on July 11, 2013, 02:52:22 PM

Title: Force at least 1 activity each day?
Post by: Matthew on July 11, 2013, 02:52:22 PM
I'm scheduling for elementary music, PE, French, and Art only - this means that I have 4 teachers with full schedules but the students have a lot of gaps in their day. I want to make FET put at least one activity per day, but can't figure out a good way to do that. I'm getting schedules, but there are a few days where there is no activity at all for that student group.

Any help greatly appreciated!

thanks

Matthew
Title: Re: Force at least 1 activity each day?
Post by: Liviu Lalescu on July 11, 2013, 03:13:23 PM
Say from a group of activities you need at least one hour to be in each day. Then use n_days_per_week constraints activities occupy max slots from selection. Each constraint will ensure that a day is occupied.

To do that: say you have activities A1..A10 with total duration 12; 5 days per week and 4 hours per day. To enforce non-empty Monday, add a constraint activities occupy max slots from selection with A1..A10, selected slots all hours of Tue, Wed, Thu, Fri, max occupied slots = 12 - 1 = 11.
Title: Re: Force at least 1 activity each day?
Post by: Matthew on July 11, 2013, 03:21:57 PM
Thanks for the quick response!

I didn't fully understand, and I'm wondering if this is a newer feature. I'm running version 5.18.0 on a Mac because that's the last Mac version I could find.

I was able to apply the "Students min hours daily" constraint and that appears to be working now for what I was after.

Thanks again - not sure how I would get our scheduling done without FET the last few years!!

Matthew
Title: Re: Force at least 1 activity each day?
Post by: Liviu Lalescu on July 11, 2013, 04:11:15 PM
Yes, indeed, your solution is a simpler and more elegant one.

The constraint occupy max time slots from selection was introduced in FET-5.15.0 and is in the time constraints for activities.