FET Forum

FET Development => Report a Bug => Topic started by: fourat on September 07, 2024, 05:02:13 AM

Title: crash with huge file
Post by: fourat on September 07, 2024, 05:02:13 AM
I generated using a program I made and from a smaller file template a very large fet file
a message when opening which indicates that certain constraints are false even though they exist in the model file and a crash when I start the generation
how can I attach the file and a screenshot?
Title: Re: crash with huge file
Post by: Liviu Lalescu on September 07, 2024, 08:25:59 AM
You can attach here.
Title: Re: crash with huge file
Post by: fourat on September 07, 2024, 09:32:59 AM
Good morning
Here are the two messages and the file I talked about
Title: Re: crash with huge file
Post by: Volker Dirr on September 07, 2024, 09:41:29 AM
It is only a small file.
You must fix the bug that is written in the warning.
You added constraints for activity tags, but there are no activities that use that tags.
Just disable that constraints from the warnings.
Title: Re: crash with huge file
Post by: Volker Dirr on September 07, 2024, 09:43:22 AM
Liviu: Have a closer look at that file, since even after disabling that constraints, it crashes.
Title: Re: crash with huge file
Post by: fourat on September 07, 2024, 09:46:03 AM
I deleted these constraints but  the second message reappeared
Title: Re: crash with huge file
Post by: Volker Dirr on September 07, 2024, 09:46:59 AM
Yes, I just saw that too. We will have a closer look on that.
Title: Re: crash with huge file
Post by: Liviu Lalescu on September 07, 2024, 11:24:48 AM
You have wrong teachers in the constraints teacher max real days per week.
Title: Re: crash with huge file
Post by: fourat on September 07, 2024, 11:50:55 AM
I deleted them
always the same problem
Title: Re: crash with huge file
Post by: Liviu Lalescu on September 07, 2024, 11:59:17 AM
Now you have wrong teacher in constraints teacher max afternoons per week.
Title: Re: crash with huge file
Post by: Volker Dirr on September 07, 2024, 12:16:42 PM
Did you wrote the fet file yourself (so by a text editor, an own software/script/...)? Or did you produce the wrong fet file by using the fet interface?
Title: Re: crash with huge file
Post by: fourat on September 07, 2024, 12:17:54 PM
yes with a program that I made
Title: Re: crash with huge file
Post by: fourat on September 07, 2024, 12:19:38 PM
Quote from: Liviu Lalescu on September 07, 2024, 11:59:17 AMNow you have wrong teacher in constraints teacher max afternoons per week.

Is this the exact syntax?

<ConstraintTeacherMaxAfternoonsPerWeek>
      <Weight_Percentage>100</Weight_Percentage>
      <Teacher>أسماء بن يوسف</Teacher>
      <Max_Afternoons_Per_Week>4</Max_Afternoons_Per_Week>
      <Active>true</Active>
    </ConstraintTeacherMaxAfternoonsPerWeek>
Title: Re: crash with huge file
Post by: Liviu Lalescu on September 07, 2024, 12:27:45 PM
I don't know exactly for which teacher it crashes.

To see the syntax, add this constraint in FET interface and save the fet file.
Title: Re: crash with huge file
Post by: fourat on September 07, 2024, 12:32:14 PM
that's what I did
I edited the constraints in fet then saved them
and I reopen the file in notepad++ to copy the moodele and the rules into the script (program) that I made to generate the fet file
Title: Re: crash with huge file
Post by: fourat on September 07, 2024, 12:36:09 PM
I asked myself the question the problem comes from the fact that the time constraints are shredded I mean that they are not grouped by category