Skip to main content

Time indexed based vehicle routing problem under given time budget

Answered

Comments

2 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support.
  • Mario Ruthmair
    • Gurobi Staff

    Hi Runqiu,

    Since you do not know the time interval when the vehicle returns to the depot, you need to leave it open. This means that you model the start of the vehicle and all intermediate stops with flow conservation constraints. Then, the only chance for the vehicle to end the tour is by going back to the depot in some time interval before T. The following constraints can be a starting point:

    $$\sum_{j \neq 0} x[0,j,0] = 1$$

    $$\sum_{i} x[i,j,t] = \sum_{k} x[j,k,t+1], \qquad \forall j \neq 0, \forall t = 1,\ldots,T-1$$

    Instead of using index t+1 in the last set of constraints, you could of course use the actual travel time from j to k.

    Best regards,
    Mario

    0

Post is closed for comments.