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.

abdeljalil elghazoui

greetings
After the workout property the maximum number of mornings or afternoon per week

It shows that it is better to change to a minimum of morning or afternoon per week
Or add another property: a minimum of morning or afternoon per week

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

Liviu Lalescu

Are you sure you really need this? It is very difficult and error prone from me.

khalafi

#2
What's the interest of changing constraints " max number of morning or afternoon a week," by constraints "number min morning or afternoon a week."

What we want here is to limit the number of morning or afternoon per week for a teacher not to impose a minimum number that will make the generation of timetables harder.

In addition it may produce timetables for teachers with all activities in the afternoon or in the morning.

Liviu Lalescu

No, khalafi, he has good reasons. It is useful, but it is very hard to implement.

khalafi

For a teacher who will teach 5 half days , with a maximum balance between the number of mornings and afternoons.
We have two solutions :

--> We fix the maximum number of afternoon 3 which mean we will get one of the following: ( 2 mornings and 3 afternoon) , ( 3 mornings and two afternoons) , ( 4 mornings and 1 pm) or ( 5 mornings and afternoons 0 ) .

--> We fixed the minimum number mornings at 2 min which mean we will get one of the following: ( 2 mornings and 3 afternoon) , ( 3 mornings and two afternoons) , ( 4 mornings and 1 afternoon) or ( 5 mornings and afternoons 0 ) .

In both cases we obtain the same results , so why get them through a difficult method to implement.

I apologize for my insistence but if I did not understand some things , I hope you will explain.

Liviu Lalescu

No, it is different, because a morning/afternoon can have only 2 hours, or as much as 4. It is like min versus max hours daily.

khalafi

#6
In the example I gave I assumed that the teacher work five days plus a free day .

Anyway what to do is add constraints " number min mornings / afternoons a week."

But in my opinion it is not wise to remove constraints " max number of mornings / afternoons a week."


Liviu Lalescu

#7
Quote from: khalafi on July 13, 2015, 04:35:55 PM
But in my opinion it is not wise to remove constraints " max number of mornings / afternoons a week."

Of course.

Liviu Lalescu

With max 3 mornings and max 3 afternoons, the user might get 3 mornings and 0 afternoons. With additional min 1 mornings and min 1 afternoons, it is beter.

abdeljalil elghazoui

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

Liviu Lalescu

#10
Quote from: jillali elghazoui on July 13, 2015, 06:12:27 PM
Im ok with you liviu

So, jillali, as in my first reply here, please tell me: Are you sure you really need this? It seems very difficult and error prone for me to implement. Is it really useful to Moroccan users?

Liviu Lalescu

#11
If you want the teacher to work min one morning and/or one afternoon, you can use the constraint activities occupy max time slots from selection. Or do you intend to add this constraint for more than min 1 morning/afternoon?

This constraint activities occupy max time slots from selection permits you to specify the minimum number of hours with activity the users must have in the morning/afternoon.

abdeljalil elghazoui

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

Liviu Lalescu

OK, sorry, of course.

About the request: don't forget that you have the constraint teacher(s) min days per week for half-days, which you may find useful.

abdeljalil elghazoui

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
"لا تهمني مشاكل العالم المهم أن لا أكون جزءا مساهما فيها"