FET Forum

FET Support (International) => Moroccan Arabic / (العربية (المغربية => Topic started by: abdeljalil elghazoui on July 13, 2015, 03:07:45 PM

Title: the maximum number of mornings per week to liviu
Post by: abdeljalil elghazoui on July 13, 2015, 03:07:45 PM
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
Title: Re: the maximum number of mornings per week to liviu
Post by: Liviu Lalescu on July 13, 2015, 03:33:11 PM
Are you sure you really need this? It is very difficult and error prone from me.
Title: Re: the maximum number of mornings per week to liviu
Post by: khalafi on July 13, 2015, 03:34:26 PM
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.
Title: Re: the maximum number of mornings per week to liviu
Post by: Liviu Lalescu on July 13, 2015, 03:57:44 PM
No, khalafi, he has good reasons. It is useful, but it is very hard to implement.
Title: Re: the maximum number of mornings per week to liviu
Post by: khalafi on July 13, 2015, 04:10:50 PM
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.
Title: Re: the maximum number of mornings per week to liviu
Post by: Liviu Lalescu on July 13, 2015, 04:20:11 PM
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.
Title: Re: the maximum number of mornings per week to liviu
Post by: khalafi on July 13, 2015, 04:35:55 PM
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."

Title: Re: the maximum number of mornings per week to liviu
Post by: Liviu Lalescu on July 13, 2015, 05:13:07 PM
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.
Title: Re: the maximum number of mornings per week to liviu
Post by: Liviu Lalescu on July 13, 2015, 05:34:44 PM
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.
Title: Re: the maximum number of mornings per week to liviu
Post by: abdeljalil elghazoui on July 13, 2015, 06:12:27 PM
Im ok with you liviu
Title: Re: the maximum number of mornings per week to liviu
Post by: Liviu Lalescu on July 13, 2015, 06:14:19 PM
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?
Title: Re: the maximum number of mornings per week to liviu
Post by: Liviu Lalescu on July 13, 2015, 06:31:04 PM
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.
Title: Re: the maximum number of mornings per week to liviu
Post by: abdeljalil elghazoui on July 13, 2015, 07:02:42 PM
I writh you later
Title: Re: the maximum number of mornings per week to liviu
Post by: Liviu Lalescu on July 13, 2015, 08:58:24 PM
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.
Title: Re: the maximum number of mornings per week to liviu
Post by: abdeljalil 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
Title: Re: the maximum number of mornings per week to liviu
Post by: Liviu Lalescu on July 14, 2015, 02:47:43 PM
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?
Title: Re: the maximum number of mornings per week to liviu
Post by: abdeljalil elghazoui on July 14, 2015, 03:00:06 PM
min
one mornings    /   one afternoons
Title: Re: the maximum number of mornings per week to liviu
Post by: Liviu Lalescu on July 14, 2015, 03:57:15 PM
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.
Title: Re: the maximum number of mornings per week to liviu
Post by: abdeljalil elghazoui on July 14, 2015, 04:09:52 PM
15 min
Title: Re: the maximum number of mornings per week to liviu
Post by: abdeljalil elghazoui on July 14, 2015, 04:30:52 PM
Merci
Ça marche bien
Title: Re: the maximum number of mornings per week to liviu
Post by: Liviu Lalescu on July 14, 2015, 04:33:25 PM
Avec plaisir :-)
Title: Re: the maximum number of mornings per week to liviu
Post by: Liviu Lalescu on July 14, 2015, 04:58:51 PM
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.
Title: Re: the maximum number of mornings per week to liviu
Post by: abdeljalil elghazoui on July 14, 2015, 05:08:24 PM
Merci beaucoup de votre interaction
Ça marche bien
Title: Re: the maximum number of mornings per week to liviu
Post by: Liviu Lalescu on July 14, 2015, 06:09:56 PM
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.
Title: Re: the maximum number of mornings per week to liviu
Post by: abdeljalil elghazoui on July 14, 2015, 07:33:23 PM
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
Title: Re: the maximum number of mornings per week to liviu
Post by: Liviu Lalescu on July 14, 2015, 07:51:30 PM
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.
Title: Re: the maximum number of mornings per week to liviu
Post by: khalafi on July 14, 2015, 11:28:57 PM
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..
Title: Re: the maximum number of mornings per week to liviu
Post by: Liviu Lalescu on July 15, 2015, 01:18:14 PM
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.
Title: Re: the maximum number of mornings per week to liviu
Post by: abdeljalil elghazoui on July 15, 2015, 03:30:08 PM
I will not be tiring for you
But if you can do it;thes is important characteristic
Title: Re: the maximum number of mornings per week to liviu
Post by: Liviu Lalescu on July 15, 2015, 03:39:51 PM
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?
Title: Re: the maximum number of mornings per week to liviu
Post by: abdeljalil elghazoui on July 15, 2015, 03:43:38 PM
yes
Title: Re: the maximum number of mornings per week to liviu
Post by: Liviu Lalescu on July 15, 2015, 09:48:15 PM
I hope you will be happy: I made a version which seems to work. Please get version morocco5 from http://lalescu.ro/liviu/fet/download/custom/morocco/

After you will verify it, I will add an announcement about the new features in the Morocco topic.

Please test thoroughly.
Title: Re: the maximum number of mornings per week to liviu
Post by: Omar Ben Ali on July 16, 2015, 12:06:14 AM
It seems to work well.
good job Mr Liviu.
Thank you very much
Title: Re: the maximum number of mornings per week to liviu
Post by: khalafi on July 16, 2015, 12:19:56 AM
It's perfect
Thank you Mr Liviu.
Title: Re: the maximum number of mornings per week to liviu
Post by: Liviu Lalescu on July 16, 2015, 06:48:17 AM
Good!

You can call me simply Liviu :)
Title: Re: the maximum number of mornings per week to liviu
Post by: abdeljalil elghazoui on July 16, 2015, 11:33:05 AM
This work is very excellent
Thank you  Liviu.
Without Mr.
HHHHHHHHH
Title: Re: the maximum number of mornings per week to liviu
Post by: Liviu Lalescu on July 16, 2015, 12:30:23 PM
 :)