IBM ILOG Scheduler User's Manual > Advanced Concepts > Scheduling with State Resources: the Trolley Problem > Minimizing the Makespan

The Concert Technology function IloMinimize is used to set the objective of minimizing the makespan in the model.

  /* WE LOOK FOR AN OPTIMAL SOLUTION */
  model.add(IloMinimize(env, makespan));