About Time Constraints

Started by satellite2, December 19, 2018, 01:45:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

satellite2

Hello again.

1- There are very useful time constraints for me concerning teachers (or students) such as "max days per week for a teacher (or for all teachers)". I want to use this constraint for the majority of teachers but not all of them. We have some teachers that have to teach 5 days a week because their course load is impossible for less days. I wonder whether there is a way to adapt this constraint like "max days per week for the selected teachers" or "max days per week except these teachers" instead of entering all of the teachers one by one. Is this difficult to implement? (Because there are lots of teachers in the university)

2- The other constraint is "max hours per day for a teacher (or all teachers)". Is there a way to add another constraint like "max activities per day for a teacher (or all teachers)" ? The hours of the activities change from 1 to 4 but teachers see them as an activity and let's say some of them don't want more than two activities a day etc. Thanks in advance.

Volker Dirr

#1
about 1:
sadly not implemented yet. if i remember correct it is already on the TODO for some time now. it is not difficult to implement in the algorithm (generate.cpp), because that can stay the same. It must be implemented in the part where the data is prepared (generate_pro.cpp) and the interface. Sadly that isn't easy and in fact if we add such a rule it will be logical to implement that similar to most of the other constraints. So a lot of work.
Adding all the teachers is luckily not too difficult. Just move the mouse over the combo box, turn the mouse wheel and press enter 2 times. Turn the wheel, press enter, ... In normal case you only need to do it "one" time, since teachers are normally always the same. So just always work with that fet file.

about 2:
Not implemented yet.

Liviu Lalescu

Hello!

1) It is in the TODO, item #82. I added your name and suggestion to that item.

You might find useful this custom version: https://lalescu.ro/liviu/fet/download/custom/gea/

2) It is a nice suggestion. I added it in the TODO. I am not sure - it might confuse some users with this name (constraint teacher(s)/students (set) max activities daily).

I could try a custom version for you, only in the engine part (no interface, hard coding the constraint that say all teachers or teachers whose names end in "MAXA2" or something like this have max 2 activities per day). Let me know if you are interested.

satellite2

Quote from: Volker Dirr on December 19, 2018, 06:14:55 PM
about 1:
sadly not implemented yet. if i remember correct it is already on the TODO for some time now. it is not difficult to implement in the algorithm (generate.cpp), because that can stay the same. It must be implemented in the part where the data is prepared (generate_pro.cpp) and the interface. Sadly that isn't easy and in fact if we add such a rule it will be logical to implement that similar to most of the other constraints. So a lot of work.
Adding all the teachers is luckily not too difficult. Just move the mouse over the combo box, turn the mouse wheel and press enter 2 times. Turn the wheel, press enter, ... In normal case you only need to do it "one" time, since teachers are normally always the same. So just always work with that fet file.

about 2:
Not implemented yet.

Thanks for the detailed answer Volker.

satellite2


Quote from: Liviu Lalescu on December 20, 2018, 10:32:01 AM

1) It is in the TODO, item #82. I added your name and suggestion to that item.

You might find useful this custom version: https://lalescu.ro/liviu/fet/download/custom/gea/


Thanks for the link Liviu. I examined the readme file but I guess I need to try it to see if it is useful for me. If there is a way to add this selection option to the "Campus" version, that would be great.

Quote from: Liviu Lalescu on December 20, 2018, 10:32:01 AM

2) It is a nice suggestion. I added it in the TODO. I am not sure - it might confuse some users with this name (constraint teacher(s)/students (set) max activities daily).

I could try a custom version for you, only in the engine part (no interface, hard coding the constraint that say all teachers or teachers whose names end in "MAXA2" or something like this have max 2 activities per day). Let me know if you are interested.

That would be very useful but it may confuse the teachers when they see a term like that near their names. If it is the best solution for now, I can give it a try. Maybe I can generate the timetable and lock it and delete the terms near their names.

I still need the "Campus" version in this link: https://lalescu.ro/liviu/fet/download/custom/satellite2/
I can give it a try if you can add to this version. Thank you very much for your support.

Liviu Lalescu

OK, I'll try to add these things into satellite2 custom version, but it will take some time, as I have some problems.

Maybe you can try the gea version and see if that feature is useful to you, and I'll try to add it also to the satellite2 version.

satellite2

Quote from: Liviu Lalescu on December 21, 2018, 02:21:42 PM
OK, I'll try to add these things into satellite2 custom version, but it will take some time, as I have some problems.

Maybe you can try the gea version and see if that feature is useful to you, and I'll try to add it also to the satellite2 version.

Thank you very much Liviu, I still got a few days for the whole data to be complete, still planning and doing some tests.

Liviu Lalescu

Hello,

I'm back. Please let me know if you still need these things done and maybe recapitulate the changes I need to do.