IBM ILOG Scheduler User's Manual > Getting Started with Scheduler > Adding Integral and Functional Constraints > Define the Problem, Design a Model

Minimizing the makespan of the problem is not the objective, and we set a horizon spanning ten weeks of work, which leaves enough room for performing the activities. However, as we wish the house to be finished in less than 50 days, we must limit the end time of the moving activity.

  model.add( moving.endsBefore(MaxMakespan) );

We will set MaxMakespan equal to 50, thus specifying that even if minimizing the makespan is not the real objective, it does count as a trade-off in the quality of the solution.

As in Chapter 3, the worker is modeled by a unary resource, and building the house consists in a set of activities constrained by temporal precedences.