Constraints min gaps between activities

Started by Dr. T. Patel, December 13, 2021, 10:29:32 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dr. T. Patel

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

Liviu Lalescu

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?

Dr. T. Patel

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

Liviu Lalescu

#3
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?

Dr. T. Patel

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

Liviu Lalescu

#5
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.

Dr. T. Patel

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

Liviu Lalescu

#7
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.

Dr. T. Patel

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

Liviu Lalescu

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.

Dr. T. Patel

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

Liviu Lalescu

Hello, Dr. Patel,

I am sorry, but I do not understand.

Dr. T. Patel

Dear Liviu Lalescu,
Can we have an option something like that as attached in the file?
Thank you.
Regards,
Dr. Patel

Liviu Lalescu

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).

Dr. T. Patel

Dear Liviu Lalescu,
Thank you.

Regards,
Dr. Patel