FET Forum

FET Support (English) => General Stuff => Topic started by: Smurft on July 13, 2015, 09:28:01 AM

Title: Increase maximum days per week
Post by: Smurft on July 13, 2015, 09:28:01 AM
Hi,

Can you deliver me a version with increased mximum working days per week? I need 55 working day, so I'm able to create a timetable for a complete year.

Regards,

Smurft
Title: Re: Increse maximum days per week
Post by: Volker Dirr on July 13, 2015, 09:47:09 AM
You can increase it in timetable_defs.h: line 172 "const int MAX_DAYS_PER_WEEK=35;"

Just the interface isn't fine if you enter/modify days. You need to modify the fet file then instead of using the interface.

Hmmm...
Maybe we should get rid of MAX_DAYS_PER_WEEK and MAX_HOURS_PER_DAY by using listWidgets? So the interface will be fine even with virtually unlimited number of hours and days.
Title: Re: Increse maximum days per week
Post by: Smurft on July 13, 2015, 10:06:55 AM
It would be nice if you change the interface ;).

The other interfaces (or timetables) for contraints and the output arent affected with the increase in timetable_defs.h?
Title: Re: Increse maximum days per week
Post by: Volker Dirr on July 13, 2015, 10:25:40 AM
hmmm...
I just rechecked: MAX_DAYS_PER_WEEK is still needed at other places.
You can increase it without a "big problem". The algorithm will be of course slower.

I am not sure anymore if we can totally get rid of it, because of speed. But i still think using a listWidget might be useful for the interface, because guys like you can increase that values then without having trouble in the interface.
Title: Re: Increse maximum days per week
Post by: Liviu Lalescu on July 13, 2015, 12:05:38 PM
Quote from: Smurft on July 13, 2015, 09:28:01 AM
Hi,

Can you deliver me a version with increased mximum working days per week? I need 55 working day, so I'm able to create a timetable for a complete year.

Regards,

Smurft

Like Volker answered, increase MAX_DAYS_PER_WEEK, recompile, modify the .fet file by hand (which is easy), and don't enter the days per week dialog. The rest of the dialogs are OK.

Aren't you able to compile for Windows and need that from me?
Title: Re: Increse maximum days per week
Post by: Smurft on July 13, 2015, 07:12:54 PM
Quote from: Volker Dirr on July 13, 2015, 09:47:09 AM
You can increase it in timetable_defs.h: line 172 "const int MAX_DAYS_PER_WEEK=35;"

Just the interface isn't fine if you enter/modify days. You need to modify the fet file then instead of using the interface.

Hmmm...
Maybe we should get rid of MAX_DAYS_PER_WEEK and MAX_HOURS_PER_DAY by using listWidgets? So the interface will be fine even with virtually unlimited number of hours and days.

Can't find it on my iMac. Where's that file located?
Title: Re: Increase maximum days per week
Post by: Liviu Lalescu on July 13, 2015, 07:26:47 PM
Get the sources tar.bz2 version, file fet-5.27.4/src/engine/timetable_defs.h, line 172.
Title: Re: Increase maximum days per week
Post by: Smurft on July 13, 2015, 09:17:44 PM
Quote from: Liviu Lalescu on July 13, 2015, 07:26:47 PM
Get the sources tar.bz2 version, file fet-5.27.4/src/engine/timetable_defs.h, line 172.

And how can I compile an executable file?  Can't there be an easy way  ;)?
Title: Re: Increase maximum days per week
Post by: Liviu Lalescu on July 14, 2015, 07:46:20 AM
Quote from: Smurft on July 13, 2015, 09:17:44 PM
And how can I compile an executable file?  Can't there be an easy way  ;)?

There is no very easy way, unfortunately. But it is easy enough. See the README file.
Title: Re: Increase maximum days per week
Post by: Smurft on July 14, 2015, 08:15:05 PM
Can I make a constraint like: 'teacher is allowed to be present 2 times at a certain hour'? This would solve my problem also.
Title: Re: Increase maximum days per week
Post by: Liviu Lalescu on July 14, 2015, 08:36:43 PM
Quote from: Smurft on July 14, 2015, 08:15:05 PM
Can I make a constraint like: 'teacher is allowed to be present 2 times at a certain hour'? This would solve my problem also.

It would be like changing completely the algorithm. Very difficult.

It really is easy to compile.
Title: Re: Increase maximum days per week
Post by: Volker Dirr on July 14, 2015, 09:41:38 PM
I guess you can also try "fortnightly workarounds".
See:
http://www.timetabling.de/manual/FET-manual.en.html#id_36
Title: Re: Increase maximum days per week
Post by: Smurft on July 14, 2015, 10:25:21 PM
Quote from: Liviu Lalescu on July 14, 2015, 08:36:43 PM
Quote from: Smurft on July 14, 2015, 08:15:05 PM
Can I make a constraint like: 'teacher is allowed to be present 2 times at a certain hour'? This would solve my problem also.

It would be like changing completely the algorithm. Very difficult.

It really is easy to compile.


I tried to compile, but it failed. Could you please compile it for me :-[?

15000 + Warnings like:
"/Qt/5.5/clang_64/lib/QtCore.framework/Headers/qobject.h:108: warning: unknown warning group '-Winconsistent-missing-override', ignored [-Wunknown-pragmas]
    Q_OBJECT
    ^
"
Title: Re: Increase maximum days per week
Post by: Liviu Lalescu on July 15, 2015, 06:47:30 AM
I'm sorry, but I do not have a Mac and I also don't know what this message means. I hope that some other people will answer. I will invite Valdo ( http://lalescu.ro/liviu/fet/forum/index.php?topic=1978.msg10749#msg10749 ).
Title: Re: Increase maximum days per week
Post by: Smurft on July 15, 2015, 09:58:53 PM
Quote from: Liviu Lalescu on July 15, 2015, 06:47:30 AM
I'm sorry, but I do not have a Mac and I also don't know what this message means. I hope that some other people will answer. I will invite Valdo ( http://lalescu.ro/liviu/fet/forum/index.php?topic=1978.msg10749#msg10749 ).


A Windows version with 60 working day would also be nice  ;)
Title: Re: Increase maximum days per week
Post by: Liviu Lalescu on July 15, 2015, 10:02:44 PM
OK, sure, I'll compile it I think tomorrow morning or afternoon. Or maybe now, I am not sure.
Title: Re: Increase maximum days per week
Post by: Liviu Lalescu on July 15, 2015, 10:55:17 PM
Please get it from http://lalescu.ro/liviu/fet/download/custom/smurft/
Title: Re: Increase maximum days per week
Post by: Valdo on August 20, 2015, 08:07:21 PM
Sorry man, but i have see the private message now :o
For compile mac fet no problem, in the future ask me!