Originally posted by: Preemptive
Hi,
F[i][v][t] denotes the arrival time at node i by vehicle v after traversing t-th arc.
range T = 1..T_max;
c2 : forall (t in T,v in V)
sum ( i in I,j in J:j!=i)Xijv[i][j][v][t] <= U[v]; when Uv denote if vehicul v is used or not,
So, if x[i][j][v][t]==1 than F[j][v][t] must be equal to F[i][v][t-1] + t[i][j] since vehicle v arrives at node i after traversing (t-1) arc.
so i have this constraint to calculate the arrivel time for each node
c17: forall (v in V, i in I, j in ICF1 :j!=i, t in T)
F[i][v][t-1] + item (TIJ,<i.i,j.j>).temp - F[j][v][t] <= M *( 1 - Xijv[i][j][v][t]);
c23 : forall ( v in V,i in ID, t in T: t==1) : (departure time from the node ID : depôt node 0)
F[i][v][t] == 0;
the ordre of visit for vehicul is : 0250 ( (..) lenth of the arc )
0.....(10)........2.......(45) ......5.....(20).......0
normally i should have this result : F021= 0 ; F221= 10 ; F522=55 ; F023=0 ;
i have errors : opl can not exrtract expression {1}
#DecisionOptimization#OPLusingCPLEXOptimizer