Originally posted by: Preemptive
Hi, thank you it works now.
constraint 17 : constraint 17 calculate the arrival time at node j by vehicle v. so it will calculate the arrival time at each node during a tour by the vehicle v in t ech arc.
c17: forall (v in V, i in I, j in ICF1 :j!=i, t in T)
( Xijv[i][j][v][t]== 1 ) => ( F[i][v][t] + item (TIJ,<i.i,j.j>).temp == F[j][v][t]);
constraint 18 : if Xijvt=0 alors Fivt = 0.
c18: forall (v in V, i in I, j in J :j!=i, t in T)
F[i][v][t] <= M * Xijv[i][j][v][t];
when i run it, solution infeasible. but when i delete constraint 18 it worked, i don't know when the errors in constraint 18.
( For example if you have tour 0-1-3-2-6-5-2-0 then :
X[0][1][v][1]=1,
X[1][3][v][2]=1,
X[3][2][v][3]=1,
X[2][6][v][4]=1 ,
X[6][5][v][5]=1 ,
X[5][2][v][6]=1,
so F[2][v][2] = 10, F[2][v][1]=0, F[2][v][3]=0, F[2][v][4]=0, F[2][v][5]=0, F[2][v][6]= 120)
Best regards
#DecisionOptimization#OPLusingCPLEXOptimizer