Different Lenghts of Classes

Started by Matsumoto, February 29, 2012, 04:12:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Matsumoto

Hello Everybody,

I made some tutorials on how to use the basics of FET (in Portuguese - Brazil) and posted on youtube. Turns out that this morning someone posted a question on the video and I'm not finding a way to solve it and that's getting me nervous...

The problem is:
"A Year (I'll call it "6.A") has it's break time at 9.30, returning to classes at 9.50 . The other (I'll call it "7.A") has a regular class starting at 9.30. The problem is that the teacher that is set to teach 7.A at 9.30 is also set to teach 6.A at 9.50, which can not happen, how to fix that?"

What I thought was:

1) I'll set all of 6.A's activities with a tag, as if they were part of a group, like... "G1", so all activities of 6.A can be identified with a tag of "G1".
2) To 7.A's activities I'd set a tag of "G2" so once again, I could identify all of it's activities with that tag.

Problem is, I can't seem to find a way to prevent the teacher from being "taken" from G2 to G1 during that break (between G1's 2nd and 3rd class), here's what I can assume that are the periods hours IF the classes have the same duration on every period:

G1
1st class  07:50 - 08:40
2nd class 08:40 - 09:30
Beak        09:30 - 09:50
3rd class  09:50 - 10:40

4th class  10:40 - 11:30
5th class  11:30 - 12:20

G2
1st class  07:50 - 08:40
2nd class 08:40 - 09:30
3rd class  09:30 - 10:20
Break       10:20 - 10:40

4th class  10:40 - 11:30
5th class  11:30 - 12:20

In other words, the teacher starts his lecture in G2 at 09:30, but at 09:50 he's taken to G1 to lecture...

I also have to mention I have no experience with programming, so what can I do to prevent that teacher from being taken from the classes?

Thanks,
Guilherme - Brazil
Addicted to Timetables, Mathematics, Coffee and Cute Things!

Volker Dirr

So you want to force a break for the teacher?
You might try this:
Give a teachers a pseudo activity. So an activity with the teacher name, subject "break" and no students.

Liviu Lalescu

#2
I think he wants a more complicated break.

I think GuilhermeMat means something like:

http://lalescu.ro/liviu/fet/forum/index.php?topic=1088

and

http://lalescu.ro/liviu/fet/forum/index.php?topic=474.msg6292#msg6292

ConstraintActivitiesOccupyMaxTimeSlotsFromSelection can be used to force a teacher to have activities in slot A or in slot B (but not in both), see the first forum topic from the two above.

GuilhermeMat posted three videos about FET on YouTube, in Portuguese, under the name of C2Producoes. Maybe he would like to write the exact links, maybe in another topic.

Matsumoto

Oh, my... I must have such bad luck... I can't understand much of how to use these constraints!

About the videos, maybe they should be posted as "Basic Tutorials". But they're all in Brazilian Portuguese...

If any of you could give me exemples of how to use the constraint "Activities Occupy Max Time Slots From Selection" I'd be thankful!

Thanks!
Guilherme
Addicted to Timetables, Mathematics, Coffee and Cute Things!

Liviu Lalescu

Quote from: GuilhermeMat on March 05, 2012, 12:06:55 AM
If any of you could give me exemples of how to use the constraint "Activities Occupy Max Time Slots From Selection" I'd be thankful!

One specific example is on http://lalescu.ro/liviu/fet/forum/index.php?topic=1088.msg6280#msg6280

Bobby Wise

Would it not work if you divided your day into 10 minute long sessions?

Then instead of allocating as 1 x 50 minutes to each period, you allocate 5 x 10 minute sessions to each period, which should give you more flexibility.

1 Break would be 2 x 10 minute sessions.

Liviu Lalescu

Quote from: GuilhermeMat on March 05, 2012, 12:06:55 AM
About the videos, maybe they should be posted as "Basic Tutorials". But they're all in Brazilian Portuguese...

We could make a Brazilian Portuguese section on the forum.

Quote from: Bobby Wise on March 06, 2012, 06:09:55 AM
Would it not work if you divided your day into 10 minute long sessions?

Yes, this is the second alternative, and is listed above in first forum link I wrote.

Matsumoto

Sorry,

No matter how many times I read the forum, I still can't get how to use the constraint... I know what it does, but I dunno how to configure the constraint so my effect happens as expected, here's what I'm doing:

1) I add all the teachers/subjects, activities and so on.
2) I go to the "A students set's not available times, there, I make 6A NOT AVAILABLE at the times in bold, remember 6A is part of G1:

G1
1st class  07:50 - 08:40
2nd class 08:40 - 09:30
Beak        09:30 - 09:50
3rd class  09:50 - 10:40
4th class  10:40 - 11:30
5th class  11:30 - 12:20

G2
1st class  07:50 - 08:40
2nd class 08:40 - 09:30
3rd class  09:30 - 10:20
Break       10:20 - 10:40

4th class  10:40 - 11:30
5th class  11:30 - 12:20

Then, I do that to all G1 years.

3) I set the G2 years NOT AVAILABLE at the times in bold:

G1
1st class  07:50 - 08:40
2nd class 08:40 - 09:30
Beak        09:30 - 09:50
3rd class  09:50 - 10:40

4th class  10:40 - 11:30
5th class  11:30 - 12:20

G2
1st class  07:50 - 08:40
2nd class 08:40 - 09:30
3rd class  09:30 - 10:20
Break       10:20 - 10:40
4th class  10:40 - 11:30
5th class  11:30 - 12:20

4) Then, I go to "A set of Activities occupy max slots from selection" constraint and I do these steps:

a) I Click on Add;
b) I use the filter to only see a specific teacher, then I select all of his/her activities.
c) I click on the Time Slots button

This is where I get lost: I think I should mark with an "x" the times that don't have any problem with the times, these are in green:

G1
1st class  07:50 - 08:40
2nd class 08:40 - 09:30

Beak        09:30 - 09:50
3rd class  09:50 - 10:40

4th class  10:40 - 11:30
5th class  11:30 - 12:20


G2
1st class  07:50 - 08:40
2nd class 08:40 - 09:30

3rd class  09:30 - 10:20
Break       10:20 - 10:40

4th class  10:40 - 11:30
5th class  11:30 - 12:20


After that, I let unmarked only the times that have problems, the ones I marked with bold above, BUT I do that to a single day, for exemple, on Monday, I mark with the "x" ALL other days times, including the ones with problems. So that means I've got 4 unmarked times, I set them to "max of 1 activity", so the teacher won't be assigned to a G2 class at 09:30 and then being taken away by G1 at 09:50.

Is that how it's used? I hope I managed to expose my question well this time!
Sorry for giving you a hard time helping me! :(
Addicted to Timetables, Mathematics, Coffee and Cute Things!

Liviu Lalescu

I didn't read thoroughly, but it seems that the mistake is that you need to mark with X the four slots in bold. (selected slots are marked with X.)

Matsumoto

Oh, Gosh it WORKED!

Oh, boy... I'm so silly! I'm making a video to explain how it works right away! And besides, a Brazilian Portuguese section could be started for sure! I feel ready to start helping people in the forum AND with videos!

Thanks for the amazing support!
Guilherme - Brazil
Addicted to Timetables, Mathematics, Coffee and Cute Things!