Originally posted by: qtbgo
Hello, I have a code like
forall(v, w in 1..q: v < w) forall(i, j in 1..n: i !=j && l[i] > l[j] - (s + 1) * ftoi(abs(v-w)) )
{ endOf(qcTasks[w][j],0) + (l[i] - l[j] + (s + 1) * ftoi(abs(v-w))) <= startOf(qcTasks[v][i],H) || endOf(qcTasks[v][i],0) + (l[i] - l[j] + (s + 1) * ftoi(abs(v-w))) <= startOf(qcTasks[w][j],H) ;
}; This code runs fast, but still not supassing another algrithm. So I wonder
if it can be modeling more efficiently? Here, dvar interval qcTasks[1..q][1..n] is optional. q is the number of quay cranes and n the number of tasks. I want to use transition time( which is l[i] - l[j] + (s + 1) * ftoi(abs(v-w))) to model
this situation and use noOverlap. But I find it difficult to define Type of interval because it depends on i, j ,v , w. Now it is defined as dvar interval qcTasks[k in 1..q][j in 1..n] optional in 0..1000 ; q is 10, n is 100.
I want to know if using transition time is better? if so, how to do it?
thanks
#DecisionOptimization#OPLusingCPOptimizer