Giorno libero a scelta tra due opzioni

Started by Giovanni Anghileri, September 06, 2016, 03:35:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Giovanni Anghileri

Buongiorno,

come posso dire che una persona può avere il giorno libero a scelta tra due?

Grazie mille

Liviu Lalescu

I see two possibilities:

1. Add a dummy activity with duration n_hours_per_day, preferred times the two days.

or

2. Use n_days_per_week-2 constraints activities occupy max time slots from selection to ensure that the teacher has activities in the other days.

Lizio

Or, is it possible to set 5 days work max and two constraints o unavailable hours for the two days with 50% weight or even more?


Liviu Lalescu

Quote from: Lizio on September 06, 2016, 03:55:08 PM
Or, is it possible to set 5 days work max and two constraints o unavailable hours for the two days with 50% weight or even more?

Not available is only possible with 100%. Preferred times is possible with <100%, but I don't understand exactly how to do your method.

Lizio

I thought it was possible to set the percentage of unavailable hours for a teacher to a value less than 100%.

If it were it would have been possible to do in this way:

Set 6 days of lessons per week
Set 5 days work max per week for theachers
Set all hours of 1st day unavailable for that teacher with a weight of 80%
Set all hours of 2nd day unavailable for that teacher with a weight of 80%

But if the weight must be 100% and the program does not accept a lower value, my idea is impossible.

Liviu Lalescu

Quote from: Lizio on September 06, 2016, 04:30:59 PM
But if the weight must be 100% and the program does not accept a lower value, my idea is impossible.

You can add activities preferred times with a selected teacher, with <100% weight.

niobee

Quote from: Giovanni Anghileri on September 06, 2016, 03:35:07 PM

come posso dire che una persona può avere il giorno libero a scelta tra due?


Io opterei come ti consigliavano creando un'attività di 5 ore chiamata giorno libero, dicendo nelle opzioni che deve iniziare preferibilmente alle 8:00 del giorno 1 o 2.. (le subattività di una selezione iniziano in un insieme di ore preferenziali) così nel calcolo la mette o nell'uno o nell'altro giorno.. dovrebbe funzionare bene

Patty

Lizio

Yes!

In fact that is the method I use, I set an activity for all hours of 1 day and I call it "Giorno libero" then I set constraints to make it mandatory in a single day or in two alternative days with different percentages (first choice and secon choice) or whenever.

But I have a difficulty:
If I have 6 hours per day, but saturday onli 5, that is a problem... I have set the 6th hour of saturday not available for all activities, but in this way nobody will have his free day on saturday...
Probably the only way is to set that hour not available for students and I must set a different constraint for each year (I didn't find a way to say to the program "all students")

Liviu Lalescu

Quote from: Lizio on September 06, 2016, 04:50:23 PM
Probably the only way is to set that hour not available for students and I must set a different constraint for each year (I didn't find a way to say to the program "all students")

Yes.