IBM ILOG Scheduler User's Manual > Getting Started with Scheduler > Adding Transition Times > Define the Problem, Design a Model > Define Transition Times |
Define Transition Times |
INDEX
![]() |
The function GetTransitionTime
is used to calculate the transition time between two activities of different transition type. The transition time is defined to be the greater of either 3, or half the absolute value of the difference between the two transition types. For example, the transition time between a masonry activity (type = 1), and a garden activity (type = 9), is 4.
IloNum GetTransitionTime(IloInt type1, IloInt type2) { if (!type1 || !type2 || type1==type2) return 0; return IloMax(3L, IloAbs((type1 - type2)/2L)); } |
© Copyright IBM Corp. 1987, 2009. Legal terms. | PREVIOUS NEXT |