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 - DucBeNho

#1
timetable

My timetable is little bit difficult to review. Because I use ID numbers instead of names.
#2
Programming Help / Conflict when use huge data timetable
September 08, 2025, 04:06:27 AM
Hi.
I made a large data timetable for testing. Each time click generate button, time to solve a timetable are not a same. Sometime 5 sec, sometime 30 sec, some time it was loading forever, but same data.

Thanks a lot. Have a good day!
#3
Programming Help / How to use constraint
June 03, 2025, 07:53:06 AM
Hi
I don't know what constraint "A teacher begins morning early" means. Because this timetable can't resolve. I deactivate constraint "A teacher begins morning early" then it can resolve.

Please help me check this timetable and tell me which constraint is conflicting with.
Thanks a lot!
#4
Programming Help / Missing constraints
May 21, 2025, 04:10:37 AM
Hi

I have to use two constraints: Max hours per morning and Max hours per afternoon for teacher.
But FET doesn't have these. Do you have any suggestion for us?

Thanks!

#5
Yes, I got it.
But I mean different notifications but same error/warning. Like that:
- School A: Activity with id=%1 has no allowed slot - please correct that.
- School B: Teacher %2's activity can't be located in time table.
- School C: Teacher %2's activity with id=%1 has no allowed slot.
- ...
These cases are my own, but I'm sure the notification that individual schools require will be very complex.
#6
Programming Help / Re: Build a server with FET
April 15, 2025, 02:34:34 AM
Because my timetable data is very simple, it always takes only 1 second to solve.
I want to evaluate after generated  with huge timetable data, users want to swap 2 activities.
I will resend the XML file but this time all activities will be locked, 2 activities have to swap will be locked in place of each other.
#7
Programming Help / Re: Build a server with FET
April 14, 2025, 10:53:14 AM
Hi,

I have a question. What happen if I remake a timetable with all activities that have locked and have already constraints?
I mean after generated, I lock all activities and generate again.
Can it will be created faster than before?
#8
Oh, many thanks.

We have 31 cities, each city has 10 - 13 districts, and each district has 20 schools.
So, our problem is: if each school want to get a individual notification, how can we make it. My job is research this problem. Do you have any idea?

Our schools have a shool_id, after they get errors or warning message, I will modify messages for them corresponding to their shool_id, I thinks. But how can I do it??

I know this function is very complicated.
Thanks again so much.
#9
I'm using fet-cl.exe. When the timetable is not resolved, I get announcement saying "Cannot precompute - data is wrong - aborting". But I want to show detail like "Activity with id=%1 has no allowed slot - please correct that.". Instead of using "bool Generate::precompute", I made "QString Generate::precompute" that return notification like I want.
But this code in fet.cpp doesn't work. Please help me.

BTW if this way is not optimal, please give me a suggestions. Thanks!
#10
Programming Help / Re: Build a server with FET
March 24, 2025, 09:03:09 AM
I don't understand what you mean, is this errors.txt file already exist or I have to create it, because I can't find it in the results folder
#11
Programming Help / Re: Build a server with FET
March 24, 2025, 08:15:14 AM
How about error like this, Can I get such error information in file?
#12
Programming Help / Re: Build a server with FET
March 24, 2025, 03:43:35 AM
I have problem. The output result of timetable is XML file, I will take it and show in my app. But how about list of error? how can I get it after generated?
Thanks.
#13
Get Help / Re: Couldn't find the constraints in FET
March 20, 2025, 01:57:31 AM
Yeh, I use morning-afternoon mode.

We are doing a huge project that requires FET. My timetable will be free for all schools in Vietnam. If this project can be successful, we will donate to you.
Thanks a lot for your help.
#14
Get Help / Re: Couldn't find the constraints in FET
March 19, 2025, 10:07:11 AM
I have another constraint. What s about:
Which subject if to be studied at morning, do not study at afternoon; and if to be studied at afternoon, do not study at morning
#15
Get Help / Re: Couldn't find the constraints in FET
March 18, 2025, 07:18:39 AM
2) "on same subject" means: example, class A doesn't study math in last time at morning and first time at afternoon. If class A has math time in last time at morning, no studying math in first time at afternoon

We will choose which subjects should not be studied through noon because studying difficult subjects through noon will be tiring.