I'm playing with the VRP model of Prof. Helber at the moment. I have problems figuring out how to change the closed tours to open ones:
ZFW =e= sum((i,j,m),c(i,j)*x(i,j,m));
sum(i, w(i)*y(i,m)) =l= b;
sum(j, x(i,j,m)) =e= y(i,m);
sum(i, x(i,j,m)) =e= y(j,m);
sum(m, y(i,m)) =e= 1;
KeineKurzzyklen(i,j)$((ord(i)>=2) and (ord(j)>=2) and
z(i)-z(j)+ card(i)*sum(m, x(i,j,m)) =l= card(i)-1;
x(i,i,m) =e= 0;
If i see it wright, in this scenario in equation OrtErreichen, j has to be > 1, so that the starting point of the tour doesn't need to be approached?
Thanks a lot guys!
Problems with modeling
2 posts • Page 1 of 1