Originally posted by: Alessandro Cimbelli
Hi,
I'm trying to write a model in which on the same resource the tasks can be completed without overlap and without violating a certain amount of time that changes dynamically according on the "types" of the two tasks.
This looks easy to achieve with the following constraint:
constraint
noOverlap(
sequenceVar
sequence,
transitionMatrix distanceMatrix = null,
bit isDirect = 0)
In which you can specify a distance matrix.
This looks cool but what i want is a little more than a simple "distance". I would like that a certain working interval is waited!
Example:
I have only 1 resource with 2 possible task: Task1 and Task2.
The transition Matrix is 3600s for each possibility.
Now if Task1 ends at 12:00:00 and I have 1 hour of break, i do not want Task2 to start at 13:00:00 but I want it to start at 14:00:00.
How can I achieve this? Is there an easy way?
Thank you,
Alessandro
#DecisionOptimization#OPLusingCPOptimizer