IBM ILOG Scheduler User's Manual > Integrated Applications > Scheduling with State Resources: the Trolley Problem, with Transition Times and Limited Capacity > Describing the Problem

The problem is similar to the example in Scheduling with State Resources: the Trolley Problem, with Transition Times, but now we want to represent a constraint on the maximal number of items the trolley can carry at the same time.

const IloNum trolleyMaxCapacity = 3;
const IloNum loadDuration     = 20;
const IloInt numberOfJobs     = 6;