FET Forum

FET Support (English) => Get Help => Topic started by: s.lanore on June 19, 2017, 02:36:01 PM

Title: MinHoursDaily with activity tag?
Post by: s.lanore on June 19, 2017, 02:36:01 PM
Hello,

I have an issue and I can't find a way around it by myself, but maybe I'm missing something.
I have 5 lunch activities with preferred time slots for each student. One for each day of the week.

My issue is that I would like to use the ConstraintStudentsSetMinHoursDaily and that I don't have a way to ignore my lunch activities with this constraint. Meaning that if fet finds a timetable with a day off (which is allowed) the ConstraintStudentsSetMinHoursDaily will make it impossible because there will be the lunch activity no matter what. Indeed, if we have a day with only the 30min lunch activity for the student and the minHoursdaily constraint is set to 1 hours it won't be good..

One way to solve it would be to have a ConstraintStudentsSetMinHoursDaily with an activity_tag and i'd add an activity_tag to all my activities except the lunch ones.
If you understand my issue and know how I can accomplish that that would be amazing.

Thanks!
Title: Re: MinHoursDaily with activity tag?
Post by: Liviu Lalescu on June 19, 2017, 03:01:09 PM
See also http://lalescu.ro/liviu/fet/forum/index.php?topic=3149.0

It is already in the TODO, see items 66, 145, and 248. I added you in the item 248.

Thank you for the suggestion! Unfortunately, the trick to use constraints activities occupy max time slots from selection I think does not work in your case, since you need to allow empty days.

This is a difficult constraint. I am willing to try and make it if I will get substantial financial support for this.
Title: Re: MinHoursDaily with activity tag?
Post by: s.lanore on June 19, 2017, 03:16:06 PM
Oh I see, thank you for the fast answer. Hopefully you'll get financial support, fet is amazing and I really appreciate the support!