Max hours per day but only 1 time a week

Started by ellebi, August 04, 2019, 04:52:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Liviu Lalescu

OK, so it might be useful in maybe extreme cases. But it sure looks complicated.

ellebi

Quote from: ellebi on August 04, 2019, 08:52:50 PM
...please accept my apologies because I'm late with the donation that you really deserve!
In next days I will provide with pleasure and I'll let you know.

Donation sent, as promised!
:D

ellebi

Quote from: Liviu Lalescu on August 05, 2019, 10:50:03 AM
For other users: do you consider it useful for max hours daily allowing 1 day exception (maybe only for the teachers)?

It would be possible to extend this possibility also to "Max span per day for a teacher" constraint?
I prefere it to "max hours per day" because it includes gaps
Thank you

Liviu Lalescu

Quote from: ellebi on August 05, 2019, 09:23:59 PM
Quote from: ellebi on August 04, 2019, 08:52:50 PM
...please accept my apologies because I'm late with the donation that you really deserve!
In next days I will provide with pleasure and I'll let you know.

Donation sent, as promised!
:D

Thank you! I received it and will add it now.

:)

Liviu Lalescu

Quote from: ellebi on August 06, 2019, 08:47:45 AM
Quote from: Liviu Lalescu on August 05, 2019, 10:50:03 AM
For other users: do you consider it useful for max hours daily allowing 1 day exception (maybe only for the teachers)?

It would be possible to extend this possibility also to "Max span per day for a teacher" constraint?
I prefere it to "max hours per day" because it includes gaps
Thank you

I will add these suggestions in the TODO, like this: The initial suggestion is by Luca: Allow 1 day exceptions for the constraints of type teacher(s) max hours daily and teacher(s) max span per day, in which day the teacher(s) can have +1 more hours/span. The additional words by bachiri401: Allow a number n of days exception for the constraints of type teacher(s)/students (set) max/min hours daily.

Luca, your suggestion is easier than max hours daily. But:

1) It is not quite FET style to add exceptions to constraints.

2) It might lead to performance problems, I am not sure if my idea of implementing it is perfect.

So I propose you to create a custom version for you, max span per day for teacher has a check box, allow one day with +1 span. If it works correctly, I will think some more on adding it to the official.

Let me know.

Now I will add your suggestions in the TODO file.

Liviu Lalescu


Liviu Lalescu

#21
I am seriously thinking of this: a check box for constraints teacher(s) max hours daily / max span per day, "Except one day with +1". It is not easy and contains critical code, that is why I am still not that eager to add it. It also isn't exactly a FET-style constraint.

But if more people will vote for this new addition, I will consider it.

So far, there were two users needing it: ellebi and totera.

Liviu Lalescu

bachiri401, I also know you suggested this (in fact even a more general approach), but I think you are not needing this for yourself, but suggesting this more like a good-to-have facility. If you want, I can also add you in the list.

ellebi

Quote from: Liviu Lalescu on August 06, 2019, 08:13:05 PM

So I propose you to create a custom version for you, max span per day for teacher has a check box, allow one day with +1 span. If it works correctly, I will think some more on adding it to the official.
Let me know.

Ciao Liviu, sorry of I'm late, in these days I've other problems that keep me away from the timetable (and FET!)...

I'm really interested on this feature, but I don't want create too much work for you.
If you have time, I'll test it with pleasure, if not, I'proceed in some way! :-)

Thank you
Ciao

bachiri401


Liviu Lalescu

OK, so there are 3 users suggesting this.

Liviu Lalescu

Quote from: ellebi on August 08, 2019, 06:47:32 AM
Quote from: Liviu Lalescu on August 06, 2019, 08:13:05 PM

So I propose you to create a custom version for you, max span per day for teacher has a check box, allow one day with +1 span. If it works correctly, I will think some more on adding it to the official.
Let me know.

Ciao Liviu, sorry of I'm late, in these days I've other problems that keep me away from the timetable (and FET!)...

I'm really interested on this feature, but I don't want create too much work for you.
If you have time, I'll test it with pleasure, if not, I'proceed in some way! :-)

Thank you
Ciao

I made it, it was not very easy. Get it from https://lalescu.ro/liviu/fet/download/custom/luca/

Please let me know.

I did not test much.

totera

Thanks Liviu,
in fact this is a problem I had with several teachers last year.
I'll do some tests with the custom version then I'll tell you.

totera

Hi Liviu,
I've been using FET 5.39.0-luca-snapshot-10-aug-2019-16_56 version with the "Allow one day exception plus one" checkbox checked on several "Add teacher max span per day" constraints in the last weeks and everything is working fine.
I don't know if this is a thorough test, but I think you can take into consideration to add it in the official version.
Again thank you so much for all your work!

Liviu Lalescu

#29
Hello, totera,

Please tell me, is this useful for you and you don't need teachers max hours daily with exceptions? Because teachers max hours daily with 1 days exception is too difficult for me.

I saw that you proposed last year max hours daily. So I want to ask you if max span per day is useful for you instead of max hours daily.

Please answer as soon as possible, because I am preparing the official release soon.