Author Topic: Minimum days per week for students or Students must come on a day  (Read 141 times)

0 Members and 1 Guest are viewing this topic.

V Paul C Charlesraj

  • Level 1
  • *
  • Posts: 5
    • View Profile
I have a situation. I have enforced minimum and maximum hours in a day as well as maximum days per week for students. This results in empty days. But is it possible to control this empty days does not fall on a specific day. For example: we expect all the students report to school on Thursday. How to enforce this?
Thanks.
Paul

Volker Dirr

  • Forum Administrator
  • Level 5
  • *****
  • Posts: 1952
    • View Profile
Re: Minimum days per week for students or Students must come on a day
« Reply #1 on: January 05, 2018, 03:42:29 AM »
i think the easierst will be to add activities with subject "report" to students groups and use a constraint that this activity must be on thursday.

An other variant might be using the max occupy constraint, but the disadvantage will be that you need to exactly count the students hours (and you always need to modify that constraint as soon as the number of student hours change). See "help" in the max occupy constraint.

Liviu Lalescu

  • Forum Administrator
  • Level 5
  • *****
  • Posts: 5273
  • FET author and forum moderator
    • View Profile
    • Homepage
Re: Minimum days per week for students or Students must come on a day
« Reply #2 on: January 05, 2018, 07:20:18 AM »
Volker is referring in his second variant to the constraint of type activities occupy max time slots from selection. Yes, it might be a bit difficult to use it.

But I am not sure if the first proposal of Volker is applicable.

V Paul C Charlesraj

  • Level 1
  • *
  • Posts: 5
    • View Profile
Re: Minimum days per week for students or Students must come on a day
« Reply #3 on: January 05, 2018, 07:40:33 AM »
Thanks for your suggestions.  Volker's first suggestion would not work since there shall be some activities scheduled not just reporting.  I need to checkout the second one.

V Paul C Charlesraj

  • Level 1
  • *
  • Posts: 5
    • View Profile
Re: Minimum days per week for students or Students must come on a day
« Reply #4 on: January 05, 2018, 07:52:18 AM »
Minimum number of days in a week for all students  shall do the trick but I could not find such constraint for students but there is one for teachers.

Liviu Lalescu

  • Forum Administrator
  • Level 5
  • *****
  • Posts: 5273
  • FET author and forum moderator
    • View Profile
    • Homepage
Re: Minimum days per week for students or Students must come on a day
« Reply #5 on: January 05, 2018, 08:00:47 AM »
Minimum number of days in a week for all students  shall do the trick but I could not find such constraint for students but there is one for teachers.

Hmm, yes, you touched a sensitive point :(

It is very difficult to add this constraint implemented correctly (perfectly) for the students, such as we did for the teachers. It might be easier to implement it not perfectly, but I would not like to add such a thing in the official FET.

I will add your suggestion in the TODO (students min days per week).

Implemented perfectly means to take care of the interaction with the other constraints.
« Last Edit: January 05, 2018, 08:16:36 AM by Liviu Lalescu »

Volker Dirr

  • Forum Administrator
  • Level 5
  • *****
  • Posts: 1952
    • View Profile
Re: Minimum days per week for students or Students must come on a day
« Reply #6 on: January 05, 2018, 08:10:28 AM »
you can maybe do it indirectly.
for example by reducing the max number of hours per day they will be forced to have more days per week.

V Paul C Charlesraj

  • Level 1
  • *
  • Posts: 5
    • View Profile
Re: Minimum days per week for students or Students must come on a day
« Reply #7 on: January 05, 2018, 08:13:55 AM »
you can maybe do it indirectly.
for example by reducing the max number of hours per day they will be forced to have more days per week.

I have tried all those things but failed to get a solution.  I have never used the other constraint, max occupy. Let me try.

Liviu Lalescu

  • Forum Administrator
  • Level 5
  • *****
  • Posts: 5273
  • FET author and forum moderator
    • View Profile
    • Homepage
Re: Minimum days per week for students or Students must come on a day
« Reply #8 on: January 05, 2018, 08:19:25 AM »
Minimum number of days in a week for all students  shall do the trick but I could not find such constraint for students but there is one for teachers.

Funny idea: If you don't have a complex students' structure you might consider a real students set = a FET teacher, and have in FET only teachers, and add a constraint teacher min days per week for each real students set :)
« Last Edit: January 05, 2018, 08:21:07 AM by Liviu Lalescu »

V Paul C Charlesraj

  • Level 1
  • *
  • Posts: 5
    • View Profile
Re: Minimum days per week for students or Students must come on a day
« Reply #9 on: January 05, 2018, 08:42:30 AM »
Minimum number of days in a week for all students  shall do the trick but I could not find such constraint for students but there is one for teachers.

Funny idea: If you don't have a complex students' structure you might consider a real students set = a FET teacher, and have in FET only teachers, and add a constraint teacher min days per week for each real students set :)
Sorry, this would not work.