FET Forum

FET Support (English) => General Stuff => Topic started by: Dr. T. Patel on December 13, 2021, 10:29:32 AM

Title: Constraints min gaps between activities
Post by: Dr. T. Patel on December 13, 2021, 10:29:32 AM
Dear Liviu,
Greetings of the day,

I would like to express my sincere thanks for updating the virtual room notion for assigning more than two-room simultaneously. It is a great relief for my timetable preparation. A very huge thanks for the same.

I am looking for one more option in the future update, I have more than 200 teachers in timetable preparation, there is an option 'Constraints min gaps between activities'.  I am doing this manually for all teachers one by one to maintain a 1 hr gap between any activities like a lecture, tutorial, and practice. Is it possible to do it with a single click like Constrain will be obeyed for all teachers.
Thank you.
Regards,
Dr. Patel
Title: Re: Constraints min gaps between activities
Post by: Liviu Lalescu on December 13, 2021, 12:08:23 PM
Dear Dr. Patel,

I am glad you like it!

Do you mean:

1) 1 hour gap between a lecture and a tutorial for each teacher? You could use two constraints teacher(s) min gaps between ordered pair of activity tags,

or

2) 1 hour gap between each lecture for each teacher?
Title: Re: Constraints min gaps between activities
Post by: Dr. T. Patel on December 14, 2021, 04:16:21 AM
Dear Liviu Lalescu,

Greetings of the day,

I have tried but not been able to get the result as required because,
I have three activities like, Lecture, Tutorial, and Practical. The lecture and tutorial are only one-hour duration each. Hence constraints are working for it.
However, Practice are having different sets like 2,3, and 4 hours hence not able to use the constraints for example if I set Max practical duration 4 hours then two practicals for the same teachers who are sharing the courses come together like 2+2 hours simultaneously in practical without a 1-hour gap. Hence my purpose is not solved.

Can we get one to constrain in the future UPDATE where we get a common that min gap between a set of activities like Lecture, Tutorial and Practical ?

Thank you.

Regards,
Dr. Patel
Title: Re: Constraints min gaps between activities
Post by: Liviu Lalescu on December 14, 2021, 08:49:46 AM
Hello, Dr. Patel,

Please see my question variants (1 and 2) and tell me which one you need.

Later edit: I think you need my variant (2). So my suggested constraint in (1) does not apply.

I am a bit reluctant to add your suggested constraint, I think it is increasing the complexity of the program without being critically needed. I will think about it and maybe add it in the TODO list, if you confirm that you need my variant (2).

Please see also https://lalescu.ro/liviu/fet/forum/index.php?topic=5045.0 . It is the same problem?
Title: Re: Constraints min gaps between activities
Post by: Dr. T. Patel on December 15, 2021, 10:12:28 AM
Dear Liviu Lalescu,

Greetings of the day,

Right now I am using option 1 by considering each teacher which is quite a time-consuming and I am looking for option 2) a 1-hour gap between each activity (lecture, tutorial, and practice) for each teacher? In a min1 hour gap teacher can prepare for the next lecture/tutorial/practice.

I am also looking for a one more option in FET. For all teachers in a particular time slot like morning, 8.00 am -9.00 am maximum allowed class. Teachers are not comfortable with a morning class on all 5 days/week in some cases. So I am doing it manually if such cases are found.

Thank you.

Regards,
Dr. Patel
Title: Re: Constraints min gaps between activities
Post by: Liviu Lalescu on December 15, 2021, 10:34:45 AM
Dear Dr. Patel,

It is still unclear to me what do you intend. Please let me know if:

- Do you want minimum 1 hour gap between each activity tagged lecture and another activity tagged lecture. The same for tutorial and practice

?

I mean you allow Lecture Tutorial Lecture Practice Tutorial, but not Lecture Lecture?

So, do you want the constraint for each tag, not for a pair of different tags?

If you want for a pair of different tags, it is already added, teachers min gaps between ordered pair of activity tags. Please let me know, so I don't work on it without use.

Please let me know as soon as possible, so I can begin working on this, if this is like that.

For your new question, please use the constraint teachers interval max days per week.
Title: Re: Constraints min gaps between activities
Post by: Dr. T. Patel on December 15, 2021, 03:02:32 PM
Dear Liviu Lalescu,

Greetings of the day,

I have attached a screenshot for your ready reference. I am looking for a one-click constrain. Right now I am doing it by Constraints min gaps between activities for each faculty member.

(Your response-For your new question, please use the constraint teacher's interval max days per week- I tried it, Its working-Thank you :) :))

Thank you.

Regards,
DR. Patel
Title: Re: Constraints min gaps between activities
Post by: Liviu Lalescu on December 15, 2021, 03:12:48 PM
Hello, Dr. Patel,

I understand. You need one gap between all the activities of a teacher.

If you wanted between (L) and (T), you could have used two constraints teachers min gaps between ordered pair of activity tags. Please see this constraint and let me know what you think about it. I hope you will understand it's use if you see it more carefully. Please see my attached file as an example for this constraint.

If all your activities have at least one tag (T), (L), or (P), you could use 6 constraints like the above. Then I would need to implement the constraint teachers min gaps between activity tag, for you to add 3 more constraints. Please let me know soon if this is correct and I'll try to do this.
Title: Re: Constraints min gaps between activities
Post by: Dr. T. Patel on December 15, 2021, 06:07:35 PM
Dear Liviu Lalescu,

Greetings of the day,

I have attached the activities file. How to do it, please suggest a possible solution.

Thank you.

Regards,
Dr. Patel
Title: Re: Constraints min gaps between activities
Post by: Liviu Lalescu on December 15, 2021, 06:12:23 PM
Hello, Dr. Patel,

I am sorry, but I do not understand. I showed you my file as an example, and I will implement the constraint teachers/students min gaps between activity tag.
Title: Re: Constraints min gaps between activities
Post by: Dr. T. Patel on December 15, 2021, 06:22:14 PM
Dear Liviu Lalescu,

I got your point and perfectly working, but if activity gas has different hours (Practice (P) 2+2, 3+3, and 4 then it is not working.

Can you please configure the file which I have shared?

Thank you.

Regards,
Dr. Patel
Title: Re: Constraints min gaps between activities
Post by: Liviu Lalescu on December 15, 2021, 06:52:32 PM
Hello, Dr. Patel,

I am sorry, but I do not understand.
Title: Re: Constraints min gaps between activities
Post by: Dr. T. Patel on December 15, 2021, 07:06:42 PM
Dear Liviu Lalescu,
Can we have an option something like that as attached in the file?
Thank you.
Regards,
Dr. Patel
Title: Re: Constraints min gaps between activities
Post by: Liviu Lalescu on December 15, 2021, 07:11:03 PM
Hello, Dr. Patel,

No, I think this is not possible. You need to add more constraints, for different pairs of tags (this is implemented) and for the same tag (I will implement this type of constraint).
Title: Re: Constraints min gaps between activities
Post by: Dr. T. Patel on December 15, 2021, 07:15:32 PM
Dear Liviu Lalescu,
Thank you.

Regards,
Dr. Patel
Title: Re: Constraints min gaps between activities
Post by: Liviu Lalescu on December 15, 2021, 08:26:24 PM
You are welcome, Dr. Patel!

About your last screenshot: I am sorry, but it is not possible directly. You need to add more constraints, one for each pair of tags. But it is very easy to add 6+3 constraints (if you have 3 tags, there are 3*2 constraints for different tags and 3 constraints for the same tag).

PS: You can call me Liviu.
Title: Re: Constraints min gaps between activities
Post by: Dr. T. Patel on December 16, 2021, 04:04:03 AM
Dear Liviu Lalescu,

Greetings of the day,

I am using different pairs of tags (already implemented) and for the same tag, request you to include it in future FET updates. It will serve the purpose :) :).

Thank you.

Regards,
Dr. Patel
Title: Re: Constraints min gaps between activities
Post by: Liviu Lalescu on December 16, 2021, 12:18:39 PM
Hello, Dr. Patel,

I did this, please get the snapshot from here: https://lalescu.ro/liviu/fet/forum/index.php?topic=5048.msg28076#msg28076

Please let me know.
Title: Re: Constraints min gaps between activities
Post by: Liviu Lalescu on December 18, 2021, 05:04:44 PM
Dear Dr. Patel,

The new official FET-6.2.5 version is released. Thank you for your suggestions!
Title: Re: Constraints min gaps between activities
Post by: sasbland on December 23, 2021, 09:34:49 AM
Hi Liviu, sorry to jump in. I have the same problem.

Our new timetable has a period of 30 mins and each lesson is 4 periods (2 hours). I would like a minimum gap of 1 period (30 mins) between every lesson. The problem is all my lessons have the same activity tag called lesson. How can I implement this for the whole timetable?

Many thanks.
Title: Re: Constraints min gaps between activities
Post by: sasbland on December 23, 2021, 03:13:08 PM
Actually I think I found the answer now. It's the min gap between an activity tag isn't it. Thanks for such a great software anyway.
Title: Re: Constraints min gaps between activities
Post by: Liviu Lalescu on December 23, 2021, 03:15:57 PM
You are welcome! Thank you!