Hi folks,

I am wondering if I can model the following problem with CP:

I have n jobs, each has to run for a known number of timeslots, and each consume a known amount of resource per timeslot. I need to schedule the running times for each job within a fixed interval of timeslots (say 1 to 12), so that the total amount of resource consumed in each timeslot is minimized. Keep in mind that the jobs can be interrupted, meaning that a job can run from timeslot 1 to 2, then from 5 to 6, then from 9 to 11. I am not sure if CP can do that. And if it can, any help would be greatly appreciated (even a small example on how to get started with the model).

PS. I have tried reading and writing the model but I cannot find a way to calculate the resource usage per timeslot !

Thanks,