Question: Set i 'customers' / 1 * 8 / j 'customers' / 1 * 8 / k 'vehicles' / 1 * 2 / ; Parameter c
Set
i 'customers'
j 'customers'
k 'vehicles' ;
Parameter
cij 'distance between customers'
;
Parameter
di 'demand of customers'
Q 'vehicle capacity' ;
Scalar
depot 'depot location' ;
Variable
z 'objective function value total distance;
Binary Variable
xijk if vehicle k travels from i to j;
Positive Variable
ui 'load at customer i;
Equation
obj 'objective function'
visit 'each customer is visited once'
visit 'each customer is served by one vehicle'
capacity 'vehicle capacity constraint'
subtour 'subtour elimination';
obj
z e sumijk cij xijk;
visiti
sumj$j ne i xijke;
visitj
sumi$i ne j xijke;
capacityik
ui uj Q xijkl Q dj;
subtourik
uig di;
Model VRP all;
Solve VRP using mip minimizing z;
Display xl ul zl; when I copy paste this code to gams it gives error, can you fix it
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
