Originally posted by: SatishKumarA
Hi Team,
I am using statefunction to process two activities on a resource in parallel
dvar interval tb_task[t1 in Tyres, t2 in TBM] optional in 0..1000 size 10*t1;
stateFunction DrumDimension[t2 in TBM];
Constraint :
forall(t1 in Tyres,t2 in TBM)
alwaysEqual(DrumDimension[t2],tb_task[t1][t2],Tyre_Type[t1],1,0);
The two activities say task1 (6) and task2 (8) start at the same time and end at different times on resource 2. As per the above declaration and constraint, both activities are getting started at 0 and ending at different times (60 and 80) as shown in following gantt chart (Refer [6][2] and [8][2]).
Now, task 6 will be released to next operation only after time 80 as resource 2 will be done processing 6 and 8 only at time 80. That means, even though task 6 processing was completed, it was held by resource 2 till 80. I would like to write a precedence constraint on task 6 on a subsequent resource say 3. For ex.
endBeforeStart([6][2], [6][3])
Problem is that resource 3 is processing task 6 from time 60 which is wrong.
How do I access/derive this 80 as end time of task 6 instead of 60?
Thanks,
Satish
#DecisionOptimization#OPLusingCPOptimizer