FET Forum

FET Support (English) => Get Help => Topic started by: anisanjum on May 02, 2014, 12:22:36 PM

Title: Generation Delay
Post by: anisanjum on May 02, 2014, 12:22:36 PM
hi,
I have more than 1100 activities.
It's not generating the TT.
Any ideas to shorten the delay will be appriciated.
Thanks.
Title: Re: Generation Delay
Post by: Volker Dirr on May 02, 2014, 05:08:07 PM
help the algorithm if you know constraints that must be. I am talking about constraints that must not be added, because if you schedule, then these "constraints" will be respected automaticly, because they are forced by your dataset.

1. if you know a constraint must will be at a specific time, then use constraint activity prefreed time.
2. if you know that activities must be simultaneously, then also tell that by a constraint. (But be carefull, it will speed up only if these constraints compelling. most guys to misstakes here and generating (might be)/will be much slower.
3. also using activity constraint "a set of constraints occupy max timeslots" to the courses can improve speed pretty much.

Title: Re: Generation Delay
Post by: anisanjum on May 03, 2014, 10:36:36 AM
Hi,
Now I have approx. 1600 activities.
When I add the Third constraint mentioned by you(ie an activity has a preferred time slots) then it's not generating the TT at all.
If removed the generates the TT with a little Delay.

This constraint when given to the FET,sometimes TT is generated and sometimes TT is not generated.

for ex-If I have 5 working days,
             I have 6 periods of science subject and I want them to be in the first hour of every 5 working days.
             Means FET will select any 5 periods of science and put in the First Hour.
             And I add this contraint.
             Then TT is not generated.

But,
            If I have 5 working days,
             I have 10 or 12 or 15 periods of science subject and I want them to be in the first hour of every 5 working days.
             Means FET will select any 5 periods of science and put in the First Hour.
             And I add this contraint.
             Then TT is generated.


Any kind of support will be appreciated.
Thanks.
Title: Re: Generation Delay
Post by: Volker Dirr on May 03, 2014, 11:26:51 AM
nobody can answer that question without your dataset.
i bet it is impossible: for example because the science activities are always instructed by the same teacher and he isn't available always.
Title: Re: Generation Delay
Post by: anisanjum on May 03, 2014, 12:19:09 PM
PFA fet file for time table
The constraint is all the class teachers should be in their respective classes for the 1st period for the entire week.

This constraint is applied to almost all the classes except a few. Please find below details which are not happening
Class 7A, Class teacher: Rekha Kumar, activity-Social Studies no of periods/week , No of working days: 5.
Class 7B, Class teacher: Amlorepava Mary, activity-Maths no of periods/week 7 , No of working days: 5.
Class 8A, Class teacher: Bhavani P, activity-English no of periods/week 7 , No of working days: 5.
Class 9B, Class teacher: Mahesh TD, activity-Kannada no of periods/week 6 , No of working days: 5.
Class 11A, Class teacher: Mangala Mary, activity-Kannada no of periods/week 8 , No of working days: 6.
Class 12A, Class teacher: Rajshekar V, activity-Physics no of periods/week 8 , No of working days: 6.
Class 12B, Class teacher: Muthu Kumar K, activity-Political Science no of periods/week 8 , No of working days: 6.

Note: If the teacher is handling more than one subject for the class the constraint is applied, where as if it is only one subject it is not applied.

I have reduced the file size couz I was not able to upload it.
Thanks.
Title: Re: Generation Delay
Post by: Volker Dirr on May 03, 2014, 12:38:26 PM
You can compress files before uploading them if they are to big. Normaly simply do a right click on the file and compress (zip, ..).

FET complain about a lot of bugs if you try to start generating. You must fix that bugs first. (so in most cases you only need to delete them; but i don't know 100%, because it is your dataset and not my one.)
Please resent a fixed version.
Also add the problematic constraint (maybe it is already) which fails and tell me the exact constraint. (So it should fail with that constraint, but it shouldn't fail without that constraint.)
I will search your bug as soon as you done that that preliminaries.
Title: Re: Generation Delay
Post by: anisanjum on May 03, 2014, 01:27:59 PM
Here,
chi.zip is without constraint works fine.
copy(2) of chi.zip has the constraints which doesn't let me generate the TT.
the constraint is
"A set of activities occupies max time slots from selection".
for the classes I mentioned earlier ie 7A,7B,8A,9B,11A,12A,12B.
Thanks.
Title: Re: Generation Delay
Post by: Volker Dirr on May 03, 2014, 02:25:58 PM
ah. ok. that is impossible.
looks like you missunderstood that constraint.

i am not 100% sure what your intension is/was:

did you try to use my speedup trick (see my first answer)? (i must read your dataset much more detailed if i want to answer this)

or

did you try to give a teacher at least 2 hours in the first period?
in that case it is better if you select 2 activities per teacher and/by use:
an activity has a preffered starting time
or
a set of activities have preffered staring times
or
a set of subactivities have preffered starting times.
Title: Re: Generation Delay
Post by: anisanjum on May 03, 2014, 03:00:56 PM
I tried Everything but it's the same.
Thanks.
Title: Re: Generation Delay
Post by: Volker Dirr on May 03, 2014, 03:05:39 PM
the file you sent me is impossible, because i guess to didn't saw that it is "MAX", i guess you think it is "MIN", but it isn't.

i didn't tried yet, but i think the other should work if there is no other blocking constraint.

please try one of the constraints i wrote (with only 2 activities!).
also add only 1 teacher and try to generate. if it succeed try the next one. and so on. you will understand (hopefully) the problem much better if you add constraints step by step.
Title: Re: Generation Delay
Post by: Volker Dirr on May 03, 2014, 11:03:03 PM
Oh... Sorry, i didn't read carefully enough.
i reduced the problem down to some activities of teacher Kumar.
Please check the attached very small file. it is your impossible dataset, i just deleted a lot of teachers, activities, ... and it is still impossible.

as soon as you delete (some) activities or constraints it solves again. Also for example if you delete the min n day constraints. (But also if you remove lunch or breakfast)

so please rethink about your activities and min n day constraints.
i saw you have many activities which are split into more parts then a week has days. don't forget that you checked the "consecutive if same day" option, which can stick only 2 activities together.

i think it will be much better if you split your activities into less subactivities and increase the duration.

I hope you understand the problem. I will think myself again tomorrow but i need to sleep now.
Title: Re: Generation Delay
Post by: anisanjum on May 04, 2014, 07:08:23 AM
Okk..
Good Night.
But I have tried every possibility of mine but I am not able to solve.
Please give an answer which will make it generate the TT.
Also I have taken care of that "consecutive" stuff.
Because if I have 5 working days/week then I give max 10 subjects/week.
If it's 11 subjects/week,then I do it manually by giving any of the working day as 3 periods and rest as 2.
Please give some help if possible.
Thanks.
Title: Re: Generation Delay
Post by: Liviu Lalescu on May 04, 2014, 07:12:22 AM
Looking at Volker's file, it is simple:

1) The constraint activities occupy max time slots does not have all 8 needed activities, but only 7. However, this correction does not make the file solvable.

2) Try to generate, then stop and look at the current or highest timetable. You will notice immediately the problem. This is a good trick to use in the future.

Also, in the future please do not add activities which are split into more components than the number of days per week.
Title: Re: Generation Delay
Post by: anisanjum on May 04, 2014, 07:20:17 AM
Yes Liviu Lalescu Sir,
I have tried this also.
I got the problem too.
The problems are the same which were above mentioned by me earlier.
So please give any solution which could generate my TT.
I have given u my dataset also. 
Title: Re: Generation Delay
Post by: Liviu Lalescu on May 04, 2014, 07:25:33 AM
I meant that the solution is in point 2) from my previous answer. Just do that and you will see.
Title: Re: Generation Delay
Post by: anisanjum on May 04, 2014, 09:43:47 AM
I have tried this trick earlier.
The problems are the same which I mentioned earlier.
Title: Re: Generation Delay
Post by: Volker Dirr on May 04, 2014, 11:32:17 AM
Please, generate and view highest stage table. you will see that you dataset is impossible, because it can't be consecutive, because there is the breakfast!
So as soon as you delete one activity from the min n day between political sience activities, then it solves.

So other example: if an other teacher has 8 subactivities and you want to do the same trick, then remove 2 min n day activities from the min n day constraint. maybe add a new min n day constraint with that 2 deleted activities. (of course, if the teacher has a free day, then you need to do it with 3 subactivities)

Also: if you don't have room problems and the teacher should always have the first hour, it will generate faster if you simply use activity prefferd time and set activities manualy into the first period.
So i recommend to do that with all activities that doesn't have a room problem. (So it is no problem if that activities use teacher or students (home) rooms and the teachers or students don't share that room.)

And maybe rethink about increasing the duration instead of splitting into so many activities. (Rethink to ALL activities), because it will simplify your dataset and generate faster then.