FET Forum

FET Support (English) => Get Help => Topic started by: CaliforniaMark on October 01, 2010, 08:42:23 AM

Title: Forcing Consecutive Days
Post by: CaliforniaMark on October 01, 2010, 08:42:23 AM
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.
Title: Re: Forcing Consecutive Days
Post by: Liviu Lalescu on October 01, 2010, 08:46:54 AM
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.