FET Forum

FET Support (English) => Programming Help => Topic started by: DucBeNho on February 19, 2025, 02:43:20 AM

Title: Build a server with FET
Post by: DucBeNho on February 19, 2025, 02:43:20 AM
Hi.

Im new and i want to build a server with FET, this server will take my XML file and then gives me a result of timetable after generated. My XML file will be created in my app, i can debug this process.
My problem is: How can i debug process of generating timetable with FET server? Pls give me a suggestion.

Many thanks.
User from Vietnam.
Title: Re: Build a server with FET
Post by: Liviu Lalescu on February 19, 2025, 01:44:16 PM
Hello, and welcome!

You could use fet-cl. It writes information in some files and on the console as the generation proceeds. You could use "fet-cl --inputfile=yourfilename.fet --verbose=true".
Title: Re: Build a server with FET
Post by: DucBeNho on 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.
Title: Re: Build a server with FET
Post by: Liviu Lalescu on March 24, 2025, 07:14:41 AM
Do you mean the soft conflicts? There is a txt file.
Title: Re: Build a server with FET
Post by: DucBeNho on March 24, 2025, 08:15:14 AM
How about error like this, Can I get such error information in file?
Title: Re: Build a server with FET
Post by: Liviu Lalescu on March 24, 2025, 08:37:35 AM
It should appear in the logs directory, errors.txt.
Title: Re: Build a server with FET
Post by: DucBeNho on 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
Title: Re: Build a server with FET
Post by: Liviu Lalescu on March 24, 2025, 01:47:26 PM
Not in the results folder, but in the logs folder. I just checked, it appears there, no need for you to create it. Or, in case of warnings, warnings.txt I think.
Title: Re: Build a server with FET
Post by: DucBeNho on 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?
Title: Re: Build a server with FET
Post by: Liviu Lalescu on April 14, 2025, 11:03:39 AM
Hello, DucBeNho,

Yes, sure, it should solve in 1 second. But why don't you try it and see?
Title: Re: Build a server with FET
Post by: DucBeNho on 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.
Title: Re: Build a server with FET
Post by: Liviu Lalescu on April 15, 2025, 07:34:52 AM
Oh, I see.

You might want to deactivate all the other constraints, like max hours daily, etc., without the basic ones, so that the timetable is solvable with the swap.