FET Forum

FET Support (International) => Italian / Italiano => Topic started by: satsriakal on September 25, 2020, 03:56:34 PM

Title: Orari simili per i pendolari
Post by: satsriakal on September 25, 2020, 03:56:34 PM
Buongiorno,
come faccio a inserire vincoli per due o più docenti pendolari che vorrebbero viaggiare insieme?

Vorrei generare degli orari in cui due o più docenti dovrebbero avere orari in cui le prime lezioni cominciano alla stessa ora e le ultime della giornata terminano alla stessa ora.

C'è un modo per inserire un vincolo simile?
saluti
BB
Title: Re: Orari simili per i pendolari
Post by: Liviu Lalescu on September 25, 2020, 04:03:14 PM
Buongiorno,

Scusi per l'inglese:

You could add a constraint activities occupy max time slots from selection: the activities of both teachers, selected slots = all slots of the week, max occupied = max(duration teacher1, duration teacher2). It requests more than you want and/or a slightly different thing, but it might work.
Title: Re: Orari simili per i pendolari
Post by: satsriakal on September 25, 2020, 04:10:05 PM
Hi
thanks a lot for your answer.
Actually I didn't understand well...can you explain me better, please?
Title: Re: Orari simili per i pendolari
Post by: Liviu Lalescu on September 25, 2020, 04:15:54 PM
Say teacher T1 has 10 activities with duration 12 hours in total. T2 has 8 activities with duration 11 hours in total. You have a week of 6 days by 7 hours per day.

Add a constraint activities occupy max time slots from selection. The constraint has a set of activities: the 10 activities of T1 + the 8 activities of T2. The constraint has a list of selected slots: 6*7 = all the 42 of the week (selected with X / red if you use colors). The constraint has a value of max occupied slots from these 42, this value = max (12, 11) = 12.

In this way, teachers T1 and T2 will occupy at most 12 hours of the week together.

It is not exactly what you need, but it might work.

Please let me know.
Title: Re: Orari simili per i pendolari
Post by: satsriakal on September 25, 2020, 04:30:13 PM
I'm going to illustrate better my trouble:

let's suppose I have 5 days a week, 6 hours a day.

T1 (18 hours) and T2 (18 hours). It doesn't matter how the 36 hours will be spread over the week.
I need just that they start together and finish together.
For example: Monday 1st hour is 8.00 for both T1 and T2, last hour is 11.00 for both; Thursday 1st hour is 9.00 for both and last hour is 13.00 for both, ....and so on
Title: Re: Orari simili per i pendolari
Post by: Liviu Lalescu on September 25, 2020, 04:35:53 PM
Yes, I think I understood from your first post. Your request was asked for by other users as well.

My suggested approach is a bit of a trick, which might work in practice.

It might be possible to implement exactly what you need, but it sure looks complicated. It might be possible to do as a custom version and if other users suggest, maybe added in the official FET.
Title: Re: Orari simili per i pendolari
Post by: satsriakal on September 25, 2020, 04:43:54 PM
Thanks! The solution you proposed to me it's a little more than requested since the two teachers will have exaclty the same slots.

Thanks it would be welcome as a specific feature!
it would help car-sharing...especially in future covid-free time (hope soon)
Title: Re: Orari simili per i pendolari
Post by: Giggino on September 10, 2022, 09:55:21 AM
This trick is really great!