Constraint teachers not working continuously thought lunch break

Started by btvinh, December 26, 2012, 05:00:00 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

btvinh

First, I appreciate authors's working for this software. It's amazing about speed process and many flexible constraints for many situations. But my school in VietNam there are some different points:
- Classes studies only morning or only afternoon.
- Teachers teach both of morning and afternoon.
- Teachers come home for lunch break, not stay at school. Because school's not enough rest room for teacher. And, so timetable need avoid continouosly activities thought lunch break. In other words, teachers don't want to work continouosly activity at end morning and activity at start afternoon, they want more time at home to eat and rest.
With requirements I used official version and resolve easily #1, #2 by "not available times".
But #3, I couldn't find any constraints like that.

I tried moroccan version but I don't find any constraint of teacher like not working contiously thought lunch break.
You consider this requirement for new version.
Thanks so much.

Liviu Lalescu

I think you can use more activities occupy max time slots from selection, one constraint for each teacher and each day, with all activities of a teacher and time slots = those two near the break and max occupied = 1.

btvinh

thank you for your answer. I'm not sure I understand right the feature which you suggest.
I tried add 1 contraint for all activities of 1 teacher have 2 continouosly activities though the break as below picture.
But it generate failed.
I tried change time splot only morning hours or only afternoon hours near the break and the result same.

Volker Dirr

You have too less timeslots then.
You must do that for every single day.
(So adding number of days constraint like that, but just with 2 marks.)