FET Forum

FET Support (English) => Get Help => Topic started by: Badam on December 14, 2016, 08:29:05 AM

Title: How to use fet-rooms and activity-tags?
Post by: Badam on December 14, 2016, 08:29:05 AM
Hello all,
I'm using fet-mapr-asa-zt3 and working since a few days on a solution for my problem, i hope you can help me with that:
I have to generate a timetable for some participants which visitting different courses(subjects) by different teachers.
My problem is to understand the function of the fet-rooms, which i schould use in this custom version.
Another problem is that a student also can be a teacher. So they cannot be a student and a teacher at the same time.
A simple example what my input looks like:
Students - years - "Every single Student"
Teacher - sp(speaker)_"name of the student"
Subjects - The different Subjects
Buildings - 3 Buildings
Rooms - Rooms in the 3 Buildings

I want to know how to use Activity tags, and the Fet-rooms

I'm excited for your suggestions, thanks
Title: Re: How to use fet-rooms and activity-tags?
Post by: Liviu Lalescu on December 14, 2016, 10:31:36 AM
Quote from: Badam on December 14, 2016, 08:29:05 AM
Hello all,
I'm using fet-mapr-asa-zt3 and working since a few days on a solution for my problem, i hope you can help me with that:
I have to generate a timetable for some participants which visitting different courses(subjects) by different teachers.
My problem is to understand the function of the fet-rooms, which i schould use in this custom version.
Another problem is that a student also can be a teacher. So they cannot be a student and a teacher at the same time.

Are you sure you need the FET-mapr version and not the official FET?

I am not sure I understand "cannot be a student and a teacher at the same time". In FET-mapr you allocate student-activities to FET rooms which are real teachers. You can have also FET rooms which represent real rooms. See the small examples in FET-mapr-asa8-zt3 for this.

It is a bit difficult for me to explain exactly; it is a long time since I worked with FET-mapr and it is also difficult. But I will try to recollect my memories, if you give us more information (maybe some documents about what you need, and the file on which you are working on).

Quote
A simple example what my input looks like:
Students - years - "Every single Student"
Teacher - sp(speaker)_"name of the student"
Subjects - The different Subjects
Buildings - 3 Buildings
Rooms - Rooms in the 3 Buildings

I want to know how to use Activity tags, and the Fet-rooms

I'm excited for your suggestions, thanks

You can add more activity tags to each activity, and use them for constraints.

FET-rooms can be real teachers, or real rooms. A good way to use them is to give them different names for these two categories.
Title: Re: How to use fet-rooms and activity-tags?
Post by: Badam on December 14, 2016, 11:41:30 AM
I'll try to show you my input excel data.
I attached the photos of my excel sheet.
I have:
-  [img class_list.PNG] -- "Class_type" and "Class". "Class_type" is the Subject. If this Subject will be teached more often than once, the "Class" consists of" class_type" + the number.
    There is also our "speaker_Mail" which are the teachers. The Preferred Room is a real room where this subject should be in. Our Preferred Location is same as Preferred Building.

- [img participants.PNG] -- Here is every person listed, even the teachers. If a Participant is a teacher, he will be marked as soone with"teacher_studentName"(visible at "class_list.PNG")

- [img class_visits.PNG] -- This is our List where Participants registred into the subjects they would like to have. Again, "Class_type" is the real Subject, "Class" only an instance of it.

I've made a C# program which generates a *.fet file with all the participants as Students, all Speakermail's as Teacher, all rooms and locationas rooms and buildings.
And there is what im struggeling with, i dont know what i have to add that fet can make a timetable with this data input.

I hope you understand it, if not im here to help you as far as possible.
Thank you for your Answer
Title: Re: How to use fet-rooms and activity-tags?
Post by: Liviu Lalescu on December 14, 2016, 12:03:55 PM
Maybe you could attach the .fet file, or send me by email if it is private.

You could see some examples (FET official or FET-mapr small files), to understand how it works. FET allocates activities to time slots and to rooms.

If you know each activity has a specified set of students and a specified teacher/set of teachers, you can use FET official. I prefer FET official. FET-mapr is cumbersome and may not always be successful. So please let me know if the decision to choose students for an activity belongs to you or to FET.

FET-mapr means FET-multiple-activities-per-room and considers that a room can host more activities at the same time. So you can make an activity for each student, add FET-rooms = real teachers, and allocate more activities to a single FET room.
Title: Re: How to use fet-rooms and activity-tags?
Post by: Badam on December 14, 2016, 12:19:49 PM
The students can register for every subject they would like to visit. When everyone registered their wishes, i should be able to generate a timetable. So i dont know how many students visit each subject yet.
Title: Re: How to use fet-rooms and activity-tags?
Post by: Liviu Lalescu on December 14, 2016, 03:30:06 PM
Quote from: Badam on December 14, 2016, 12:19:49 PM
The students can register for every subject they would like to visit. When everyone registered their wishes, i should be able to generate a timetable. So i dont know how many students visit each subject yet.

I meant, if you know that an activity with teacher T1 will have students S1, S2, S3 for sure, and activity 2 with teacher T2 will have students S4, S5, S6 and S7, for sure, you can use FET official. If you only know that you have two activities, the first one with teacher T1 and the second one with teacher T2, and each of S1-S7 will attend one of these, you need to use FET-mapr. So, how do you have?

Volker, maybe you can also intervene in the discussion?
Title: Re: How to use fet-rooms and activity-tags?
Post by: Badam on December 14, 2016, 04:27:11 PM
it's the case that i only know which course the student would like to visit, the classsize is Unknown.
For every course are a few teachers aviable. Different Teachers, or the same teacher more often but to different times(slots).
Title: Re: How to use fet-rooms and activity-tags?
Post by: Liviu Lalescu on December 14, 2016, 05:39:52 PM
I have tried to understand your file (sent by private email), but it is a bit complicated. If needed, I will retry a bit later. But I hope you will understand my file (attached to this message).

The first 8 activities are for real students, the next 8 activities for FET (real) teachers, and the next 8 activities for FET rooms = real teachers. Go to each activity and see its constraints.

There are 4 rooms. The first 2 are the real teachers, the next 2 are the real rooms.

The constraints activities same starting time connect the activities with real teachers and FET teachers = real rooms.

It is vital to use the constraints room max occupied slots, to help FET towards a solution.

The last 4 space constraints ensure that if a student chooses a teacher for an activity, he will choose the same teacher for all his activities from the same group.

Please let me know what you think. I hope you can understand this small (but not easy at all) file and derive a similar file for your data set.

You can go to each students set, teacher, activity tag, room, activity, and see his/its attached constraints.

Later edit: if the class size is unknown, you can make it very large.
Title: Re: How to use fet-rooms and activity-tags?
Post by: Volker Dirr on December 14, 2016, 09:52:35 PM
Quote from: Liviu Lalescu on December 14, 2016, 10:31:36 AM
Another problem is that a student also can be a teacher. So they cannot be a student and a teacher at the same time.

i think you can just use the not overlapping constraint for that activities.
Title: Re: How to use fet-rooms and activity-tags?
Post by: Badam on December 15, 2016, 02:02:52 PM
I'm still working on a solution for me, but your little file has helped me, thanks for that.
Title: Re: How to use fet-rooms and activity-tags?
Post by: Liviu Lalescu on December 15, 2016, 02:08:13 PM
It is modified a bit from a small example from mapr-asa8-zt3.

Please note that mapr-asa8-zt3 might not work as needed. For the user zt3 it worked, until adding the same room constraints for activities from the same component (the last 4 space constraints in the file liviu2.fet above). When adding these constraints as well, his file became too difficult and didn't converge.

But it might work, if you have a simpler (smaller) file.