IBM ILOG Scheduler User's Manual > Getting Started with Scheduler > Adding Integral and Functional Constraints > Define the Problem, Design a Model > Budget |
Budget |
INDEX
![]() |
After an activity has started, each worked day costs a decreasing amount of money. Days 0 to 2 are charged $1000 each, days 3 to 6 are charged $900 each, and all days including or after day 7 cost $700 each. The actual cost of an activity is then a function of its duration.
Once the granular function is built, we constrain each activity's external variable to be equal to the total cost incurred due to the activity's duration, and add this constraint to the model.
model.add( IloResourceFunctionalConstraint(worker, IloExternalVariable, costFunction, IloDurationVariable) ); |
© Copyright IBM Corp. 1987, 2009. Legal terms. | PREVIOUS NEXT |