Automatic saving in generation time table

Started by pinco, September 30, 2009, 01:52:03 PM

Previous topic - Next topic

0 Members and 4 Guests are viewing this topic.

pinco

Hello Liviu,
I would suggest you an improvement to add to the generation of time table. I think is good to add an option that automatically saves the time table whenever it reaches a greater number of activities included (only after a number of activities included).
This would have a time table almost finished, to be retouched by hand, without bothering with his finger on the button to save, since it is hard to take when it is higher.
Thanks, Gianpaolo

Liviu Lalescu

Interesting idea, but there are a few reasons why I don't want this:

1) There will be generated a lot of timetables, which are not complete. User might mix them.
2) If user changes the number of activities, there might be a lot of timetables saved, in a useless manner.

I will think about it. I could give you the modifications to make this just for you, I think modifications are easy for me to do.

pinco

Right, but could be saved only the top 10 results, a bit like the multi-generation, calling single-320, Single-322, single-... based on the number of activities placed
I think is useful
Gianpaolo

Volker Dirr

what do you want to do with that tables?

the maybe only needed idea is to save the only the highest number of placed activities (best timetable) always with the same name.
so there is "only" the best so far table saved.

but the should be optional disabeld in settings and i think it will be also good to set a limit like "start saving always the best so far timetable under current file name as soon as the are xxx percent of the activities are placed".

Chafik Graiguer

#4
I already made exactely the same suggestion as Pinco
here:
Save and update best timetable during simulation

I agree on Volker's idea
we only need the most filled timetable to be saved afer XX % of placed activitities as stated by Volker:
Quote
the maybe only needed idea is to save the only the highest number of placed activities (best timetable) always with the same name.
so there is "only" the best so far table saved.

but the should be optional disabeld in settings and i think it will be also good to set a limit like "start saving always the best so far timetable under current file name as soon as the are xxx percent of the activities are placed".

1-First, I think the best solution is to save .fet file (or files) not html files
Well, I dont know if FET allows generating html files from a partial (or complete) locked .fet file ::)


2- I also sugget that  the next good  good timetable continuosely overwrite the prevoius one
Maybe we should also set a step to reduce Had drive write frequency
So for example
Start Auto save at 80% of placed activites with step= 3
So it starts  saving at  160 out of 200
then 163 out 200, overwriting the prevoius one
then  166 out 200, overwriting the prevoius one
and so on ...
If at first run, I noticed that FET geos easily up to 193 out of 200
I can re-run FET and set: Start Auto save at 95% of placed activites with step= 1
and so on..

3- I have also another suggestion:
if FET stucks at 198 out if 200 , I can stop FET
Now I ahve an .fet file with 198 out of 200 placed activities
Then, I would like to have  FET tell me what is the left not  yet placed activities (the two remaining activities)
This way, I can lower costraints for teacher or students related to this not yet placed activites, by looking at possible slot to place it
for example, it could have been placed if I had allowed one gap for teacher or students

Suppose FET stuck every time at 198 for long time,
By runnning and stopping FET several times at 198 placed activities, and by comparing Not yet placed activities each time, I could deduce, what is going wrong


In general, I want FET to share with me informations about whet is going difficult at a given moment :)

Volker Dirr

#5
hmmm....

i thought one more time again about this problem.
saving the best so far table maybe helpfull to (highly) experianced guys with very difficult datasets (need several hours to solve) but the last (more worse!) table is also needed.

if fet can't find a solution i need to find my bug. for example fet place 400 out of 500 activities very fast. and then the number of placed activities go down to 100. and fet still generate and generate.

so how to find the bug?
if i view the timetable with 400 out of 500 activities it is not so easy to see why the timetable is impossible.
but if i view the table with only 100 placed activities and try to place the difficult last activity (compare the problematic activity list) manualy i can see the bug much easier, because there are less activities i need to think about.

so if we stop generating i still need to the possibility to view the "more worse" table.

so if we add that feature (saving the best table) we must also still care about the possibility to also save the worse table.

Liviu Lalescu

OK, the new feature is done, you have a button to save highest stage. Please test and let me know.

Link, as usual, http://lalescu.ro/liviu/fet/download/test/

pinco

Thank you for your work.
It works very well, but we need to improve knowledge of the conflict. Let me explain:

The file conflicts explain only the number of activity like this:
Time constraint basic compulsory: unallocated activity with id=22 - this increases the conflicts total by 10000
its better tuo know the activity totally, (because from only ID is difficult to know whats don't go well) like in information about difficult activities like this:
No: 22, Id: 350 (T:Valenti,Pivetti, S:ED.FISICA, St:3 E,3 D).

I think this is quite simple, but it would also be important to know which class and which days and which time has remained without activity.
Always thanks for how to really take to heart all the problems that we are placed. 're Really good.
Gianpaolo

Liviu Lalescu

#8
QuoteThank you for your work.
It works very well, but we need to improve knowledge of the conflict. Let me explain:

The file conflicts explain only the number of activity like this:
Time constraint basic compulsory: unallocated activity with id=22 - this increases the conflicts total by 10000
its better tuo know the activity totally, (because from only ID is difficult to know whats don't go well) like in information about difficult activities like this:
No: 22, Id: 350 (T:Valenti,Pivetti, S:ED.FISICA, St:3 E,3 D).

I think this is quite simple, but it would also be important to know which class and which days and which time has remained without activity.
Always thanks for how to really take to heart all the problems that we are placed. 're Really good.
Gianpaolo

You're right, I forgot about details for unallocated activities. But I cannot write which class remained without activity and at which time. I can only write the details about unallocated activities. You can see the timetable for the rest of information.

Liviu Lalescu

#9
QuoteThank you for your work.
It works very well, but we need to improve knowledge of the conflict. Let me explain:

The file conflicts explain only the number of activity like this:
Time constraint basic compulsory: unallocated activity with id=22 - this increases the conflicts total by 10000
its better tuo know the activity totally, (because from only ID is difficult to know whats don't go well) like in information about difficult activities like this:
No: 22, Id: 350 (T:Valenti,Pivetti, S:ED.FISICA, St:3 E,3 D).

I think this is quite simple, but it would also be important to know which class and which days and which time has remained without activity.
Always thanks for how to really take to heart all the problems that we are placed. 're Really good.
Gianpaolo

I have released a new snapshot, please get it and tell me if everything is OK now (showing details for unallocated activities).

Chafik Graiguer

#10
Thanks Liviu
Will test and report
One question thought:
1-Deos FET continuosely overwriting previuos saving?
2-can we set a treshold % to start saving?
3- deos it save in .fet or html format ?

Liviu Lalescu

#11
QuoteThanks Liviu
Will test and report
One question thought:
1-Deos FET continuosely overwriting previuos saving?
2-can we set a treshold % to start saving?
3- deos it save in .fet or html format ?

1-Yes (if you hit save 2 times, the second time it will overwrite)
2-You can decide the moment at which to save highest stage
3-.fet is impossible, because the timetable is incomplete. Only html.

pinco

Now is very good.
I thinks this can help to adjust manually the time table.
Thanks

Chafik Graiguer

#13
Quote
3-.fet is impossible, because the timetable is incomplete. Only html.

But, actualy, if you clik "stop and see impossible..", you can browse incomplete student's and teacher's timetable within FET itself
Because browsing and looking  at  timetables within FET is more practical, I wonder, if it is possible to stop FET on partial timetable, lock it, save it
Then re-open it for later consulting or comparing

For complete timetable, there is no problem:
I generate timetable, lock it , save it
LAter, I can re-open .fet file, re-generate it in less than 2 seconds, beacuse it is locked
then browse timetables with ease :)

Liviu Lalescu

Quote
Quote
3-.fet is impossible, because the timetable is incomplete. Only html.

But, actualy, if you clik "stop and see impossible..", you can browse incomplete student's and teacher's timetable within FET itself
Because browsing and looking  at  timetables within FET is more practical, I wonder, if it is possible to stop FET on partial timetable, lock it, save it
Then re-open it for later consulting or comparing

For complete timetable, there is no problem:
I generate timetable, lock it , save it
LAter, I can re-open .fet file, re-generate it in less than 2 seconds, beacuse it is locked
then browse timetables with ease :)

A .fet file contains only a full timetable. To make it for also partial timetables might be deceiving for the user and I do not want that. Is that difficult to browse html timetables?