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
With delayed rows, your constraint 7 would look like this (one line added before and one line added after the loop):
# 7. Subtour elimination
first_subtour = prob.attributes.rows
for k in range(num_routes):
for i in range(N_pickup):
for j in range(N_total):
if i != j:
prob.addConstraint(u[i] - u[j] + N_total * x[i, j,k] <= N_total - 1)
prob.loaddelayedrows(range(first_subtour, prob.attributes.rows))In your log file you can see that Xpress spends all the time solving the root LP relaxation and is still not finished. That is something that I think should go a lot faster once you mark the subtour elimination constraints as delayed rows (or separate them through a callback).
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
