the maximum number of mornings per week to liviu

Started by abdeljalil elghazoui, July 13, 2015, 03:07:45 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Liviu Lalescu

Quote from: jillali elghazoui on July 14, 2015, 12:43:25 PM
There is a difference between teachers
There are those who go to work in the morning and again after disappearing
There are those who serve twice in the morning and another in the afternoon
Etc .....
There are those who serve four times in the morning or the afternoon, and three times versa

I'm sorry, but I do not understand. Did you see the tricks I told you, which might help you?

How many min mornings/afternoons do you intend to have?

abdeljalil elghazoui

"لا تهمني مشاكل العالم المهم أن لا أكون جزءا مساهما فيها"

Liviu Lalescu

It is possible. Please see the attached file, the last two constraints, for teacher phil1. I added also comments to them.

Unfortunately, you need to add like this for each teacher.

Please let me know what you think.

abdeljalil elghazoui

"لا تهمني مشاكل العالم المهم أن لا أكون جزءا مساهما فيها"

abdeljalil elghazoui

"لا تهمني مشاكل العالم المهم أن لا أكون جزءا مساهما فيها"

Liviu Lalescu


Liviu Lalescu

Hey, there is a much better variant, better for the algorithm and simpler for the user to add.

See attached file, last 3 constraints for teacher phil1. He works maximum 4 mornings/afternoons, so I added minimum 5 days per week (which is for FET days).

So, if your teacher works max 3 mornings/afternoons per week, add min 4 working days per week, which is for FET days (half days).

Please let me know.

abdeljalil elghazoui

Merci beaucoup de votre interaction
Ça marche bien
"لا تهمني مشاكل العالم المهم أن لا أكون جزءا مساهما فيها"

Liviu Lalescu

Hmm, there may be a problem with min FET days per week, from my previous post:

Say that the user can work max 3 mornings/afternoons, and you add min FET days per week = 4. Then the user cannot work for instance 2 mornings and one afternoon. He needs to work 4 FET days.

Please tell me, will this be a problem in practice, for your cases? If yes, I will need to think to add min mornings/afternoons per week, even if it looks difficult.

abdeljalil elghazoui

The important thing for us is that the activity will not be divided into half-days, morning or afternoon
following your exenple tr1 must work  2 morning and 1 afternoon or 1 morning and 2 afternoon
The teachers who have to work 20 hours must work  2 times min morning and 2 times min afternoon
"لا تهمني مشاكل العالم المهم أن لا أكون جزءا مساهما فيها"

Liviu Lalescu

Quote from: jillali elghazoui on July 14, 2015, 07:33:23 PM
The teachers who have to work 20 hours must work  2 times min morning and 2 times min afternoon

So you can do this with max mornings/afternoons 3 per week and min days per week 5.

Please let me know if you encounter problems, and I'll think some more to solve them.

khalafi

#26
For the teachers who have to work 20 hours it is unnecessary to add the constraint "min days per week 5" for as they work 4 hours a day it is hollowing they will need five days of work to complete the 20 hours.

I think we can do this with "max mornings/afternoons 3 per week" and "max days per week 5" They then have one day off a week..

Liviu Lalescu

#27
jillali, please let me know if you still need the constraint min mornings/afternoons per week implemented in FET, and if yes, I'll try to think of a good solution. It is not easy, but if necessary I'll try to do it.

abdeljalil elghazoui

I will not be tiring for you
But if you can do it;thes is important characteristic
"لا تهمني مشاكل العالم المهم أن لا أكون جزءا مساهما فيها"

Liviu Lalescu

OK, I'll try.

Please let me know: May I assume that this file will have max gaps for teachers = 0 and min hours daily for teachers = 2 with allow empty days = true?