FET Forum

FET Development => Suggestions => Topic started by: aldo.f on October 18, 2019, 11:36:44 PM

Title: Max consecutive hours in max hours a day
Post by: aldo.f on October 18, 2019, 11:36:44 PM
I entered the constraints: max 4 consecutive hours a day and max 5 hours a day (or max span 6 hours).
But I would like to have a maximum of 3 consecutive hours when the teacher has 5 hours a day.
Title: Re: Max consecutive hours in max hours a day
Post by: Liviu Lalescu on October 19, 2019, 09:47:03 AM
I think this can be done. But it is weird to add and name such a constraint in the official FET.

So please let me know if you would be interested in a customization done just for you.
Title: Re: Max consecutive hours in max hours a day
Post by: aldo.f on October 26, 2019, 09:44:40 AM
Oh yes, I'm interested. Thank you.
Title: Re: Max consecutive hours in max hours a day
Post by: Liviu Lalescu on October 26, 2019, 12:26:40 PM
Could you please send me your input file, for testing?
Title: Re: Max consecutive hours in max hours a day
Post by: aldo.f on October 30, 2019, 01:46:00 PM
In attachment there is my zipped fet file
Title: Re: Max consecutive hours in max hours a day
Post by: Liviu Lalescu on October 30, 2019, 09:21:59 PM
I have done it, I hope it is correct. I checked manually - I did not add a double check in the timeconstraints.cpp.

The link: https://lalescu.ro/liviu/fet/download/custom/aldo-f/

In this archive you have the directory example-aldo-f, with your input file and with 4 solutions. It seems that you need to generate multiple with a 5-10 minutes time limit (so FET restarts if it stalls, usually at 1602/1609).

Please let me know.
Title: Re: Max consecutive hours in max hours a day
Post by: Liviu Lalescu on October 31, 2019, 07:12:43 AM
I generated overnight. It seems that restart is not needed, but the time might be very high (>8 hours for one timetable). I have put the solutions on https://lalescu.ro/liviu/fet/download/custom/aldo-f/ (some directories are empty - the time was exceeded - you can look at the report.txt).
Title: Re: Max consecutive hours in max hours a day
Post by: aldo.f on October 31, 2019, 04:04:39 PM
Thank you very much
Title: Re: Max consecutive hours in max hours a day
Post by: Liviu Lalescu on October 31, 2019, 04:08:07 PM
You are welcome! Please let me know when I can delete the solutions archive.
Title: Re: Max consecutive hours in max hours a day
Post by: aldo.f on October 31, 2019, 04:18:32 PM
You can delete the solutions archive. I downloaded it.