Main Menu
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

#1
Testing. Testing. 1, 2, 3. / Re: test
December 06, 2023, 09:23:43 PM
Just a test
#2
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:
https://youtu.be/MVt0Yb9y8xc

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
#3
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.
#4
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.
#5
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:
div.TEACHER_HAS_BIG_GAP {
  color: silver;
}

Modify it like this:
div.TEACHER_HAS_BIG_GAP {
  display: none;
}

Save the css file, open the html file with a webbrowser and print.
#6
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.
#7
Suggestions / Re: Buildings timetables
November 29, 2023, 07:13:38 PM
ah... ok. I see.
#8
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.
#9
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.
#10
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.
#11
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)
#12
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.
#13
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%
Subject=Lesson2
Room=A Room
Room=208
Room=210
Room=301
Room=302
Room=303
Room=304
Room=305
Room=306

Space constraint
Teacher home room
Weight (percentage)=100%
Teacher=Teacher
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.
#14
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.
#15
General Stuff / Re: Room Usage
November 26, 2023, 10:26:34 PM
Please read FET -> Data -> Rooms -> Make/edit virtual -> help