FET with five terms / for Finland (Five 7 weeks terms in a school year)

Started by mathmake, January 11, 2020, 12:45:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Liviu Lalescu

I hope it is done. I might re-check the code later and maybe test some more, but seems to work OK for now.

The download link for the test version (for now): https://lalescu.ro/liviu/fet/download/test/

I added the constraints activities min 2 in a term for your file and it solved. I attach the file and the solution.

Please let me know.

mikkojoo

Been busy until now. Thanks so much.
I'll try it today/tomorrow.

Liviu Lalescu

No problem! You're welcome!

I might release in a few days, I hope everything will be OK. But I hope I'll get your confirmation that it works as expected before this.

mikkojoo

Works perfectly!
There were some activities that I had manipulated with 'set of activities has a se f preferred time slots' and I changed those to use these new ones.

mikkojoo

Sorry to ask for even more, but is it possible / how hard it would be to have
'min activities in a term'
'max activities in a term'

for a teacher?

mikkojoo

Btw, this can be done easily enough with constraint 'max activities from a set in a term", so that's not anything very important

Liviu Lalescu

Hello,

I just arrived now.

Thank you for the feed-back!

I would prefer not to add more constraints types, to keep things simple. You just need to add for that teacher two constraints, max and min activities from a set in a term (and take care if you modify the activities of that teacher, to update the two constraints).

Isn't it equivalent min and max activities in a term for a teacher with min and max activities from a set in a term (if you add all the activities of that teacher in the constraints)?

I am thinking of releasing the new version later today or Monday afternoon, so please let me know.

mikkojoo

Yes, You are rigth.
Having as equal terms as possible for a teacher is a common request, that's why I decided to write it down.
It's certainly possible to do it just like you said, only little bit laborious task for 50 teachers and 5 terms

Liviu Lalescu

Hmm, if I understood correctly, in my approach you need to add 50x2 constraints, and in your approach either 50x2 constraints, one for each teacher, or 2 universal constraints (if the requirements are the same?) In my approach, you only need to care about the constraints again if you add more activities for a teacher.

I would prefer not to add some more constraints. Anyway, the internal representation would be the same - so nearly the same speed of generation.

I will probably take a short break now, probably answer later.

Liviu Lalescu

I just released the new version FET-6.5.0, with these two new constraints. Thank you for the suggestions!

mikkojoo


mikkojoo

Works fine!

I have a problem: I would like all students day end after 3th or 4th hour every day - not after 2nd. What constraints should I use?

Less important: On Tuesdays I'd like all teachers day NOT to have gaps before our meeting on 5th hour (KOKOUS)

Liviu Lalescu

Quote from: mikkojoo on May 27, 2022, 05:37:11 AMWorks fine!

Thanks for the feed-back!

QuoteI have a problem: I would like all students day end after 3th or 4th hour every day - not after 2nd. What constraints should I use?

A constraint activities occupy min time slots from selection for each students set, as in the attached file (and solution) which solves in a reasonable time (I think comparable with the original file).

You could add students min 3 hours daily, but this is stronger than the condition you have in mind. It still solves.

QuoteLess important: On Tuesdays I'd like all teachers day NOT to have gaps before our meeting on 5th hour (KOKOUS)

This is too difficult. Maybe you could force each teacher to have activities on the 4th hour each Tuesday.

A customization might be possible, but looks very complicated, difficult, and the timetable might not solve fast.

mikkojoo

I used this all by myself 8)  (proud): [
Quote from: Liviu Lalescu on May 27, 2022, 05:20:21 PMYou could add students min 3 hours daily,

Quote from: Liviu Lalescu on May 27, 2022, 05:20:21 PMThis is too difficult. Maybe you could force each teacher to have activities on the 4th hour each Tuesday.
As I said, this is not important enough.

Liviu Lalescu

Quote from: mikkojoo on May 27, 2022, 05:35:43 PMI uset this all by myself 8)  (proud): [
Quote from: Liviu Lalescu on May 27, 2022, 05:20:21 PMYou could add students min 3 hours daily,

:)

Another idea, instead of my first idea, considering your file's early students constraints, is to constrain each students set to have activities both at 2nd and 3rd slot of each day (modify each of my added constraints, so that min occupied = 50 instead of 25). This might be even more efficient for the generation, but I am not sure.