Author Topic: version 2Times  (Read 216 times)

0 Members and 1 Guest are viewing this topic.

Benahmed Abdelkrim

  • Level 5
  • *****
  • Posts: 726
  • The most beautiful is the simple
    • View Profile
version 2Times
« on: July 08, 2017, 02:22:08 AM »
Hello
     I suggest adding the two special Moroccan constraints ( one day and two day exception ) to the Algerian version.and this way we can leave a single version instead of two currently.
Possibly changing names also as suggested by volker.

I suggest the following name: version 2Times or FET 2Times
The first time refers to the morning
The second time refers to the afternoon.

Moreover I realize these two constraints by the following constraint:
A teacher works in an hourly interval max days per week.

As you can check in the attached file below...

thanks in advance
« Last Edit: July 08, 2017, 02:24:15 AM by Benahmed Abdelkrim »
B.A/krim

Liviu Lalescu

  • Forum Administrator
  • Level 5
  • *****
  • Posts: 5184
  • FET author and forum moderator
    • View Profile
    • Homepage
Re: version 2Times
« Reply #1 on: July 08, 2017, 02:36:24 AM »
It is not that simple. The Moroccan version also does not allow teachers to work morning+afternoon.

Interval max days per week - I don't understand how it can be applied.

I will keep your suggestion in my mind.

Benahmed Abdelkrim

  • Level 5
  • *****
  • Posts: 726
  • The most beautiful is the simple
    • View Profile
Re: version 2Times
« Reply #2 on: July 08, 2017, 02:46:08 AM »
It is not that simple. The Moroccan version also does not allow teachers to work morning+afternoon.

    Yes absolutely what one wants; Allow teachers to work only a half day except for a few who have a number of hours per week that makes it impossible to achieve this fact.

Quote from: Liviu Lalescu
Interval max days per week - I don't understand how it can be applied.

You can check it in the file attached above.

B.A/krim

Liviu Lalescu

  • Forum Administrator
  • Level 5
  • *****
  • Posts: 5184
  • FET author and forum moderator
    • View Profile
    • Homepage
Re: version 2Times
« Reply #3 on: July 08, 2017, 02:57:59 AM »
I don't think it can be applied in your way, because your constraints do not differentiate mornings from afternoons.

It might be possible to make it with a separate constraint, "Morocco"' or other name, having also exceptions (so the remaining version becomes Algeria). I will keep this in my mind.

Benahmed Abdelkrim

  • Level 5
  • *****
  • Posts: 726
  • The most beautiful is the simple
    • View Profile
Re: version 2Times
« Reply #4 on: July 08, 2017, 03:10:35 AM »
I don't think it can be applied in your way, because your constraints do not differentiate mornings from afternoons.

It might be possible to make it with a separate constraint, "Morocco"' or other name, having also exceptions (so the remaining version becomes Algeria). I will keep this in my mind.

Yes I agree with you, you can describe it as a truck, but it worked.
I talked to the teachers and they confirmed that working only a half day every day except for one day or two is less tiring and beter  than working the full day (morning + afternoon)

B.A/krim

Liviu Lalescu

  • Forum Administrator
  • Level 5
  • *****
  • Posts: 5184
  • FET author and forum moderator
    • View Profile
    • Homepage
Re: version 2Times
« Reply #5 on: July 08, 2017, 03:17:50 AM »
You mean "trick", not "truck" :)

It might have worked by chance. I think it is not a trick valid in general and I think that if you generate more timetables it will not work in all the timetables.

Benahmed Abdelkrim

  • Level 5
  • *****
  • Posts: 726
  • The most beautiful is the simple
    • View Profile
Re: version 2Times
« Reply #6 on: July 08, 2017, 03:23:49 AM »
You mean "trick", not "truck" :)

yes, sorry :)

It might have worked by chance. I think it is not a trick valid in general and I think that if you generate more timetables it will not work in all the timetables.

I can confirm that it worked in all the timetables I produced it by this way
B.A/krim

Liviu Lalescu

  • Forum Administrator
  • Level 5
  • *****
  • Posts: 5184
  • FET author and forum moderator
    • View Profile
    • Homepage
Re: version 2Times
« Reply #7 on: July 08, 2017, 03:35:26 AM »
I don't understand. The first teacher works in the first real days morning+afternoon, see the attached screen shot.

Benahmed Abdelkrim

  • Level 5
  • *****
  • Posts: 726
  • The most beautiful is the simple
    • View Profile
Re: version 2Times
« Reply #8 on: July 08, 2017, 03:47:16 AM »
I don't understand. The first teacher works in the first real days morning+afternoon, see the attached screen shot.

Yes for this teacher the constraint (also T2, T3,S1,S2,S3, H1,H2,H3,A1...A6,M1...m3)
One day exception is satisfied by this trick

 two day is satisffied by this trick for the fellowings teachers:
F1...F2
G1,G2
Spr1,Spr2
and
 Q

To tell the truth I was trying to realize these two Moroccan constraints by this trick using only the Algerian version.
B.A/krim

Benahmed Abdelkrim

  • Level 5
  • *****
  • Posts: 726
  • The most beautiful is the simple
    • View Profile
Re: version 2Times
« Reply #9 on: July 08, 2017, 03:53:50 AM »

But I assert that the specific constraints in Morocco are better than my trick. It is for this reason that I suggest integrating the two versions into a single version, and naming this "new -old" version by the name suggested rather high; To know: FET 2Times
B.A/krim

Liviu Lalescu

  • Forum Administrator
  • Level 5
  • *****
  • Posts: 5184
  • FET author and forum moderator
    • View Profile
    • Homepage
Re: version 2Times
« Reply #10 on: July 08, 2017, 04:27:15 AM »
But I don't understand. How do you forbid for example for teacher T1 that he works in the first four half-days (first two days morning+afternoon)? You only say that he has maximum 6 half-days.

As I think now, indeed, it might be possible to unite the Algeria and Morocco. But there are more reasons this is difficult and not nice. The first is that now the people will simply choose their country. How to name the new version? (I don't quite understand your suggestion).

I might add in the Algerian a constraint for each teacher, "Prevent morning+afternoon", "Prevent morning+afternoon allowing 1 day exception", "Prevent morning+afternoon allowing 2 days exception", and make it for Morocco. But it seems nicer to me to have a Morocco and an Algerian version - I mean easier for the users.

I will think of your proposal. But I also need more substantial financial sustainment for working.