Increase maximum days per week

Started by Smurft, July 13, 2015, 09:28:01 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Smurft

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

Volker Dirr

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.

Smurft

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?

Volker Dirr

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.

Liviu Lalescu

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?

Smurft

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?

Liviu Lalescu

Get the sources tar.bz2 version, file fet-5.27.4/src/engine/timetable_defs.h, line 172.

Smurft

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  ;)?

Liviu Lalescu

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.

Smurft

Can I make a constraint like: 'teacher is allowed to be present 2 times at a certain hour'? This would solve my problem also.

Liviu Lalescu

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.

Volker Dirr


Smurft

#12
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
    ^
"

Liviu Lalescu

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 ).

Smurft

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  ;)