Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - infoo_

#1
Hello

In the attached fet file I have 336 activities which fet successfully placed 335 activities.

The counter goes and come back but it never success, but I can't figure what can be problem.
#2
Hello

I would like to suggest adding a constraint called "A teacher begins early (in a week)" or a similar name, meaning that a teacher can start teaching as soon as possible in the first allowed hour of the teacher's available times.

FET should alert when this constraint is not included in the teacher's available times.

This constraint would prevent a very common situation like this:

In an afternoon school, many teachers came from another school in the morning, and they can teach from 1 to 5 pm, but if FET found that can teach from 3 to 5 pm and teacher available time is 1 to 5 pm, then the time 1 to 3 pm would count as "gap" since the teacher does not prefer to have leisure time (again, it would count as "gap" like "max gaps per day" but in the beggining of the teacher's available times).

Maybe set a number like "A students set begins early (max beginnings at second hour)" constraint do using 0,1,2.. (always prefer 0). And % could be <=100% since it is not mandatory if FET fails to schedule as soon as possible. It depends on how hard can be the programming of the constraint.

This can also happen in the last hours of a morning school, when the teacher prefers to leave late (so reduce gaps between the school in afternoon) instead of start early (the last hours would count as "gaps" by the same reasoning).

What do you think?
#3
Hello!

After 31 minutes (see image):

You cannot view this attachment.

I came up with this timetable (attached) and I am excited about the results!

Achievements of the current timetable:

1) Found that min days between acts was not possible if I didn't split an activity of duration=2 into two acts of duration=1 each one (and adding a new min days constraint)

2) Set Maximum gaps per day=1 on some teachers

Need your help in this problems of the current timetable (first is prioritary):

1) Caceres has 6 hours on a day with activity tag 5B, that's a lot. Maybe use: "Teacher CACERES for activity tag 5B has max 4 hours daily, WP:100%" or max 2

2) Rodriguez and Talarico has 4 gaps per week, try to reduce to 3 or 2

3) Same problem 1) with Arrizabalaga (has 6 hours on a day with activity tag 5C)

4) Set min hours daily=2 for Ferreyra

5) Set min hours daily=2 for Arrizabalaga

6) Set min hours daily=2 for Russo

7) Pasquali has 3 gaps on Miercoles, try to reduce 2 or 1

8 ) Try to minimize min days for Ferreyra, Accorinti and Arrizabalaga

9) Teacher _SIN ASIGNAR means that there are no teachers that can teach those subjects. So try preferred time slots on hours 7º 11:25-12:05, 8º 12:05-12:45, 7º 17:10-17:50 and 8º 17:50-18:30 (because acts has durations=1 or 2) so that groups has not free hours

If you can't help me with all of them, please consider tell me what acts are problematic so I take a look

It's a challenge but I think it can be done!

Thank for the kind help
#4
Hello

When using "Generate multiple", where can I find the "Constraints related to the last activities in the list below" dialog box after it appears when stopping in "Generate new" button?

I want to see the problematic activities or constraints when using multiple generations.

Also a basic question:

"Here are the placed activities which lead to an inconsistency, in order from the first one to the last (the last one FET failed to schedule and the last ones are most likely impossible):"

No: 1, Id: ....
No: 2, Id: ....
No: 3, Id: ....
etc

Where should I start to detect inconsistencies? The first (No: 1) or last (No: 3)?

Thank you!!
#5
Get Help on Your Input File / Generation stuck
December 17, 2023, 07:32:26 PM
Hello

Please help, I have the attached FET file, I need to have constraints max gaps and min hours daily activated for each teacher.

Thank you for your kind help
#6
Hello

Suppose we have an activity with 2 teachers, A and B.

Normally FET would try to place the activity on the intersection of teachers not available times, so both constraints are satisfied.

However, since B is substitute of A, A is not teaching at school (in some cases he is at school but teaching other subjects). So instead of taking into account both constraints, is there a way to tell FET to only consider teacher B not available times instead of A & B only applied to that activity?

I know I could create a new teacher like: Teacher A (Substitute Teacher B) and create a new constraint, but I would like to know if there is an easier way.

Maybe using tags? Another constraint?

Thanks!!
#7
Hello

We had a pretty decent timetable. Recently a teacher changed its available times, so we need to reestructurate some preferred starting times. The teacher only teachs in "Afternoon hours" (the last 8 periods of 16 total periods), so only "afternoon" activities should be moved.

Below there is a list of problems and each problem have its corresponding problematic FET file, and I have attached a rar with a working FET file (the generation takes around 1 min).

Each Problem is commented in the files with a comment "OP: Problem X" e.g. OP: Problem C-1

Problem A: Acts of Teacher A should have a set of preferred time slots on Martes, Miércoles and Jueves. It seems it placed on Viernes but we want to place on Jueves.

Problem B: Teacher B and Teacher M are the same, and both teachers didn't teach on Lunes afternoon. But now it seems one of them (B) should teach on Lunes afternoon. We want to place its activities everywhere except Lunes afternoon.

Problem C-1: Before it seems that min days between activities was broken:

id=118 (    1/5 - AM - MATEMÁTICA - 2C - 2C)
id=117 (    2/5 - AM - MATEMÁTICA - 2C - 2C)

Now I would like to know if we can solve this issue.

Problem C-2: Also, related to teacher AM, before he had gaps = 4 on Miércoles only. But now, every generation shows that he has gaps = 4 on Martes and gaps = 6 on Miércoles. The latter is very frustrating. Could we reduce to max gaps per day = 4 or 3?

Problem D: Teacher BA usually have max gaps per day = 3, every week usually he has 8 gaps (I'm not counting the gap of the morning, since we should keep morning locked). Could we reduce to max gaps per day = 2 or something like max gaps per week = 7 or 6?

Problem E (should be solved after Problem A or Problem B): We would like to have Teacher AN teaching Matemática in 2C and Teacher AM teaching Matemática in 3C. But it seems impossible when I generate.

Each FET file is a separated problem file. We wish to achieve at least one satisfactory file, and then try to solve multiple problems in one FET file by combining several problems into one and try to generate a FET file. For example, Problem A was solved; then try to add Problem B into Problem A FET file and generate.

Important: Some constraints related to preferred starting time are activated. They are the "morning" activities. All my attempts were with this constraints activated since the teacher's available times change was only of "afternoon" activities, so there is no need to move activities of the morning. But, if you find that some problem is solved by deactivating some acts preferred starting times of the "morning", please let me know. I should ask for permission if we move some activity of the morning.

Can someone try to solve at least one problem with more threads, please? I tried ~5 minutes each generation but I couldn't solve any of the above issues.

All you have to do is open each Problem file, generate and see if it is completed. Then try to 1) Combine two problems into one and try to finish it, 2) if 1) is impossible, you can disable activities preferred starting times of the "morning" hours (not recommended, but possible if strictly necessary).

Thank you!!
#8
Hello

Please see attached FET file with data and timetable. That is the last achieved timetable.

However, the school told me that soonly there will be a swap between Teachers AM and AN on courses 2C and 3C.

So in order to make this working, they told me that on Martes on hours 1º and 2º (of afternoon) it can't be teached Matemática because of teachers AM and AN not available times.

So I created the following constraint (it is last on the unordered time constraints list):

Time constraint
Activities with:
Teacher=AM
Students=2C
Subject=MATEMÁTICA
Activity tag=2C
Duration=2
etc.

If you deactivate it, you will get a complete timetable.

So I tried to deactivate all acts preferring starting times, but it seems impossible.

What would you propose to solve this issue? Please let me know what changes you made to the file.

Thank you!

ADDED: The person in charge of doing the timetable told me that he could not solve this. If he can't by hand, I guess we can't by computer :)
#9
Hello

Recently Teacher BF restricted its available times, so I need to work with this change but the generation takes too long. I waited for ~28 minutes and it stucks around 309/325 319/323 activities.

The FET file is attached.

Can someone try with more threads, please? Or instead, flexibilize some constraints but give me warnings about what constraints were modified.

In the meantime I am trying without success.

Teacher Q must have max gaps per day = 0 or 1 (in the file is set 1).

Thank you!

EDIT: Teacher BF restricted even more than I thought. I upload the updated FET file while I am generating. I also deactivated

X - Teacher min hours daily, WP:100%, T:Teacher BF, mH:2, AED:yes
X - Teacher max gaps per day, WP:100%, T:Teacher BF, MG:2

so we can play a little more. But it would be great if those restrictions are activated again. Also we can temporally remove min days between activities of this teacher, but it should be necessary to keep them activated.
#10
Hello

Everytime I want to upload a FET file into the forum, I want to delete unnecessary "activity preferred starting times" constraints that were from past files for size purposes.

I can do Remove + Enter every time, but it is not as fast as I would expect (my file has ~300 unused activities plus files with past generations it can have ~600 unused activities).

I need to know how to delete them when the constraints are and are not deactivated more quickly.

I tried searching inside the XML FET file and deleting some <tags>, but I don't quite understand what tags I should remove.

I seemed to see that they were in different positions in the code, so I'm sure that I can delete something wrong.

Thank you!
#11
Get Help / Need help with these constraints for a school
February 21, 2023, 08:03:30 AM
Hello

I took most of your suggestions and put a lot of effort in generating the attached FET file.

The school almost approved it, but I need to fix some issues (some are fixed, so I don't include them here):

1º) Teacher max gaps per day, WP:100%, T:Teacher Q, MG:2 must have MG = 0 or MG = 1 (ideally MG = 0)

2º) Matemática Teacher A on 4C must respect min days between activities = 1 100% (max hours = 2 instead of 3)

3º) (Optional) Teacher max gaps per day, WP:100%, T:Teacher AQ, MG:2 should be MG < 2

The most important is to solve 1º), the others are important but not as the first one.

I attach the file with data and timetable because if I deactivate placed activities, the generation is never finished. I don't know why. I only changed teacher's name for privacity. You can deactivate all of them, no problem. If you want to try without activate placed activities, here are the seeds that were from the successful generation (I remember it took ~3 min):

Generation started on: 2/21/23 2:31 AM

The random seed at the start of generation is:
   s10=1520584588, s11=1930088439, s12=555555873,
   s20=3874092411, s21=2482283404, s22=3106961385.

This file was automatically generated by FET 6.8.4.

---

Generation ended on: 2/21/23 2:34 AM

The random seed at the end of generation is:
   s10=1831861930, s11=4000834580, s12=3414413369,
   s20=765949400, s21=4205607824, s22=1172350969.

This file was automatically generated by FET 6.8.4.

Thanks!
#12
General Stuff / Max gaps between 2 teachers = 0
February 20, 2023, 08:16:47 PM
Hello

I have 2 teachers. Teacher A and suppose he is substitute of another teacher, say "Teacher B (Substitute is Teacher A)". That's why I have 2 different teachers, altough it is temporally the same teacher but with different names.

I set Maximum gaps per day=0 for Teacher A and Maximum gaps per day=0 for Teacher B (Substitute is Teacher A), it works fine.

But I realized that in the timetable, on Mondays both teachers have a gap of like 4 or 5 hours.

So I think I need to also specify that both teachers must also have max gaps = 0 between its activities, in some way. So both teachers don't have any gaps between them.

I thought about consecutive activities but I don't want to specify an activity of Teacher A to be consecutive to another activity of Teacher B (Substitute Teacher A), but FET should find the combination that fits better.

Maybe something like "Max gaps between two teachers = 0".

Is there a trick to achieve this?

Thanks!
#13
Hello

I work on Windows. While FET is generating a timetable I am on other apps, thus FET windows is not on top.

If the generation takes too long, sometimes I left the computer and do other things, and FET windows is not on top.

It also happens that I put music and I don't hear the pop up song that FET plays when the generation ends.

So it would be great if FET, after a generation is successful, could be brought to the top of any open window in Windows, or at least put the alert in orange on the taskbar (see image)

This would save me having to wait unnecessary time, and thus be able to continue working with FET more quickly.

You cannot view this attachment.

Maybe test what happens if there is more than 1 running instance of FET on the computer (if those instances are generating / not generating).

Thanks!
#14
Get Help / How can we place all activities?
February 10, 2023, 05:40:43 PM
Hello

Finally I think I reach the final constraints. Now I would like to generate a full timetable.

Please see the attached FET file.

This time I deactivated some room constraints like Liviu suggested on a previous thread. But I need to keep rooms of Artes Visuales / Música activated because it is mandatory that those teachers must teach at the same time.

I didn't change "max hours daily" because I did not understand how to do it from here: https://lalescu.ro/liviu/fet/forum/index.php?topic=5495.0

I also "split" some activities of 4C -- you can rollback if it is better. Perhaps we can do more splits to generate a full timetable.

@Liviu Lalescu could you change some of activities of other courses (not all) to see if a complete timetable is generated (using the attached file), please? I would not like to abuse these more flexible constraints (even if it is legal to do it) since teachers complain because they have many hours with the same course, so I would like to avoid that as much as possible.

Thank you!

Reuploaded FET file! Literally 10 minutes ago someone wrote me to change "Teacher T (Suplente Teacher E)"'s available times, it should be available last 3 slots of Jueves and Viernes. I reuploaded the file
#15
Hello

I have set teachers activity tag max hours daily for each activity tag (suppose 100%). In my case, each activity tag is just every activity of each course from 1A,1B,1C,...,5A,5B,5C.

This restrict the hours that a teacher have with a course every day to max = 2.

However, the school told me that a teacher can teach to a course more than 2 hours daily, if and only if the number of subjects he teachs is > 1 i.e. the overrun of max hours daily cannot happen if total subjects = 1.

For example:

Teacher A teachs 4 hours of Literature on Mondays on course 1A <- It can't happen with "teacher activity tag max hours daily"

Teacher A teachs 2 hours of Literature on Mondays and Fridays on course 1A <- Can happen with "teacher activity tag max hours daily"

Teacher A teachs 2 hours of Literature and 2 hours of Arts on Mondays on course 1A <- It can't happen with "teacher activity tag max hours daily" Here we can have this possibility i.e. a teacher can teach 2 subjects the same day with total duration > 2 on course 1A

This is better than I have on my schedule, because we are allowing a greater max. The only restriction is that for one subject, it must have max = 2 hours daily.

Would this improve the time generation?

Did I explain myself well enough? Is there something similar in FET?

Thanks!
#16
Please see the following FET file: https://lalescu.ro/liviu/fet/forum/index.php?topic=5492.msg30227#msg30227

Hello

Please see attached FET file.

Recently I have changed some activities (I have not deleted and created them again, I simply used the "Modify activities" option): I have swapped the teachers that were on those activities - nothing about courses, nothing about teacher's available time.

Teacher P has enough available time: 10 slots, where 6 slots are on afternoon.

I don't know why it got stuck at:

Id: 234 (2 - Teacher P - Formación Ética y Ciudadana - 4C - 4C)



since it has enough slots.

I deactivated all constraints related (except available time) to Teacher P and it still gets stuck at 234. When I activate them again and deactivate Teacher P's available time, the generation is not stuck. Don't know why. I didn't wait if the generation get stucks at a future activity.

Can you help me, please? I am getting crazy.

Thank you!

P.S. If we add an extra slot of available time on 6º 16:30 - 17:10, the generation does not get stuck (I didn't wait if the generation get stucks at a future activity). It seems very strange to me!

EDITED
#17
Hello

I have "Subject A" that has to be teached on courses 3C, 4C and 5C simultaneosly (for example at hour 3 of Mondays). We have available one teacher for each activity.

However, it doesn't matter where these teacher can teach: Teacher 1 can teach Subject A on 3C, 4C or 5C. The same for Teachers 2 and 3.

I can say that for example:

Teacher 1 teachs Subject A on 3C at hour 3 on mondays
Teacher 2 teachs Subject A on 4C at hour 3 on mondays
Teacher 3 teachs Subject A on 5C at hour 3 on mondays

But it is also possible that:

Teacher 3 teachs Subject A on 3C at hour 3 on mondays
Teacher 1 teachs Subject A on 4C at hour 3 on mondays
Teacher 2 teachs Subject A on 5C at hour 3 on mondays

etc.

Is there any way to achieve this?

Thanks!
#18
Hello

Suppose we have an activity of duration 2-2-1.

I want that any of the subactivities (first 2, second 2 or 1, it doesn't matter) has a preferred starting time only on a certain day.

For example, Math of course 1C which has 3 subactivities:

- Duration 2
- Duration 2
- Duration 1

I want that any of the above has to start on 7º hour of Fridays (the schedule has 8 periods per day, so FET can pick one of duration 2 or duration 1).

I tried "An activity has a preferred starting time" but I'm forced to choose an activity.

I tried "A set of activities has a set of preferred starting times" but I'm forced to choose Friday and other days, since I want Friday starting time of duration 2, and the other 3 duration to be anywhere else.

In short:

Instead of:

Time constraint
Activity with id=56 (    2/5 - Teacher - 1C - 1C)
has a preferred starting time:
Day=Friday
Hour=7º 17:10-17:50
Weight (percentage)=100%
This activity is permanently locked, which means you cannot unlock it from the 'Timetable' menu (you can unlock this activity by removing the constraint from the constraints dialog or by setting the 'permanently locked' attribute false when editing this constraint)


Something like:

Time constraint
[Randomly choose one activity of: Activity with [id=56 (    2/5 - Teacher - 1C - 1C )] OR [id=55 ( 2/5    - Teacher - 1C - 1C )] OR [id=57 (    1/5 - Teacher - 1C - 1C )]
has a preferred starting time:
Day=Friday
Hour=7º 17:10-17:50
Weight (percentage)=100%
This activity is permanently locked, which means you cannot unlock it from the 'Timetable' menu (you can unlock this activity by removing the constraint from the constraints dialog or by setting the 'permanently locked' attribute false when editing this constraint)


Is that possible?

Thank you!!
#19
Hello

Just a basic question:

Can we swap between two activities (maybe from different students sets and/or different subjects) of the same teacher without modifying other activities, if they are not related and/or not related with other activities constraints (such as activity preferred starting time, set of activities not overlapping etc.)? To achieve this, we add 2 constraints "an activity has a preferred starting time".

For example:

Before:

Teacher A teachs Math in 1A on Mondays on 1º and 2º hours. Also, Teacher A teachs Literature in 1B on Fridays on 5º and 6º hours.

After:

Teacher A teachs Math in 1A on Fridays on 5º and 6º hours. Also, Teacher A teachs Literature in 1B on Mondays on 1º and 2º hours.

Thanks in advance
#20
Hello

I need help with some mysterious activities.

I am attaching a FET file* and the problem seems to be found with the following (sub)activities:

46 -    2/3 - Teacher O - Geografía - 1C - 1C
    47 - 1/3 - Teacher O - Geografía - 1C - 1C
107 -    2/3 - Teacher O - Geografía - 2C - 2C
    108 - 1/3 - Teacher O - Geografía - 2C - 2C

TEACHER O'S AVAILABILITY TIME:

You cannot view this attachment.



58 - 1 - Teacher S - Microemprendimiento - 1C - 1C
119 - 1 - Teacher S - Microemprendimiento - 2C - 2C


TEACHER S'S AVAILABILITY TIME:

You cannot view this attachment.



315 -    2/3 - Teacher AQ/Teacher AY - Artes Visuales/Música - 1C - 1C
    316 - 1/3 - Teacher AQ/Teacher AY - Artes Visuales/Música - 1C - 1C

321 -    2/3 - Teacher AQ/Teacher AY - Artes Visuales/Música - 2C - 2C
    322 - 1/3 - Teacher AQ/Teacher AY - Artes Visuales/Música - 2C - 2C


TEACHER AQ'S AVAILABILITY TIME:

You cannot view this attachment.



As you can see, the available space is just enough (except for Teacher O who has some extra availability time).

Specifically, I am 99% sure that there is a conflict on Monday afternoon i.e. 1º 12:50-13:30 to 8º 17:50-18:30

This is a distribution that I found to be possible on Monday afternoon for sets 1C and 2C (it required a little of manual work but don't that much):

TABLE A:
1C2C
LUNES    1º 12:50-13:30    Teacher O - GeografíaSome subactivity here
LUNES2º 13:30-14:10Some subactivity hereTeacher O - Geografía
LUNES3º 14:20-15:00Some subactivity hereTeacher AQ/Teacher AY - Artes Visuales/Música
LUNES4º 15:00-15:40Some subactivity hereTeacher AQ/Teacher AY - Artes Visuales/Música
LUNES5º 15:40-16:20Teacher S - MicroemprendimientoTeacher AQ/Teacher AY - Artes Visuales/Música
LUNES6º 16:30-17:10Teacher AQ/Teacher AY - Artes Visuales/Música    Teacher S - Microemprendimiento
LUNES7º 17:10-17:50Teacher AQ/Teacher AY - Artes Visuales/MúsicaSome subactivity here
LUNES8º 17:50-18:30Teacher AQ/Teacher AY - Artes Visuales/MúsicaSome subactivity here

However, I am not able to get the FET out of an infinite loop because it gets stuck at max = 282 placed activities every time I generate.

I have checked all constraints (I have deactivated those constraints refer to tag = 1C, 2C, 3C) but same result.

But if we deactivate Teacher S's availability time, it exits the "loop" and continue after 282 (I didn't check if the timetable is generated after all, but that 282 frustrates me too much).

I have also added (but deactivated) "An activity has a preferred starting time" to distribute the subactivities like TABLE A but same behaviour. You can test with those if you want, they are deactivated.

Do you have any idea what could be happening? I manually translated the distribution into FET and it should be like that, why doesn't FET continue after 282?

Thanks in advance

* This FET file is a bit different from the last one, because I realized that Teacher O had wrong availability time, and I have also forget to edit Teacher S's availability time. So 2 major changes.