FET Forum

FET Support (English) => Programming Help => Topic started by: Mejda on July 23, 2012, 09:09:56 AM

Title: Simulation/constraints
Post by: Mejda on July 23, 2012, 09:09:56 AM
Hello,
I added a module to FET but when I compile , this  takes a long time and the following messages are displayed
Quoteconstraints after first pass (after removing inactive ones)
  1 time constraints after second pass (after removing wrong ones)
1 space constraints after first pass (after removing inactive ones)
  1 space constraints after second pass (after removing wrong ones)
please  I have not known where the problem is.
thank you :)
Title: Re: Simulation/constraints
Post by: Liviu Lalescu on July 23, 2012, 12:08:57 PM
Since I know you wanted to add level 4 of students, maybe you made some mistakes there and it takes too much time. FET tells you that you have only one constraint for time and space, this is normal only if the file has only basic constraints.

Maybe you can send your code, but I cannot guarantee I will be able to read, if it is too much.

PS: I will be unavailable (as I wrote on http://lalescu.ro/liviu/fet/forum/index.php?topic=1195 ), also Volker will be unavailable, sorry  :(      I hope other users might help you with advice.
Title: Re: Simulation/constraints
Post by: Mejda on July 23, 2012, 12:43:31 PM
hello,
I send you my sode in 2 part because I have a problem of size
:)
Title: Re: Simulation/constraints
Post by: Mejda on July 23, 2012, 12:47:37 PM
Hello,
first part of interface :)
Title: Re: Simulation/constraints
Post by: Mejda on July 23, 2012, 12:49:06 PM
interface second part
Title: Re: Simulation/constraints
Post by: Liviu Lalescu on July 23, 2012, 02:11:01 PM
I'll see if I can spot the problem. But I hope you realize that you wrote your ftp password in the files. You can remove the attached files or I can remove them myself, if you want. (If there is only 1 download to each file, it is my download.)
Title: Re: Simulation/constraints
Post by: Liviu Lalescu on July 23, 2012, 02:19:17 PM
Please also attach the file src.pro from src/ directory.
Title: Re: Simulation/constraints
Post by: Mejda on July 23, 2012, 02:41:33 PM
ok :)
Title: Re: Simulation/constraints
Post by: Mejda on July 23, 2012, 02:44:07 PM
please Liviu remove them if you can :) I forget them :(
Title: Re: Simulation/constraints
Post by: Liviu Lalescu on July 23, 2012, 02:47:47 PM
Quote from: Mejda on July 23, 2012, 02:44:07 PM
please Liviu remove them if you can :) I forget them :(

:(  I removed them. Only I saw them (the download count for them was 1). I will remove your files from my hard disk after I check your problem or after some more time.
Title: Re: Simulation/constraints
Post by: Mejda on July 23, 2012, 02:55:01 PM
OK thank you liviu :)
Title: Re: Simulation/constraints
Post by: Liviu Lalescu on July 23, 2012, 03:15:40 PM
The simulation stops because in timetablegenerateform.cpp in function start you commented the function calls to start the generation.

But this is not all. I tried generate multiple and I got a crash, so you have other problems.

I have some suggestions to you: to name the students level 4 as subsubgroups, or maybe better years->subyears->groups->subgroups. In the latter case you can keep the current subgroup notation in generate.cpp and you won't need to modify too much the engine. Because generate just works with subgroups.
Title: Re: Simulation/constraints
Post by: Mejda on July 23, 2012, 03:20:28 PM
OK thank you liviu :)