Forum Discussion
FICO
3 years agoCommunity Manager
How to improve Xpress solver efficiency and time for VRP projects
Hi all, I have a Vehicle Routing Problem (VRP) which has 7 constraints (including subtour elimination constraint, flow conservation constraint, etc). Xpress tries to apply many heuristic methods bef...
FICO
3 years agoCommunity Manager
Thank you @Daniel Junglas . You made valid points in your post.
With regards to the trivial solution, you are correct but we are not interested in routes with only 1 stop. Also, the number of routes could change in the future (and may not be the same as number of stops). So the trivial solution will not work.
With regards to the other points:
- The distance matrix shows the distance from each stop to each stop. It is a 180 x 180 matrix. So the cells where i=j is zero in the matrix (i.e. the distance from one stop to itself is zero). That is why in the variables, I made sure that x does not include stops where i!=j. That's why we mentioned i!=j in constraint 4 (because x(i,j) where i=j is not defined in our variables and a connection from a stop to itself should not exist). But you are right, this constraint will create duplicates. So I changed the last loop to: for j in range(i+1, N_total) to prevent duplicates.
- You are correct, constraint 3 creates a loop, but constraint 6 tries to avoid loops (by ending routes at delivery stops). I will remove constraint 6 for now (to allow for loops). Also, I believe that constraint 5 should not impose any issues, as it ensures that there is a delivery stop in the route. So in this case, we can keep the current flow conservation constraint (but just eliminate constraint 6). I ran this modified model but still it takes a long time to find a feasible solution. Do you believe the subtour elimination constraint is in conflict with flow conservation constraint (i.e. former tried to avoid tours, second one creates loops/tours)?
Related Content
Related Content
How to improve Bestbound?
e.g. my optimal solution for this dataset is 116. it reaches 116 within 1000 seconds but bestbound is still close to 0. Optimization part: multiplier=ub_nal * (QUARTERS[-1] - 1) + 1# spread of coef...7 months agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum4 unread comments4 unread30Views0likes4Comments- 30Views0likes1Comment
