Forcing Consecutive Days

Started by CaliforniaMark, October 01, 2010, 08:42:23 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

CaliforniaMark

Given a set of two activities for a subject, what is the most flexible way to request that they be scheduled on consecutive days, but any two consecutive days (M-Tu, Tu-W, W-Th, or Th-F) during the week are O.K.?  The activities do not have to take place at the same time each day.

(Hopefully, the approach won't be specific to a set of two activities, because it might be a set of three or a set of four.)

TIA,

Mark

P.S.  By "most flexible" I mean the way that allows the widest range of solutions to be considered, as long as the constraint is satisfied.

Liviu Lalescu

The perfect approach: use constraint max days between activities (along with min 1 days between activities, to put them in different days - this constraint is usually added when you add an activity, you may need to make weight = 100.0%). This constraint will leave all correct possibilities of scheduling a timetable, available.