FET Forum

FET Development => Suggestions => Topic started by: gesamtschule on September 28, 2008, 10:07:29 AM

Title: A free day but never on Monday
Post by: gesamtschule on September 28, 2008, 10:07:29 AM
We have the wish form on teacher, that the only want to work 4 days a week. For her it was unimportant at which day she has a free day, except that the definitely want to work on Monday. Any ideas how to realize this?
Title: Re: A free day but never on Monday
Post by: Liviu Lalescu on September 28, 2008, 10:09:47 AM
The easiest way, but not perfect: choose an activity of this teacher and constrain it to be on Monday. You might obtain a solution - but in some cases you are excluding some solutions.

It might work, though.
Title: Re: A free day but never on Monday
Post by: gesamtschule on September 28, 2008, 10:15:38 AM
This was our solution to, because we have only one teacher for which this becomes necessary this is indeed a solution which doesn't made the solution room to small.
But it would be made the program easier to use if it become possible to define such constraint directly.
Title: Re: A free day but never on Monday
Post by: Liviu Lalescu on September 28, 2008, 10:30:32 AM
It would be difficult and I cannot express this constraint into words, to give it a FET notation (I mean how to name the new constraint).
Title: Re: A free day but never on Monday
Post by: gesamtschule on September 28, 2008, 02:46:29 PM
Well you could create a constraint preferred time for a teacher, where we could define the Monday, analog to preferred time for an activity. This gives fet more freedom to find a solution.
But if this become difficult to realize, we must use your idea to fix an activity on Monday.
Title: Re: A free day but never on Monday
Post by: Liviu Lalescu on September 28, 2008, 03:06:51 PM
QuoteWell you could create a constraint preferred time for a teacher, where we could define the Monday, analog to preferred time for an activity. This gives fet more freedom to find a solution.
But if this become difficult to realize, we must use your idea to fix an activity on Monday.

It is not the same. To put an activity on Monday is simple, to put any activity from a set on Monday is not easy.

Maybe you could also try with making a not available day for this teacher, your choice: Tuesday, Wed. or Thu or Fri.
Title: Re: A free day but never on Monday
Post by: Volker Dirr on September 28, 2008, 03:43:36 PM
I will be easy if that teacher teach an activity that is splitted into 4 period per week and min n day constraint.
Just use a constraint that one out of that subactivities must be scheduled on Monday.


If that teacher have activities with less then 4 periods per week, then try it with an activity that have duration 3.
Title: Re: A free day but never on Monday
Post by: Liviu Lalescu on September 28, 2008, 04:04:27 PM
QuoteI will be easy if that teacher teach an activity that is splitted into 4 period per week and min n day constraint.
Just use a constraint that one out of that subactivities must be scheduled on Monday.


If that teacher have activities with less then 4 periods per week, then try it with an activity that have duration 3.

Yes, exactly, good suggestion. It is the same for FET which component you select, from 4 components. The algo has the same speed.

Also, you might choose a day to make a teacher not available (not nice solution).
Title: Re: A free day but never on Monday
Post by: Chafik Graiguer on September 28, 2008, 04:08:07 PM
-Define a dummy activity for this teacher: Ad
- Define Maximum days per wwk for this teacher = 4
-Define constraint that Ad must be scheduled on Monday
Since activity Ad will be scheduled on monday, FET has no other choice than putting additional activities on monday also
then FET will look for 3 other day !!!

This assume that (number of REAL activities) + (Ad) doesnot exceed Maximum hours daily for this teacher
For example,  I can constraint this dummy activity  into lunch break for example
Title: Re: A free day but never on Monday
Post by: Liviu Lalescu on September 28, 2008, 04:42:24 PM
Quote-Define a dummy activity for this teacher: Ad
- Define Maximum days per wwk for this teacher = 4
-Define constraint that Ad must be scheduled on Monday
Since activity Ad will be scheduled on monday, FET has no other choice than putting additional activities on monday also
then FET will look for 3 other day !!!

This assume that (number of REAL activities) + (Ad) doesnot exceed Maximum periods per day for this teacher
For example,  I can constraint this dummy activity  into lunch break for example

Brilliant! Congrats on nice tricks!

Maybe he also needs to add min hours daily constraint.

But you cannot put this activity into Lunch break, because no activity can be there. But as a last resort he can increase number of hours per day and make other slots not available as needed.
Title: Re: A free day but never on Monday
Post by: Volker Dirr on September 28, 2008, 04:49:06 PM
The dummy activity trick is also nice, but be careful:
1. If that teacher teach only a few hours per week, then he might get a gaps problem. Solution: just add that dummy activity not into a special slot, just use constraint preferd day.
2. You might get problems if the teacher teach many hours per week and if you also have a max hours per day constraint.
Title: Re: A free day but never on Monday
Post by: Chafik Graiguer on September 28, 2008, 04:55:26 PM
Quote
Quote

But you cannot put this activity into Lunch break, because no activity can be there. .
I meant a lunch break witch is defined only for students or rooms not fir teachers
This is what actualy I did, when I tried to tweak official FET version settings, I defined lunch break for rooms only, that is making them unavailable!!

Quote
2. You might get problems if the teacher teach many hours per week and if you also have a max hours per day constraint.
Yes
We need to know exactly how much hours  per week teacher has

Title: Re: A free day but never on Monday
Post by: gesamtschule on September 29, 2008, 08:41:34 PM
Well my experience with dummy activities are really ambivalent. You could solve a lot of problems with it, but you get mostly new ones.  In this case the teacher has not very much hours a week (This is a normal situation at this school). So we defined that every teacher must have at least 2 hours a day. So in this case you must for the Monday define that it must be at least 3 hours. So the number of constraints increase rapidly.

Never the less I respect that Liviu said it is not easy to implement - so we must live with the workarounds.  I prefer to start in such a case a detailed analysis and then use one of the suggested solutions.
Title: Re: A free day but never on Monday
Post by: Volker Dirr on September 29, 2008, 10:00:32 PM
What is about the subactivity trick? Or is that teacher only teaching activities with less then 4 periods?
Title: Re: A free day but never on Monday
Post by: gesamtschule on September 30, 2008, 08:23:32 PM
Good hint, this could work. We will try it next time. It doesn't work in every situation but I hope in such special case.

Just to make it clear: I like FET and I'm really glad to work with it. All suggestions are send to make a good product better.
Title: Re: A free day but never on Monday
Post by: Liviu Lalescu on September 30, 2008, 08:31:57 PM
QuoteGood hint, this could work. We will try it next time. It doesn't work in every situation but I hope in such special case.

Just to make it clear: I like FET and I'm really glad to work with it. All suggestions are send to make a good product better.

Thank you for appreciation! Thank you also for suggestions! Unfortunately, there are some suggestions which are a bit too difficult to implement.
Title: Re: A free day but never on Monday
Post by: Volker Dirr on September 30, 2008, 08:39:04 PM
QuoteJust to make it clear: [...] All suggestions are send to make a good product better.

Of course. That is also the whole purpose of a forum. Discuss about things and learn. I like to learn here. Just don't be upset about my way to argue. I do it sometimes in an extreme way, just get things more clear (even the mid is maybe the correct answer.)
Title: Re: A free day but never on Monday
Post by: Liviu Lalescu on October 16, 2012, 09:53:54 AM
Reviving an old topic: you can use the constraint activities occupy max time slots from selection for this request, to force the teacher to have at least one hour (or more) on Monday.