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 - Zsolt Udvari

#16
Yes, I know the refactoring is a very big work - and maybe a bit risky.
It was only an idea and if you've many free time you doesn't have to be bored :)
#17
I don't know the programming of Qt but does exist any method of UI inheritence or include a skeleton UI file?
I think the most of FET's dialogs are similar: same buttons (OK, Cancel, Modify,...), and same layout - so maybe a more general, abstract solution would better.

I found a stackoverflow question (and answer) so it seems it's possible.
#18
I try to find the impossible constraint(s) in my FET-file and I think it's uncomfortable that only on "Time/All" dialog can activite/deactivite the constraints.
I think it would be nice when can activite/deactivite for example on "An activity has a preferred starting time" dialog (and on the others too).
#19
If you disable the time constraints (preferred starting times) of id: 163 the faster version reaches "680 out of 851" but doesn't increase.
What can be the problem? I don't see  :'(
#20
Yes, it changed but I think the changes are not relevant.
Here is the file before the tag-idea.

Slower vs. faster: the tag-way fet places the activities (with 100% time constraints) sooner than the "activities same starting (day+hour)"-method (added_act==279 vs. added_act==529 in some seconds).
#21
The slower is in the first comment, the faster is here.

It isn't solvable yet.
#22
Quote from: Liviu Lalescu on August 16, 2017, 09:05:59 PM
Quote from: Zsolt Udvari on August 16, 2017, 06:19:02 PM
What do you think? The tags is better?

Yes, it might be a good idea.
I did it (the tags). It seems it's better solution - faster and it seems doesn't try change an univocal constraint.

There isn't a solvable file (it's my fault, not FET ;) ) but I hope it will be ready soon.
#23
QuoteThere are too many variants to take care of.
Yes, I know.

If I can help you I'll try :)
#24
Quote from: Liviu Lalescu on August 16, 2017, 06:09:13 PM
You are right, I should implement this. The problem is that it is very risky to change now working code. I should run through all my test files, again.
I don't know FET's code but I think you should add (merge) time constraints (virtually, doesn't write into foo.fet) to every activities.
#25
Do you think it's worth to try a tag?

I've many activities which should have same starting time (day and hour too) and I would like (it's better because of complications) to determine their starting time.
In the file I created virtual activities (895 and 896) and in this case it's easy to maintain the starting times: have to search the virtual activities and haven't to think which activity has determined starting time.
My idea with tags: I'll create tags (instead of virtual activities), add the tag to activities and use "Set of subactivities has a set of preferred starting times".

What do you think? The tags is better?

I don't want add this constraint to every activities because if should modify it's many work - many work causes many errors and bugs :)
#26
Quote from: Liviu Lalescu on August 16, 2017, 04:51:51 PMDo you think I should add this in the TODO?
I don't know. It seems my logic is different as FET logic. I think my case is univocal there aren't any choices.
#27
Hm. It is a bug with 5.31.5 but works as expected with 5.32.2.
Was any bug fix between these releases?
#28
Maybe a user error (PEBKAC) but I think I share it.

So I've a little complicated FET-file and it seems the "An activity has a preferred starting time" doesn't work.

I attached the file and try to generate and check:

  • Nr. 895 and 896 activities (without any teacher and student)
  • They have preferred starting time: "Szerda 1." (Wednesday) and "Hétfő 3." (Monday) with 100%
  • They have same starting time (day+hour) with 7 other activites (for example 647 and 648)
  • Generate (without success)
  • Check the student's timetable, go to "11A" and the 647 is on "Péntek" (Friday)!

Is it a bug or did I anything wrong?
#29
Suggestions / Insert new hour later
August 15, 2017, 10:48:55 AM
My days originally have had 7 hours. The school said a thing and I thought I should include a plus hour, before the original 7 hours.
I added it (0. hour) and I saw the hour of all time constraints updated: increased by 1.
I know many times it's a good feature but in my case (I've record all activities, time constraints) hasn't increase. My 0. hour is like an virtual hour.

Now I can manually rewrite the .fet file but I think it would be nice when user can disable this feature - maybe FET ask about it the user when add later (means there are time constraints) a new hour.
#30
Report a Bug / Re: assertion failed
July 25, 2017, 03:32:51 PM
Quote from: Volker Dirr on July 25, 2017, 03:24:46 PM
can you please sent your fet file to Liviu or to me. Did you modify that file manualy? Was the file generated by FET or by an other software?
You can start from an empty file. Create a Teacher and a Subject, and try create Activity and set the number of students.