VRP with GAMS
From
nazireozke@gmail.com@21:1/5 to
All on Sat Apr 23 17:03:31 2016
Hi there,
I'm working on VRP with time windows and the model that i write on Gams makes an error "Uncontrolled set entered as constant". So I need help urgently. Could anybody tell me reason of the problem? Model is as follows:
sets i customers/1,2,3,4,5,6,7/;
k vehicles/1,2,3,4/
Alias (i,j)
Table g(i,j) The total transportation and service time
0 1 2 3 4 5 6 7
0 100000 13.71 13.12 11.20 9.95 15.65 13.96 12.34
1 13.36 100000 0.97 2.47 3.40 2.56 0.89 1.52
2 12.82 1.02 100000 2.02 2.73 3.24 1.53 1.07
3 11.00 2.62 2.12 100000 3.85 4.27 2.78 1.21
4 9.55 3.35 2.63 3.65 100000 5.56 4.16 3.25
5 15.45 2.71 3.34 4.27 5.76 100000 2.02 3.89
6 13.76 1.04 1.63 2.78 4.36 2.02 100000 2.40
7 12.09 1.62 1.12 1.16 3.40 3.84 2.35 100000
binary variables X(i,j,k);
positive variables s(j,k);
time to start service at customer i (i,j) $((ord(i) ne (ord(j) and (ord(j) ne 1))))..s(i,k)-s(j,k)+sum(k,X(i,j,k))*10000=l=10000-g(i,j);
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)