IBM ILOG Scheduler User's Manual > Getting Started with Scheduler > Adding Breaks > Define the Problem, Design a Model > Create the Breaks |
Create the Breaks |
INDEX
![]() |
The weekend breaks are created as an instance of the class IloIntervalList
, and added to environment env
with a range that spans the entire schedule (zero through horizon
). The member function addPeriodicInterval
defines when the break starts (5), how long it lasts (2), and the period interval (7). This break list is an example of parameter sharing within Concert Technology; several resources are sharing the same break list.
/* CREATE A SHARED BREAK LIST FOR ALL WORKERS */ IloIntervalList breakParam = schedEnv.getBreakListParam(); breakParam.addPeriodicInterval(5, 2, 7, horizon); |
© Copyright IBM Corp. 1987, 2009. Legal terms. | PREVIOUS NEXT |