IBM ILOG Scheduler User's Manual > Integrated Applications > Representing Time-Varying Resource Capacity > Defining the Problem, Designing a Model |
Defining the Problem, Designing a Model |
INDEX
![]() |
To create the corresponding resource and, especially, the resource timetable, we have to determine the maximal theoretic capacity. The following code performs this computation and keeps the result in a C++ variable, capacity
.
With the member function setCapacityMax
, we specify the number of people actually available each day. As its arguments, this function receives two points in time, timeMin
and timeMax
, (defining an interval [timeMin timeMax)
) and an integer specifying the maximal capacity available over this interval. Here, for each day
, timeMin
is equal to day
, timeMax
is equal to day+1
, and the available capacity is equal to availableCapacities[day]
.
The following code creates the activities and specifies the number of people required for each activity.
© Copyright IBM Corp. 1987, 2009. Legal terms. | PREVIOUS NEXT |