FET Forum

FET Development => Custom FET for Particular Needs => Topic started by: henriquebelo on July 23, 2019, 12:43:48 PM

Title: New features Min gaps between an ordered pair of activity tags for all Students
Post by: henriquebelo on July 23, 2019, 12:43:48 PM
Hello,

How can I make a gap with this constraint with differents students set?

I used the tag EDF-5e6 with EDF-SEC and EDF-SEC with EDF-5e6.

The studends set are different so this don't work.

How can I solve this issue? In a simple way.

Best Regards


Title: Re: New features Min gaps between an ordered pair of activity tags for all Students
Post by: Liviu Lalescu on July 23, 2019, 01:15:52 PM
1) Could you please send me your file? Here, archived, if necessary, or privately by email.

2) The constraint min 1 gaps between ordered pair adds an extra hour between first tag and second tag. If I understand correctly, you need the tags only not to be overlapped on the same hour?

3) I think a solution for (2) is to add some dummy students sets or teachers, and add them in your data in a duplicate way, so that the activities of groups say 5B and 12A cannot overlap (add for instance dummy students set 5B_12A to both these groups). But I need to see your data.

4) There might be other methods using FET official. If everything else fails, I think it is easy for the algorithm to add for you a custom constraint (tedious to add in the interface for me).
Title: Re: New features Min gaps between an ordered pair of activity tags for all Students
Post by: henriquebelo on July 23, 2019, 01:56:57 PM
Thank your for your fast answer.

1) I send you by private message.

2) Exactly, I need the tags only not to be overlapped on the same hour. (how can I do this with dummy students set? I didn't understand)


I think there is a good new feature to add for future releases

A set of activities are not overlapping between an ordered pair of activity tags. No?

Best Regarsd



Title: Re: New features Min gaps between an ordered pair of activity tags for all Students
Post by: Liviu Lalescu on July 23, 2019, 02:01:48 PM
You need to send me an email, because forum private messages do not allow attachments. You can find my email address on the FET homepage or on my personal homepage.

I will explain you by adding the dummy subgroups in your file, if it is possible, and sending you back the file.

I will think of your proposal, if dummy subgroups cannot solve the problem reasonably.
Title: Re: New features Min gaps between an ordered pair of activity tags for all Students
Post by: Liviu Lalescu on July 23, 2019, 02:47:43 PM
Thank you for your suggestion! I think it needs to be implemented and I hope others can benefit as well.

It cannot work with dummy students sets, the idea fails, because you have too many subgroups and you have the students early constraints (I thought for instance you can add a dummy students set to 5A and the same students set (dummy) to 12A, and this way their activities cannot overlap. But: a) too many dummy students sets and b) bad idea, because you only want the specific activity tags not overlapping, not all the activities of 5A and 12A).

It is possible with activities not overlapping constraints, but you need to add too many constraints.

So, I think I will add the constraint "activity tags not overlapping". Or should it be "pair of activity tags not overlapping"? (the first variant allowing say 4 tags, and each pair between them cannot overlap, so it includes the second variant, if you only add 2 tags).

Other users, please let us know your opinion.
Title: Re: New features Min gaps between an ordered pair of activity tags for all Students
Post by: Volker Dirr on July 23, 2019, 03:40:44 PM
Maybe we will get other/better ideas if we know why you need that feature. So what is the idea? Why do you need a gap between them if they don't share teachers, students and rooms.
Title: Re: New features Min gaps between an ordered pair of activity tags for all Students
Post by: henriquebelo on July 23, 2019, 03:48:29 PM
We need this feature to use on gym activities.

We don't want a mix of young and old students on the gym activities at same time, because on the shower room is embarrassing situation for the younger students.

We can manage this situation but we need to make about 200 constrains...

Best Regards
Title: Re: New features Min gaps between an ordered pair of activity tags for all Students
Post by: Volker Dirr on July 23, 2019, 03:59:16 PM
ah. ok. i see.

in that case i think it is maybe a bad idea to do it that way, since it is difficult to use the gap slot. so it might be empty (or with pupils middle age only).

In that situation i guess is might be much better to do it different. How about a rule like
allow monday only sport for 5th/6th grade
tuesday only sport for 7th/8th grade
...
by that they are not mixed and there is also no unused empty gym duraing the gap.
Title: Re: New features Min gaps between an ordered pair of activity tags for all Students
Post by: Liviu Lalescu on July 23, 2019, 04:12:36 PM
No, Volker, he suggests constraint "activity tags not overlapping" (not min 1 gap between them). It should be a very useful constraint, also in maybe other cases in which you have two sets of activities and no activity from the first set can overlap with an activity from the second set, but the activities from the first set may overlap, and the activities from the second set may overlap.

I think there was at least another user suggesting this in the past, but cannot remember for sure.
Title: Re: New features Min gaps between an ordered pair of activity tags for all Students
Post by: Volker Dirr on July 23, 2019, 04:23:23 PM
ok. but as long as the constraint is not present (not easy to enter) my suggestion might still be a possible solution to solve the problem if he needs results right now.
Title: Re: New features Min gaps between an ordered pair of activity tags for all Students
Post by: Liviu Lalescu on July 23, 2019, 04:37:02 PM
I have a design problem: in the shortcut buttons in Time tab, there misses the "Tags" constraints. Should I:

1) Add a button "Misc", and it shows "Break" and "A set of activity tags are not overlapping", or

2) Add "A set of activity tags are not overlapping" in the "Activities" section of time constraints, after "A set of activities are not overlapping"?
Title: Re: New features Min gaps between an ordered pair of activity tags for all Students
Post by: henriquebelo on July 23, 2019, 04:48:10 PM
The 2) suggestion is the right answer for our problem, that we can manage with 2 activities tags.
Title: Re: New features Min gaps between an ordered pair of activity tags for all Students
Post by: Liviu Lalescu on July 23, 2019, 11:38:41 PM
I made it, there is a snapshot here for now: https://lalescu.ro/liviu/Backup-fet/

Please report any bugs.

I will test some more later today.
Title: Re: New features Min gaps between an ordered pair of activity tags for all Students
Post by: Liviu Lalescu on July 24, 2019, 04:26:29 PM
I corrected some things. I have put a new snapshot in the usual test location ( https://lalescu.ro/liviu/fet/download/test/ ) and announced it on the snapshots section of the forum.

Thank you for the suggestion!
Title: Re: New features Min gaps between an ordered pair of activity tags for all Students
Post by: Liviu Lalescu on July 27, 2019, 05:08:46 PM
I just released the new official version 5.39.0, with this constraint. Thank you for your suggestion and testing!
Title: Re: New features Min gaps between an ordered pair of activity tags for all Students
Post by: henriquebelo on July 27, 2019, 06:05:08 PM
Great, is impressive How fet can manage our constrains.

Many thanks
Henrique
Title: Re: New features Min gaps between an ordered pair of activity tags for all Students
Post by: uni_instructor on November 20, 2020, 12:29:48 PM
Dear Liviu,

I discovered the rather  "new" function "Modify teachers min gaps between ordered pair of activity tags" recently.
I tried it a little bit and its options but it does not seem to work as I am expecting.

Since I have sometimes problems creating time tables containing activities with different duration ( e.g. 6 hours vs. 2 hours)  with a defined minimum gap between both activities, I wanted to use that constraint to achieve an automatic minimum gap between such activities.
Therefore I defined tow different tags "LONG" & "SHORT" and tagged activities with a long or short duration.

Then I added the rule

Time constraint
All teachers must respect the minimum gaps between an ordered pair of activity tags
Weight (percentage)=100%
First activity tag=LONG
Second activity tag=SHORT
Minimum gaps=4


I set Minimum gaps=4 just to see a visible effect of that constraint.

I was expecting that FET creates a time table where two activities  (#1  tagged "short" , #2 tagged "long") are separated by at least 4 hours.
But most generated time tables show gaps < 4 hours!

I will send you a demo FET-file. (created by Version: 5.47.0 (September 2020))

Maybe you can reproduce that behavior.

Best regards

UI










Title: Re: New features Min gaps between an ordered pair of activity tags for all Students
Post by: Liviu Lalescu on November 20, 2020, 02:23:12 PM
Dear UI,

1) You need to add two constraints, one with (LONG, SHORT) and the other with (SHORT, LONG). But I see you added this in your private file.

2) In your private file, the last teacher has activities only with LONG.