How can we place all activities?

Started by infoo_, February 10, 2023, 05:40:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

infoo_

#60
Quote from: Liviu Lalescu on February 11, 2023, 02:51:45 PMIn my reply #57, FET will prefer to place 2+2 (95%). If it cannot, it will place 2+1+1 (5%).

This implies that I don't understand how indexes work.

My criteria for creating activities was (this was done like a month ago, when I started using FET):

If a subject is 1 hour duration -> activity index number = 1, duration = 1
If a subject is 2 hour duration -> activity index number = 1, duration = 2
If a subject is 3 hour duration -> activity index number = 2, duration = 2, duration = 1
If a subject is 4 hour duration -> activity index number = 2, duration = 2, duration = 2
If a subject is 5 hour duration -> activity index number = 3, duration = 2, duration = 2, duration = 1

Why this criteria? Because we must not have more than 2 hours per day on same subject on same course.

But if you are saying that there is a better approach to prevent this...

Was I doing it wrong all the time? In that case I would like to repair it, but I think it would take a long time to change all the activities... :-[

infoo_

#61
I added min hours daily constraints. I also increased Teacher AM available times on Viernes so that FET can have more space to put its Teacher AM Educación Tecnológica 2C activity (although it seems impossible, it always places it on Viernes 1º hour). But we need to restrict Teacher AM Intr. al Cálculo Numérico 1C time slots/starting times to the last 2 hours on Viernes. So I added it.

Please see attached FET file.

It goes crazy at some activity. I deleted/deactivated min hours daily constraints that causes those conflicts but it didn't work.

Perhaps I am missing a conflict that I don't see.

Liviu Lalescu

Quote from: darkwindow on February 11, 2023, 02:55:59 PM
Quote from: Liviu Lalescu on February 11, 2023, 02:51:45 PMIn my reply #57, FET will prefer to place 2+2 (95%). If it cannot, it will place 2+1+1 (5%).

This implies that I don't understand how indexes work.

My criteria for creating activities was (this was done like a month ago, when I started using FET):

If a subject is 1 hour duration -> activity index number = 1, duration = 1
If a subject is 2 hour duration -> activity index number = 1, duration = 2
If a subject is 3 hour duration -> activity index number = 2, duration = 2, duration = 1
If a subject is 4 hour duration -> activity index number = 2, duration = 2, duration = 2
If a subject is 5 hour duration -> activity index number = 3, duration = 2, duration = 2, duration = 1

Why this criteria? Because we must not have more than 2 hours per day on same subject on same course.

But if you are saying that there is a better approach to prevent this...

Was I doing it wrong all the time? In that case I would like to repair it, but I think it would take a long time to change all the activities... :-[

You did it correctly like above. But then you said the activities with duration 4, which you added 2+2, may be placed 2+1+1 (because your first approach was too difficult to find a timetable). So this is why I suggested my reply #57 and #49.

Note: if you decide to implement this, you might need to remove the old activities and add the new ones. Please take care to add the new activities in the old constraints (like not overlapping, which take care of the IDs of the activities).

Liviu Lalescu

I hope good news: I obtained a timetable for your file in post #61 (I modified the file). Attached. I needed to deactivate 4 obviously impossible constraints min 2 hours daily.

Liviu Lalescu

I hope even better news: Very hard, I obtained a solution with teachers max gaps per week = 6. Attached.

infoo_

Quote from: Liviu Lalescu on February 11, 2023, 05:38:43 PMI hope even better news: Very hard, I obtained a solution with teachers max gaps per week = 6. Attached.

Wow, you and FET did an amazing job!!! I am checking if there are any mistake when I entered the data, I hope I don't find them...

While I'm checking that, we all know that Math (Matemática in Spanish) is not good for students at first 2 hours of Mornings... can FET find a good timetable like you recently found including this restriction for all courses 1A,1B,2A,2B..5A,5B with Matemática? ;)

That is not necessary but it would be funny to check this haha

infoo_

#66
I found that teachers "Teacher T (Suplente Teacher B)" and "Teacher S (Suplente Teacher B)" must have the same available times as Teacher B

I will correct that from liviu6

infoo_

#67
No need to lock any activity preferred starting time!! It worked after changing its available times!

That's amazing...

Added fixed file

Liviu Lalescu

Quote from: darkwindow on February 11, 2023, 06:14:18 PM
Quote from: Liviu Lalescu on February 11, 2023, 05:38:43 PMI hope even better news: Very hard, I obtained a solution with teachers max gaps per week = 6. Attached.

Wow, you and FET did an amazing job!!! I am checking if there are any mistake when I entered the data, I hope I don't find them...

While I'm checking that, we all know that Math (Matemática in Spanish) is not good for students at first 2 hours of Mornings... can FET find a good timetable like you recently found including this restriction for all courses 1A,1B,2A,2B..5A,5B with Matemática? ;)

That is not necessary but it would be funny to check this haha

No, it seems impossible. I added preferred time slots for Matematica subactivities with split index 1 and 2 (two constraints), and it stays at 118/325 placed.

infoo_

Quote from: Liviu Lalescu on February 11, 2023, 06:38:56 PMNo, it seems impossible. I added preferred time slots for Matematica subactivities with split index 1 and 2 (two constraints), and it stays at 118/325 placed.

No problem. It was not necessary. Thanks for testing

If there is news, I will come back here

Liviu Lalescu

You are welcome!

Please let me know if I can write you a kind of appeal/personal stuff (here).

infoo_

#71
It occurs that

282 - 2 - Teacher A (Suplente Teacher K) - Metodologías de Proyectos - 5B - 5B

and

272 - 2 - Teacher K - Desarrollo de Proyectos de Producción - 5B - 5B

were consecutive last year, and same happens with our last files. Both 5B students and Teacher K are tired of having so many hours. I'm seeing if both activities can be put on other days. It is not mandatory but it would be better.

That is, Teacher K should teach in two different courses instead of 5B. Maybe you can help me with that

Quote from: Liviu Lalescu on February 11, 2023, 06:53:41 PMPlease let me know if I can write you a kind of appeal/personal stuff (here).

Yes

Edit

infoo_

Oh, I see it would be impossible due to Teacher K available times.

Maybe we can find a timetable where Teacher K (and also Teacher AN (Suplente Teacher K) and Teacher A (Suplente Teacher K)) can teach 5B with min gaps = 1 or 2 between activities of duration = 2.

Liviu Lalescu

Quote from: darkwindow on February 11, 2023, 07:19:02 PMOh, I see it would be impossible due to Teacher K available times.

Maybe we can find a timetable where Teacher K (and also Teacher AN (Suplente Teacher K) and Teacher A (Suplente Teacher K)) can teach 5B with min gaps = 1 or 2 between activities of duration = 2.

OK, I let it compute with teachers max gaps per week = 6 and added min 2 gaps between (272,273,282,285,288). I'll let you know.

Liviu Lalescu

#74
My personal appeal, for you and for all the FET users, is this: FET is completely free (libre) software. It requires very much dedication. If you consider it useful, please consider recommending your institution to make a benevolent donation or other kind of help to this project.