IBM ILOG Scheduler User's Manual > Getting Started with Scheduler > Adding Alternative Resources > Define the Problem, Design a Model > Create the Alternative Resource Set |
Create the Alternative Resource Set |
INDEX
![]() |
To represent our two workers with equivalent abilities we use an instance of IloAltResSet
. When an activity requires an instance of this class, the activity requires exactly one of the resources represented in that set.
The following code creates an alternative resource set in the environment env
. The resource set contains the two workers, indexed as 1 and 2 in the unary resource array.
IloAltResSet altres(env, 2, workers[1], workers[2]); |
© Copyright IBM Corp. 1987, 2009. Legal terms. | PREVIOUS NEXT |