FET Forum

FET Development => Custom FET for Particular Needs => Topic started by: Benahmed Abdelkrim on February 21, 2017, 05:54:38 PM

Title: Max H_Daily_activity tag
Post by: Benahmed Abdelkrim on February 21, 2017, 05:54:38 PM
 Hi!
        In the Algerian version of FET, the constraint cited below is for half a day or for a real day:
Max hours daily with an activity tag for a(all) teacher(s).
Title: Re: Max H_Daily_activity tag
Post by: Liviu Lalescu on February 21, 2017, 06:07:17 PM
I think it is for a half-day. You can try it, to check. Add for a simple timetable (with a few activities) and check if the timetable is still solvable.

To make for a full day, I think you can use the constraint activities occupy max time slots from selection, selected activities = all activities of the teacher with the needed activity tag, selected slots = first full day, max occupied =  the number you need. Add this constraint for each full day.
Title: Re: Max H_Daily_activity tag
Post by: Benahmed Abdelkrim on February 21, 2017, 06:19:40 PM
 OK! I'll try it.
Is this constraint optimized? Is that the speed is not altered?
Title: Re: Max H_Daily_activity tag
Post by: Liviu Lalescu on February 21, 2017, 06:25:29 PM
Quote from: Benahmed Abdelkrim on February 21, 2017, 06:19:40 PM
OK! I'll try it.
Is this constraint optimized? Is that the speed is not altered?

The constraint activities occupy max time slots from selection is highly optimized, you can safely ignore the decrease of speed warning.
Title: Re: Max H_Daily_activity tag
Post by: Benahmed Abdelkrim on February 21, 2017, 08:33:39 PM
 I think it is very useful to make the constraint: max_H_daily activity tag for a real day, because this change makes avoiding the misuse of: activities occupy max time slot from selection. Which is wasting time and speed. Thanks!
Title: Re: Max H_Daily_activity tag
Post by: Liviu Lalescu on February 21, 2017, 08:44:39 PM
OK, I'll think about it.
Title: Re: Max H_Daily_activity tag
Post by: Benahmed Abdelkrim on February 21, 2017, 08:53:44 PM
 Thank you very much mr. Liviu for your interest.
Title: Re: Max H_Daily_activity tag
Post by: Liviu Lalescu on February 22, 2017, 01:50:29 PM
I did it, please check thoroughly. I checked the new feature only a bit, more testing is necessary.
Title: Re: Max H_Daily_activity tag
Post by: Benahmed Abdelkrim on February 22, 2017, 04:26:57 PM
Thank you very much Mr.liviu, it is very nice of you. Ok! I will check the new feature.
Title: Re: Max H_Daily_activity tag
Post by: Liviu Lalescu on February 22, 2017, 05:05:12 PM
I added a new version, with same name, minor change. Maybe you can get it again.