Hello,
you can use an additional cumulative function, with capacity 3 for representing the new resource.
Then a task, say from trade A, that can also be handled by this new resource, instead of being represented by a single interval and a pulse over this interval that appears in the cumul function of Trade A, is now represented by:
- 1 interval (masterInterval),
- 2 optional intervals (optInt1, optInt2),
- and an alternative constraint linking the 3 intervals.
One optional interval requires the resource for trade A, the second one requires the new resource (using pulses in their respective cumul functions).
The constraint alternative(masterInterval, [optInt1, optInt2]) ensures that one of the optional intervals is equal to the master interval, and that the other optional interval is absent.
------------------------------
Olivier Lhomme
------------------------------