Schedule all activities every day of the week at the same time.

Started by TAHIR, June 18, 2023, 07:38:30 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TAHIR

Helo dear sir
How Schedule all activities every day of the week at same time/hour?

I have generated timetable for 6 days. But issue is that all activities shows at different hour in every day.
Kindly guide me.
Thank you

Volker Dirr

Please don't double post your questions.

I just copy and paste my answer i just wrote in the other thread:

hmmm... reading it word by word:
If you schedule all activities every day the same time, then it is the easiest to enter only a single day and tell the teachers/students that it is valid every day.

But i guess that is not what you want.
The other variant reading your question is:
If math is in the 1st hour, then it should be always in the 1st hour. And if English is in the last hour, then English should be always in the last hour. The advantage is, that it is easy to remeber. The disadvanatge is, that English is always the last. So i don't recommend to try something like that.
If you have a odd number of activities and/or if teachers or students are sometimes not available, then such a request is pretty fast also impossible.

But mabye we talk about different stuff.
Please explain more detailed what you want to do. Maybe even add also your FET file, so we can have a look at it what you try.

TAHIR

Thank you sir
How Schedule Subject 1 for Monday to Wednesday & subject 2 schedule at Thursday to Saturday. Rest of all activities same everyday?

Volker Dirr

Depending on your dataset.
Do you have only a few of those activities?
Do you have many of those activities?
Is it always the same subject?

Depending on your answer, you choose a preffered time constraint.

For example if "subject 1" must be always from Monday to Wendsday, then you can choose preffered time constraint for that subject and allow Monday to Wendsday only.
But i guess that is not what you want, since you will get trouble if you do that for a subject that need a special room or if only a few teachers can teach that subject. In that case your timetable will be impossible to solve.

So i guess you should try it by using an activity tag.
Create a tag like "Mon - Wed" and tag all needed activities with that tag.
Add a preffered time constraint for that tag and allow only the first 3 days.

Be carefull. If you tag too many activities, then your timetable can't be solved.

TAHIR

Only a few activities.

For example total 8 subjects are taught to grade 10. But i total hours of school are 9. So 1 hour extra. I want to give this extra 1 hour mon to wed to for English & thu-sat  math.

Note: 1 , 1 hour specific for English & math already. But extra hour specified for eng & math further.you can say English and math have 9 hour/duration in week . Other subjects have 6 hours/duration in week.

Note 2 : during this all rest activities should should remain same time in every day.

How is it possible?

I hope you can understand.

Volker Dirr

hmm... i fear i don't understand.

Do you talk about a fixed (already generated) timetable?

If math has duration 8 and get 1 extra hour. Why do you want to force it Mon-Wed? Why not just adding 9 hours total? Similar to English.

Maybe it is the best if you add a sample file and/or explain more detailed.


Volker Dirr

I can't help you if you just add emojies.
Please add a sample file or at least a small sample.
Or try to explain more detailed.
If you don't want to publish it here, then you can sent me by email. I will delete it after reading.

I must sleep now and have to work long tomorrow. I will check the forum again in ~18 hours.

TAHIR

Thank you

I want to say that , i have total
8 hours/duration . Total subjects are 7 .  subject 1 , subject 2, subject 3, subject 4 , subject 5 , subject 6 , subject 7 . Subject 1 should have 2 hours for mon-wed and 1 hour for thu- sat like other subjects. Similarly subject 2 have 1 hour mon-wed and 2 hours for thu-sat. All remaining subjects each have 1 hour whole week.

Timetable successfully generated. But issue is that . All activities are sheduled different hours everyday.

But if we set one-day timetable & having 8 hours , for all activities same time for everyday.
Then how we manage subject 1 & subject 2 . While subject 1 have 2 hours for mon-wed rest of days 1 hour & subject 2 have 2 hours thu- sat , rest of days 1hour.

Single day timetable how we manage these two subjects?
Can we manage this issue in single day timetable. If not then how we can manage in 6 day timetable so that all activities remain same time at everyday?


Volker Dirr

I don't know you whole dataset. But with a 6 days week and 3 hours per subject, you can max reduce the problem down to 2 days.

hmm... difficult to say without knowing the whole dataset.
1. You are sure you can do it always in the same hour (because you said that at least 2 subjects will have different number of hours. So it is only passible if these hours are at the boarder.
2. Don't forget that some teachers and students will complain, if they for example have math always in the last hour.

I recommend to start with your days request first and check out how difficult it is.
If you can reduce the problem down to 2 days (so one day with subject 1, subject 2, subject 3, ... but not with subject a, subject b, ...) then the other day is the opposite (so with subject a, subject b, ... but not with subject 1, subject 2, ...), then try that first.

If you can't reduce the problem you need to take a preffered time constraint.
In fact there are many ways how to do it. For the algoritm it doesn't care which variant you choose. Results will be the same. It matter only how much work it is to input and modify the data.
I also don't know the rule how you placed them on different days so far.
I think it is maybe the best to use tag. So add 2 tags. Maybe call them ("Mon-Wed" and "Thu-Sat"). Add them to each subactivity. Then add 2 preffered time constraints for that tags.
But be carefull. Even such easy looking constraints are already pretty strong. If you don't split the activities into "good" parts, then your dataset won't be solveable, even without such constraints your dataset is very easy to solve.
As soon as you done that with success you might think about adding always the same hour (but it will be difficult, because you told that at least 2 subjects have a different numbers of hours. Depending on your dataset you timetable might be again immpossible by this.

TAHIR

Yes , i have already adopted these methods like 2 days timetable. In two days timetable activities sheduled in different hours in both days. About 100 activities are there so for all cannot use time constraints.

2nd activity tag (mon-wed) & (thu-sat) already adopted. But in this case by using constraint same starting time any hour , timetable cannot be generated . Anyhow i got some clues from you . Hope that problem will be resolved.

Bundles of thanks sir

TAHIR

One question more

Question is that when generate multiple timetable (e.g 10) , after generation we lock timetable, then which one is locked between (1 - 10)? Is Any choice to lock timetable with own choice between (1-10) ?

Volker Dirr

You can lock/unlock the current one.
If you want to lock/unlock an other timetable, then you need to load the fet-file from the fet-results folder.