FET Forum

FET Support (English) => Get Help => Topic started by: catalin on February 15, 2010, 12:45:51 PM

Title: Flexible students min hours daily
Post by: catalin on February 15, 2010, 12:45:51 PM
Hi,
Is there a possibility to make this constraint more flexible "Students min hours daily". For teachers there is an explanation that this is flexible so that teachers don't get a class in their "free" day...

How about for students? If I specify min hours daily, the activities would be placed entire week, even if there is only one class per day. Also, specifying min 2 classes/day would result a minimum 10 activities for a set of students, even if these students have only let's say 8 activities... Am I right?

Thanks,
Catalin
Title: Re: Flexible students min hours daily
Post by: Liviu Lalescu on February 15, 2010, 01:09:04 PM
You are right, this is a problem in FET.

It would be very easy to make a min hours daily flexible for students. But if a user incorrectly makes min hours flexible for students, he may end up with an impossible timetable. I do not trust the users that they will be careful about this fact, that is why I did not allow flexible students min hours daily.

I can help you to make a custom version for that. What you need to modify (official FET-5.12.3): generate.cpp, lines 5984, 6007, 6040, 6061, 6095, 6118, 6151, 6172 (2*2*2 places). Remove the "1 || " text (for instance, in line 6172, leave it: if(sbgDayNHours[d2]>0) ).

I am so sorry that I cannot do more, I would like to make this available easier for all users, but I don't want them to do mistakes. I tried on a sample file and it cannot be used if the user has flexible min hours daily for students instead of not flexible one.

For other users: are there any tricks possible for Catalin's case?

I'll think about that in the future.
Title: Re: Flexible students min hours daily
Post by: Volker Dirr on February 15, 2010, 02:00:13 PM
depending on his dataset. i thing that might help produce better tables is if he has min n days constraint with as many item as a week has days, then he just need to increase that constraint to 100%.
Title: Re: Flexible students min hours daily
Post by: Andrés Chandía on March 26, 2010, 04:24:01 PM
I'm not certain that this is the thread i need to follow, because I'm not certain that the problem Catalin reports is suitable for me. Any way I will continue with it because at least has a bit of relation...

Well I would like to use the constraint "min hours daily", but I would like that fet could decide some way when having a 5 days week and in one of the days there are not enough activities to reach the constraint leave that day without activities for that group of students.

I've tried the generate.cpp, stuff, with no results....
Title: Re: Flexible students min hours daily
Post by: Liviu Lalescu on March 26, 2010, 04:39:07 PM
QuoteI'm not certain that this is the thread i need to follow, because I'm not certain that the problem Catalin reports is suitable for me. Any way I will continue with it because at least has a bit of relation...

Well I would like to use the constraint "min hours daily", but I would like that fet could decide some way when having a 5 days week and in one of the days there are not enough activities to reach the constraint leave that day without activities for that group of students.

I've tried the generate.cpp, stuff, with no results....

The latest version, 5.13.0, contains adaptable students min hours daily in advanced usage. You can enable in Settings->Advanced the students min hours daily with allow empty days and you can select "Allow empty days" for one or more constraints of type students min hours daily after that.

Please let me know if it works for you.
Title: Re: Flexible students min hours daily
Post by: Andrés Chandía on March 26, 2010, 05:37:27 PM
Well, with the new version, the timetable could be generated, something that didn't happen with the previous one, now I have to check everything is well settled. :)
Title: Re: Flexible students min hours daily
Post by: Andrés Chandía on April 01, 2010, 12:29:25 PM
Thanks Liviu,
It's working perfectly well  :)