Main Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Volker Dirr

Testing. Testing. 1, 2, 3. / Re: test
December 06, 2023, 09:23:43 PM
Just a test
General Stuff / Re: Struggling to Optimize Time Table
December 06, 2023, 07:58:10 PM
Well, timetabling depend a bit on luck. Sometime it is fast and sometimes it is slow.
If you want to know more about that, start watching this video:

I have got some more videos about that topic on YouTube.

I just generated once again on my Ryzen 5600g with 6 threads only (even i have got 12) and i got the first result just after 40 seconds. While the other 5 threads didn't found a solution after 4 minutes.

Solution attached
General Stuff / Re: Struggling to Optimize Time Table
December 06, 2023, 05:33:27 PM
Well, you forgot to add that constraints.

For example for the gaps you added only 4 constraints to students set, but not to all. Also you use "gaps per day", which is imperfect and slow.
Remove that 4 constraints. Instead of that add a constraint for all students with gaps per week.
I was able to solve your data set even if ALL students gave got 0 gaps per week (that means also 0 gaps per day at the same time!). I found a solution in under 1 minute. So it is easy.

You also didn't add constraint for max hours per day. I didn't tried them at the same time. Don't add all at once. Do it step by step.
General Stuff / Re: Struggling to Optimize Time Table
December 06, 2023, 02:26:04 PM
... I fear i don't fully understand. You want to reduce the number of gaps and it doesn't work? Maybe add your fet file also.
General Stuff / Re: Printing Teacher Free no frills
December 06, 2023, 02:21:43 PM
Not from the interface, but if you use the exported html tables, then it is possible.

You need to open the css file and search for this:
  color: silver;

Modify it like this:
  display: none;

Save the css file, open the html file with a webbrowser and print.
Suggestions / Re: Buildings timetables
November 29, 2023, 07:44:44 PM
yes, that will be a fast variant.
hmmm... thinking some more I am not sure if it worth to improve speed by this, since in normal case the number of buildings is low. So maybe keep the slow variant, since it is easier to code / less code / less memory usage? But of course slower.
Suggestions / Re: Buildings timetables
November 29, 2023, 07:13:38 PM
ah... ok. I see.
Suggestions / Re: Buildings timetables
November 29, 2023, 07:10:34 PM
I think Liviu mean you generate with rooms of course, but now you add an activity tag to each activity. But you DON'T an activity tag constraint. But you print the activity tags timetables.
Suggestions / Re: Buildings timetables
November 29, 2023, 07:06:20 PM
Good idea. I think it should work with FET (but not with TiTiTo, since i didn't import the activity tags).
Let's wait for Benahmed answer, he knows better, since he can try with his sample file.
Suggestions / Re: Buildings timetables
November 29, 2023, 06:39:27 PM
The Qt bug in the interface about Right to Left is sadly still present :-(

If you already generated successfully, then I can start coding Friday afternoon.
If it doesn't fit into official FET right now, maybe I should add it in TiTiTo first, so all FET users can try and use it. And if it is useful, we can implement in official FET.

The slow variant should be only a lot of copy and paste.
Just doing it as in the "all activities" functions, only with a loop around.
As pseudo code
foreach(building : buildingList){
  if(activity.building == building){

This is the slow variant. I must think about a fast variant. But maybe the slow variant is also ok.
Suggestions / Re: Buildings timetables
November 29, 2023, 04:10:57 PM
Did you solve the problem (I talk about generating the file) successfully and only the printing fails now? In that case i will try to code it this weekend.

Or do you only have that idea and didn't finish the FET data set, since the print of buildings is missing? In that case i ask you to check if you/FET can generate the data set and as soon as it solves i will code the print buildings timetables. (Since in fact my original plan for this weekend was recording a new YouTube Video - Power Saving with FET part 2 - Calculating how much money you will save if you buy a new computer)
Suggestions / Re: Buildings timetables
November 29, 2023, 11:01:51 AM
I wrote in on my TODO.
I can't code it today. Maybe at the weekend.
I guess an imperfect (slow) solution won't be difficult to code. Including coding, testing, compiling, ... probably less than 1 day work. (For FET or TiTiTo). A faster/better solution probably one day more. For both variants probably an other more day.
General Stuff / Re: Room Usage
November 27, 2023, 08:42:02 PM
Because you added 2 constraints to that activities, but the teachers home room constraint will be always skipped if you add an other room constraint.

So you have:

Space constraint
Subject preferred rooms
Weight (percentage)=100%
Room=A Room

Space constraint
Teacher home room
Weight (percentage)=100%
Room=A Room


FET cares about the first constraint and select randomly one out of that 9 rooms.
FET don't care about the second constraint, since it is a HOME room constraint that is "overwritten" by other room constraints.

HOME room constraints are different from all other constraints in FET. In normal case FET cares about every constraint.
But HOME room constraint are different, they are disabled as soon as there is an other room constraint related to the activity.
General Stuff / Re: Room Usage
November 27, 2023, 07:58:27 PM
Maybe you used a weight below 100%?
Or you added a subject preferred room constraint for that teacher. Teacher (home) room constraints will be skipped, if there are other room constraints related to the activity.
If that doesn't help please attach you file and tell us the name of the teacher, the subject and the room, so we can maybe find the bug.
General Stuff / Re: Room Usage
November 26, 2023, 10:26:34 PM
Please read FET -> Data -> Rooms -> Make/edit virtual -> help