Skip to main content

Problem with current time

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 why not try our AI Gurobot?.
  • Jaromił Najman
    • Gurobi Staff

    Hi Bardja,

    Your question is one of the "open for suggestions" type so I will just give it a try.

    I assume you want to track the time spend for a specific delivery route, is this correct? You then could introduce time costs for each edge instead of each vertex to track the time spent by a specific route up to a given vertex. The time cost computation could be integrated into the distance function you already defined.

    In order to compute the time spent up to a given vertex, you would just have to sum up over the edges of the sub-route up to the particular vertex of interest.

    I hope this helps.

    Best regards,
    Jaromił

     

    0

Post is closed for comments.