IBM ILOG Scheduler User's Manual > Advanced Concepts > Using Transition Times and Costs > Problem Description > Defining Job Activities

The activities of the jobs are of known duration and require a predefined machine. The jobs also define the temporal constraints between the activities. The temporal constraints are defined by IloActivity::startsAfterEnd.

 
const IloInt Horizon = 10000;
const IloInt NumberOfJobs = 6;
const IloInt NumberOfResources = 6;
const IloInt NumberOfWorkers = 5;
const IloInt NumberOfTypes = 4;
 
IloInt ResourceNumbers [] = {2, 0, 1, 3, 5, 4,
                             1, 2, 4, 5, 0, 3,
                             2, 3, 5, 0, 1, 4,
                             1, 0, 2, 3, 4, 5,
                             2, 1, 4, 5, 0, 3,
                             1, 3, 5, 0, 4, 2};
 
IloInt ProcessingTimes [] = { 10,  30,  60,  70,  30,  60,
                        80,  50, 100, 100, 100,  40,
                        50,  40,  80,  90,  10,  70,
                        50,  50,  50,  30,  80,  90,
                        90,  30,  50,  40,  30,  10,
                        30,  30,  90, 100,  40,  10};
 

Each of these activities has a transition type.

IloInt Types [] = { 0, 1, 2, 2, 0, 3,
                    1, 3, 2, 3, 3, 0,
                    2, 3, 1, 1, 0, 1,
                    2, 1, 0, 0, 1, 1,
                    3, 3, 2, 0, 1, 1,
                    3, 1, 2, 0, 3, 3};