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
Are you sure you really need this? It is very difficult and error prone from me.
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.
No, khalafi, he has good reasons. It is useful, but it is very hard to implement.
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.
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.
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."
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.
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.
Im ok with you liviu
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?
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.
I writh you later
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.
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
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?
min
one mornings / one afternoons
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.
15 min
Merci
Ça marche bien
Avec plaisir :-)
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.
Merci beaucoup de votre interaction
Ça marche bien
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.
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
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.
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..
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.
I will not be tiring for you
But if you can do it;thes is important characteristic
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?
yes
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.
It seems to work well.
good job Mr Liviu.
Thank you very much
It's perfect
Thank you Mr Liviu.
Good!
You can call me simply Liviu :)
This work is very excellent
Thank you Liviu.
Without Mr.
HHHHHHHHH
:)