Information Technology Reference
In-Depth Information
(10) Minimum preparing time of time zone: select operation with minimum
preparing time or changing time. And only consider the operation of the
order finished date in the particular time zone.
The following takes house decoration as an example(see Figure3.1), in which
ILOG Scheduler is used to provide the planning scheme in order to describe the
solving principles of CSP. Suppose that the start task costs 1000 Yuan each day,
and total fund is 20000 Yuan. When the project goes on the 15th day, fund can
increase by 9000 Yuan.
Adopt ILOG Scheduler to schedule, the constraint program is as follows:
CtSchedule* schedule = new CtSchedule(0, horizon);
// To create an operation with given duration.
CtIntervalActivity* act = new CtIntervalActivity(schedule, duration);
//To define constraint between act1 and act2.
act2->startsAfterEnd(act1,0);
//To create a total budget of limited funds (here 29000).
CtDiscreteResource* res =
Masonry
7
Carpentry
3
Roofing
1
Plumbing
8
Ceiling
3
Windows
1
Facade
2
Garden
1
Painting
2
Moving in
1
Fig. 3.1. House Decoration Operation
Search WWH ::




Custom Search