constraint to club student breaktime with other gaps during a day

Started by Nagendra, November 30, 2018, 01:58:37 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Nagendra

Hi, is it possible to add some constraint to club student breaktime with other gaps during a day with some weight? So that the break time can be more for students instead of having breaks between lectures.

Liviu Lalescu


Nagendra

If the break (Lunch hour) is scheduled at the 5th hour, students don't have any activity at 1st and 7th hours, how to implement a constraint to have no-activity hours adjacent to break time. i.e to have all three (lunch break and no-activity hours) together like
4th, 5th & 6th or
5th, 6th & 7th or
3rd, 4th & 5th

I want to implement a constraint so that, students can get more free time during lunch.

Liviu Lalescu

I think you can add an activity with duration 3 and no teachers for these students. Preferred time slots as necessary.

Nagendra

I think I can't do that. As, every batch may not be getting "2" non-activity hours. If at all there are any non-activity hours, then I want them to be along break time.

Liviu Lalescu

Then maybe this: instead of break, add a dummy activity with duration 1, preferred slot 5th. Then dummy activity, preferred slot 1st or 4th, then dummy activity, preferred slot 6th or 7th.